CircuitPython/uctypes.py

Thu, 29 Aug 2019 19:05:05 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 29 Aug 2019 19:05:05 +0200
changeset 7
e336d6afc5a6
permissions
-rw-r--r--

CircuitPython: added more stub files.

# -*- coding: utf-8 -*-

# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module containing stubs for API generation of the def 'uctypes' module.
"""

LITTLE_ENDIAN = 0
BIG_ENDIAN = 0
NATIVE = 0
UINT8 = 0
INT8 = 0
UINT16 = 0
INT16 = 0
UINT32 = 0
INT32 = 0
UINT64 = 0
INT64 = 0
FLOAT32 = 0
FLOAT64 = 0
VOID = 0
PTR = 0
ARRAY = 0

def sizeof(struct, layout_type=NATIVE):
    pass

def addressof(obj):
    pass

def bytes_at(addr, size):
    pass

def bytearray_at(addr, size):
    pass

class struct():
    def __init__(self, addr, descriptor, layout_type=NATIVE):
        pass

eric ide

mercurial