MicroPython/ustruct.py

Sun, 04 Apr 2021 16:54:03 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 04 Apr 2021 16:54:03 +0200
changeset 11
c8198736bff3
parent 2
2c3f30af031d
permissions
-rw-r--r--

Updated BBC micro:bit APIs for V2.

2
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 #
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6 """
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7 Module containing stubs for API generation of the def 'ustruct' module.
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8 """
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
10 def calcsize(fmt):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
11 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
12
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
13 def pack(fmt, *variables):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
14 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16 def pack_into(fmt, buffer, offset, *variables):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
17 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
19 def unpack(fmt, data):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
20 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
21
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
22 def unpack_from(fmt, data, offset=0):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
23 pass

eric ide

mercurial