MicroPython/uctypes.py

Sun, 25 Aug 2019 19:25:37 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 25 Aug 2019 19:25:37 +0200
changeset 2
2c3f30af031d
permissions
-rw-r--r--

Started to add the stubs for MicroPython.

# -*- 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