Move tagged object into the same module as the tags
[sandbox] / serial / serial / tags.py
1 import collections
2
3 NULL = 0x00
4 TRUE = 0x01
5 FALSE = 0x02
6 UINT8 = 0x03
7 UINT16 = 0x04
8 UINT32 = 0x05
9 UINT64 = 0x06
10 INT8 = 0x10
11 INT16 = 0x11
12 INT32 = 0x12
13 INT64 = 0x13
14 BINARY = 0x20
15 UTF8 = 0x21
16 UTF16 = 0x22
17 UTF32 = 0x23
18 TUPLE = 0x30
19
20 TaggedObject = collections.namedtuple(
21     'TaggedObject',
22     [
23         'tag',
24         'instance',
25     ],
26 )