Sun, 25 Aug 2019 19:25:37 +0200
Started to add the stubs for MicroPython.
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 'uos' 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 uname(): |
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 urandom(n): |
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 chdir(path): |
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 getcwd(): |
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 ilistdir(dir="."): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
23 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
24 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
25 | def listdir(dir="."): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
26 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
27 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
28 | def mkdir(path): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
29 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
30 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
31 | def remove(path): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
32 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
33 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
34 | def rmdir(path): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
35 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
36 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
37 | def rename(old_path, new_path): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
38 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
39 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
40 | def stat(path): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
41 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
42 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
43 | def statvfs(path): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
44 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
45 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
46 | def sync(): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
47 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
48 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
49 | def dupterm(stream_object, index=0): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
50 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
51 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
52 | def mount(fsobj, mount_point, *, readonly): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
53 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
54 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
55 | def umount(mount_point): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
56 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
57 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
58 | class VfsFat(): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
59 | def __init__(self, block_dev): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
60 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
61 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
62 | @staticmethod |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
63 | def mkfs(block_dev): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
64 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
65 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
66 | class AbstractBlockDev(): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
67 | def __init__(self): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
68 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
69 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
70 | def readblocks(self, block_num, buf): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
71 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
72 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
73 | def writeblocks(self, block_num, buf): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
74 | pass |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
75 | |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
76 | def ioctl(self, op, arg): |
2c3f30af031d
Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
77 | pass |