test_message_def Python Documentation
Functions
- unpack_message(buf)
Unpack buffer into message instance based on header UID.
- Parameters:
buf (bytes-like) – an array to be unpacked.
- Returns:
a message instance.
- Raises:
UnknownMessage – UID from buffer header is unknown.
Various – See individual
unpack()
methods.
Exceptions
- exception UnpackError
General unpack error.
- exception UnknownMessage
Bases:
UnpackError
Unknown UID in buffer header.
- exception IncorrectBufferSize
Bases:
UnpackError
Buffer has incorrect length for message.
- exception InvalidUid
Bases:
UnpackError
Buffer header has incorrect UID for message.
- exception InvalidLen
Bases:
UnpackError
Buffer header has incorrect length for message.
Enums
The metaclass for enum classes includes implementations for __contains__()
,
__iter__()
, __getitem__()
, and __len__()
which
allows usage such as:
# __contains__
if EnumClass.Value0 in EnumClass:
pass
elif 'Value0' in EnumClass:
pass
elif 0 in EnumClass:
pass
# __iter__
for value in EnumClass:
pass
# __getitem__
e = EnumClass['Value0']
# __len__
if len(EnumClass) > 100:
pass
SsMsgType
- class SsMsgType
Bases:
ctypes.c_int8
Message types.
Class Attributes:
- Bitfield2BytesTest = 0
Retrieves an instance of
SsMsgType
initialized to valueBitfield2BytesTest
.
- Bitfield4BytesTest = 1
Retrieves an instance of
SsMsgType
initialized to valueBitfield4BytesTest
.
- Enum1BytesTest = 2
Retrieves an instance of
SsMsgType
initialized to valueEnum1BytesTest
.
- Enum2BytesTest = 3
Retrieves an instance of
SsMsgType
initialized to valueEnum2BytesTest
.
- PrimitiveTest = 4
Retrieves an instance of
SsMsgType
initialized to valuePrimitiveTest
.
Instance Attributes:
Instance Methods:
SsStatus
- class SsStatus
Bases:
ctypes.c_int8
Stuff Sack status code.
Class Attributes:
- InvalidUid = 1
Invalid message UID.
Retrieves an instance of
SsStatus
initialized to valueInvalidUid
.
- InvalidLen = 2
Invalid message length.
Retrieves an instance of
SsStatus
initialized to valueInvalidLen
.
Instance Attributes:
Instance Methods:
Enum1Bytes
- class Enum1Bytes
Bases:
ctypes.c_int8
Class Attributes:
- Value0 = 0
Retrieves an instance of
Enum1Bytes
initialized to valueValue0
.
- Value1 = 1
Retrieves an instance of
Enum1Bytes
initialized to valueValue1
.
- Value2 = 2
Retrieves an instance of
Enum1Bytes
initialized to valueValue2
.
- Value3 = 3
Retrieves an instance of
Enum1Bytes
initialized to valueValue3
.
- Value4 = 4
Retrieves an instance of
Enum1Bytes
initialized to valueValue4
.
- Value5 = 5
Retrieves an instance of
Enum1Bytes
initialized to valueValue5
.
- Value6 = 6
Retrieves an instance of
Enum1Bytes
initialized to valueValue6
.
- Value7 = 7
Retrieves an instance of
Enum1Bytes
initialized to valueValue7
.
- Value8 = 8
Retrieves an instance of
Enum1Bytes
initialized to valueValue8
.
- Value9 = 9
Retrieves an instance of
Enum1Bytes
initialized to valueValue9
.
- Value10 = 10
Retrieves an instance of
Enum1Bytes
initialized to valueValue10
.
- Value11 = 11
Retrieves an instance of
Enum1Bytes
initialized to valueValue11
.
- Value12 = 12
Retrieves an instance of
Enum1Bytes
initialized to valueValue12
.
- Value13 = 13
Retrieves an instance of
Enum1Bytes
initialized to valueValue13
.
- Value14 = 14
Retrieves an instance of
Enum1Bytes
initialized to valueValue14
.
- Value15 = 15
Retrieves an instance of
Enum1Bytes
initialized to valueValue15
.
- Value16 = 16
Retrieves an instance of
Enum1Bytes
initialized to valueValue16
.
- Value17 = 17
Retrieves an instance of
Enum1Bytes
initialized to valueValue17
.
- Value18 = 18
Retrieves an instance of
Enum1Bytes
initialized to valueValue18
.
- Value19 = 19
Retrieves an instance of
Enum1Bytes
initialized to valueValue19
.
- Value20 = 20
Retrieves an instance of
Enum1Bytes
initialized to valueValue20
.
- Value21 = 21
Retrieves an instance of
Enum1Bytes
initialized to valueValue21
.
- Value22 = 22
Retrieves an instance of
Enum1Bytes
initialized to valueValue22
.
- Value23 = 23
Retrieves an instance of
Enum1Bytes
initialized to valueValue23
.
- Value24 = 24
Retrieves an instance of
Enum1Bytes
initialized to valueValue24
.
- Value25 = 25
Retrieves an instance of
Enum1Bytes
initialized to valueValue25
.
- Value26 = 26
Retrieves an instance of
Enum1Bytes
initialized to valueValue26
.
- Value27 = 27
Retrieves an instance of
Enum1Bytes
initialized to valueValue27
.
- Value28 = 28
Retrieves an instance of
Enum1Bytes
initialized to valueValue28
.
- Value29 = 29
Retrieves an instance of
Enum1Bytes
initialized to valueValue29
.
- Value30 = 30
Retrieves an instance of
Enum1Bytes
initialized to valueValue30
.
- Value31 = 31
Retrieves an instance of
Enum1Bytes
initialized to valueValue31
.
- Value32 = 32
Retrieves an instance of
Enum1Bytes
initialized to valueValue32
.
- Value33 = 33
Retrieves an instance of
Enum1Bytes
initialized to valueValue33
.
- Value34 = 34
Retrieves an instance of
Enum1Bytes
initialized to valueValue34
.
- Value35 = 35
Retrieves an instance of
Enum1Bytes
initialized to valueValue35
.
- Value36 = 36
Retrieves an instance of
Enum1Bytes
initialized to valueValue36
.
- Value37 = 37
Retrieves an instance of
Enum1Bytes
initialized to valueValue37
.
- Value38 = 38
Retrieves an instance of
Enum1Bytes
initialized to valueValue38
.
- Value39 = 39
Retrieves an instance of
Enum1Bytes
initialized to valueValue39
.
- Value40 = 40
Retrieves an instance of
Enum1Bytes
initialized to valueValue40
.
- Value41 = 41
Retrieves an instance of
Enum1Bytes
initialized to valueValue41
.
- Value42 = 42
Retrieves an instance of
Enum1Bytes
initialized to valueValue42
.
- Value43 = 43
Retrieves an instance of
Enum1Bytes
initialized to valueValue43
.
- Value44 = 44
Retrieves an instance of
Enum1Bytes
initialized to valueValue44
.
- Value45 = 45
Retrieves an instance of
Enum1Bytes
initialized to valueValue45
.
- Value46 = 46
Retrieves an instance of
Enum1Bytes
initialized to valueValue46
.
- Value47 = 47
Retrieves an instance of
Enum1Bytes
initialized to valueValue47
.
- Value48 = 48
Retrieves an instance of
Enum1Bytes
initialized to valueValue48
.
- Value49 = 49
Retrieves an instance of
Enum1Bytes
initialized to valueValue49
.
- Value50 = 50
Retrieves an instance of
Enum1Bytes
initialized to valueValue50
.
- Value51 = 51
Retrieves an instance of
Enum1Bytes
initialized to valueValue51
.
- Value52 = 52
Retrieves an instance of
Enum1Bytes
initialized to valueValue52
.
- Value53 = 53
Retrieves an instance of
Enum1Bytes
initialized to valueValue53
.
- Value54 = 54
Retrieves an instance of
Enum1Bytes
initialized to valueValue54
.
- Value55 = 55
Retrieves an instance of
Enum1Bytes
initialized to valueValue55
.
- Value56 = 56
Retrieves an instance of
Enum1Bytes
initialized to valueValue56
.
- Value57 = 57
Retrieves an instance of
Enum1Bytes
initialized to valueValue57
.
- Value58 = 58
Retrieves an instance of
Enum1Bytes
initialized to valueValue58
.
- Value59 = 59
Retrieves an instance of
Enum1Bytes
initialized to valueValue59
.
- Value60 = 60
Retrieves an instance of
Enum1Bytes
initialized to valueValue60
.
- Value61 = 61
Retrieves an instance of
Enum1Bytes
initialized to valueValue61
.
- Value62 = 62
Retrieves an instance of
Enum1Bytes
initialized to valueValue62
.
- Value63 = 63
Retrieves an instance of
Enum1Bytes
initialized to valueValue63
.
- Value64 = 64
Retrieves an instance of
Enum1Bytes
initialized to valueValue64
.
- Value65 = 65
Retrieves an instance of
Enum1Bytes
initialized to valueValue65
.
- Value66 = 66
Retrieves an instance of
Enum1Bytes
initialized to valueValue66
.
- Value67 = 67
Retrieves an instance of
Enum1Bytes
initialized to valueValue67
.
- Value68 = 68
Retrieves an instance of
Enum1Bytes
initialized to valueValue68
.
- Value69 = 69
Retrieves an instance of
Enum1Bytes
initialized to valueValue69
.
- Value70 = 70
Retrieves an instance of
Enum1Bytes
initialized to valueValue70
.
- Value71 = 71
Retrieves an instance of
Enum1Bytes
initialized to valueValue71
.
- Value72 = 72
Retrieves an instance of
Enum1Bytes
initialized to valueValue72
.
- Value73 = 73
Retrieves an instance of
Enum1Bytes
initialized to valueValue73
.
- Value74 = 74
Retrieves an instance of
Enum1Bytes
initialized to valueValue74
.
- Value75 = 75
Retrieves an instance of
Enum1Bytes
initialized to valueValue75
.
- Value76 = 76
Retrieves an instance of
Enum1Bytes
initialized to valueValue76
.
- Value77 = 77
Retrieves an instance of
Enum1Bytes
initialized to valueValue77
.
- Value78 = 78
Retrieves an instance of
Enum1Bytes
initialized to valueValue78
.
- Value79 = 79
Retrieves an instance of
Enum1Bytes
initialized to valueValue79
.
- Value80 = 80
Retrieves an instance of
Enum1Bytes
initialized to valueValue80
.
- Value81 = 81
Retrieves an instance of
Enum1Bytes
initialized to valueValue81
.
- Value82 = 82
Retrieves an instance of
Enum1Bytes
initialized to valueValue82
.
- Value83 = 83
Retrieves an instance of
Enum1Bytes
initialized to valueValue83
.
- Value84 = 84
Retrieves an instance of
Enum1Bytes
initialized to valueValue84
.
- Value85 = 85
Retrieves an instance of
Enum1Bytes
initialized to valueValue85
.
- Value86 = 86
Retrieves an instance of
Enum1Bytes
initialized to valueValue86
.
- Value87 = 87
Retrieves an instance of
Enum1Bytes
initialized to valueValue87
.
- Value88 = 88
Retrieves an instance of
Enum1Bytes
initialized to valueValue88
.
- Value89 = 89
Retrieves an instance of
Enum1Bytes
initialized to valueValue89
.
- Value90 = 90
Retrieves an instance of
Enum1Bytes
initialized to valueValue90
.
- Value91 = 91
Retrieves an instance of
Enum1Bytes
initialized to valueValue91
.
- Value92 = 92
Retrieves an instance of
Enum1Bytes
initialized to valueValue92
.
- Value93 = 93
Retrieves an instance of
Enum1Bytes
initialized to valueValue93
.
- Value94 = 94
Retrieves an instance of
Enum1Bytes
initialized to valueValue94
.
- Value95 = 95
Retrieves an instance of
Enum1Bytes
initialized to valueValue95
.
- Value96 = 96
Retrieves an instance of
Enum1Bytes
initialized to valueValue96
.
- Value97 = 97
Retrieves an instance of
Enum1Bytes
initialized to valueValue97
.
- Value98 = 98
Retrieves an instance of
Enum1Bytes
initialized to valueValue98
.
- Value99 = 99
Retrieves an instance of
Enum1Bytes
initialized to valueValue99
.
- Value100 = 100
Retrieves an instance of
Enum1Bytes
initialized to valueValue100
.
- Value101 = 101
Retrieves an instance of
Enum1Bytes
initialized to valueValue101
.
- Value102 = 102
Retrieves an instance of
Enum1Bytes
initialized to valueValue102
.
- Value103 = 103
Retrieves an instance of
Enum1Bytes
initialized to valueValue103
.
- Value104 = 104
Retrieves an instance of
Enum1Bytes
initialized to valueValue104
.
- Value105 = 105
Retrieves an instance of
Enum1Bytes
initialized to valueValue105
.
- Value106 = 106
Retrieves an instance of
Enum1Bytes
initialized to valueValue106
.
- Value107 = 107
Retrieves an instance of
Enum1Bytes
initialized to valueValue107
.
- Value108 = 108
Retrieves an instance of
Enum1Bytes
initialized to valueValue108
.
- Value109 = 109
Retrieves an instance of
Enum1Bytes
initialized to valueValue109
.
- Value110 = 110
Retrieves an instance of
Enum1Bytes
initialized to valueValue110
.
- Value111 = 111
Retrieves an instance of
Enum1Bytes
initialized to valueValue111
.
- Value112 = 112
Retrieves an instance of
Enum1Bytes
initialized to valueValue112
.
- Value113 = 113
Retrieves an instance of
Enum1Bytes
initialized to valueValue113
.
- Value114 = 114
Retrieves an instance of
Enum1Bytes
initialized to valueValue114
.
- Value115 = 115
Retrieves an instance of
Enum1Bytes
initialized to valueValue115
.
- Value116 = 116
Retrieves an instance of
Enum1Bytes
initialized to valueValue116
.
- Value117 = 117
Retrieves an instance of
Enum1Bytes
initialized to valueValue117
.
- Value118 = 118
Retrieves an instance of
Enum1Bytes
initialized to valueValue118
.
- Value119 = 119
Retrieves an instance of
Enum1Bytes
initialized to valueValue119
.
- Value120 = 120
Retrieves an instance of
Enum1Bytes
initialized to valueValue120
.
- Value121 = 121
Retrieves an instance of
Enum1Bytes
initialized to valueValue121
.
- Value122 = 122
Retrieves an instance of
Enum1Bytes
initialized to valueValue122
.
- Value123 = 123
Retrieves an instance of
Enum1Bytes
initialized to valueValue123
.
- Value124 = 124
Retrieves an instance of
Enum1Bytes
initialized to valueValue124
.
- Value125 = 125
Retrieves an instance of
Enum1Bytes
initialized to valueValue125
.
- Value126 = 126
Retrieves an instance of
Enum1Bytes
initialized to valueValue126
.
Instance Attributes:
Instance Methods:
Enum2Bytes
- class Enum2Bytes
Bases:
ctypes.c_int16
This is an enum description.
Class Attributes:
- Value0 = 0
This is a enum value description
Retrieves an instance of
Enum2Bytes
initialized to valueValue0
.
- Value1 = 1
Retrieves an instance of
Enum2Bytes
initialized to valueValue1
.
- Value2 = 2
Retrieves an instance of
Enum2Bytes
initialized to valueValue2
.
- Value3 = 3
Retrieves an instance of
Enum2Bytes
initialized to valueValue3
.
- Value4 = 4
Retrieves an instance of
Enum2Bytes
initialized to valueValue4
.
- Value5 = 5
Retrieves an instance of
Enum2Bytes
initialized to valueValue5
.
- Value6 = 6
Retrieves an instance of
Enum2Bytes
initialized to valueValue6
.
- Value7 = 7
Retrieves an instance of
Enum2Bytes
initialized to valueValue7
.
- Value8 = 8
Retrieves an instance of
Enum2Bytes
initialized to valueValue8
.
- Value9 = 9
Retrieves an instance of
Enum2Bytes
initialized to valueValue9
.
- Value10 = 10
Retrieves an instance of
Enum2Bytes
initialized to valueValue10
.
- Value11 = 11
Retrieves an instance of
Enum2Bytes
initialized to valueValue11
.
- Value12 = 12
Retrieves an instance of
Enum2Bytes
initialized to valueValue12
.
- Value13 = 13
Retrieves an instance of
Enum2Bytes
initialized to valueValue13
.
- Value14 = 14
Retrieves an instance of
Enum2Bytes
initialized to valueValue14
.
- Value15 = 15
Retrieves an instance of
Enum2Bytes
initialized to valueValue15
.
- Value16 = 16
Retrieves an instance of
Enum2Bytes
initialized to valueValue16
.
- Value17 = 17
Retrieves an instance of
Enum2Bytes
initialized to valueValue17
.
- Value18 = 18
Retrieves an instance of
Enum2Bytes
initialized to valueValue18
.
- Value19 = 19
Retrieves an instance of
Enum2Bytes
initialized to valueValue19
.
- Value20 = 20
Retrieves an instance of
Enum2Bytes
initialized to valueValue20
.
- Value21 = 21
Retrieves an instance of
Enum2Bytes
initialized to valueValue21
.
- Value22 = 22
Retrieves an instance of
Enum2Bytes
initialized to valueValue22
.
- Value23 = 23
Retrieves an instance of
Enum2Bytes
initialized to valueValue23
.
- Value24 = 24
Retrieves an instance of
Enum2Bytes
initialized to valueValue24
.
- Value25 = 25
Retrieves an instance of
Enum2Bytes
initialized to valueValue25
.
- Value26 = 26
Retrieves an instance of
Enum2Bytes
initialized to valueValue26
.
- Value27 = 27
Retrieves an instance of
Enum2Bytes
initialized to valueValue27
.
- Value28 = 28
Retrieves an instance of
Enum2Bytes
initialized to valueValue28
.
- Value29 = 29
Retrieves an instance of
Enum2Bytes
initialized to valueValue29
.
- Value30 = 30
Retrieves an instance of
Enum2Bytes
initialized to valueValue30
.
- Value31 = 31
Retrieves an instance of
Enum2Bytes
initialized to valueValue31
.
- Value32 = 32
Retrieves an instance of
Enum2Bytes
initialized to valueValue32
.
- Value33 = 33
Retrieves an instance of
Enum2Bytes
initialized to valueValue33
.
- Value34 = 34
Retrieves an instance of
Enum2Bytes
initialized to valueValue34
.
- Value35 = 35
Retrieves an instance of
Enum2Bytes
initialized to valueValue35
.
- Value36 = 36
Retrieves an instance of
Enum2Bytes
initialized to valueValue36
.
- Value37 = 37
Retrieves an instance of
Enum2Bytes
initialized to valueValue37
.
- Value38 = 38
Retrieves an instance of
Enum2Bytes
initialized to valueValue38
.
- Value39 = 39
Retrieves an instance of
Enum2Bytes
initialized to valueValue39
.
- Value40 = 40
Retrieves an instance of
Enum2Bytes
initialized to valueValue40
.
- Value41 = 41
Retrieves an instance of
Enum2Bytes
initialized to valueValue41
.
- Value42 = 42
Retrieves an instance of
Enum2Bytes
initialized to valueValue42
.
- Value43 = 43
Retrieves an instance of
Enum2Bytes
initialized to valueValue43
.
- Value44 = 44
Retrieves an instance of
Enum2Bytes
initialized to valueValue44
.
- Value45 = 45
Retrieves an instance of
Enum2Bytes
initialized to valueValue45
.
- Value46 = 46
Retrieves an instance of
Enum2Bytes
initialized to valueValue46
.
- Value47 = 47
Retrieves an instance of
Enum2Bytes
initialized to valueValue47
.
- Value48 = 48
Retrieves an instance of
Enum2Bytes
initialized to valueValue48
.
- Value49 = 49
Retrieves an instance of
Enum2Bytes
initialized to valueValue49
.
- Value50 = 50
Retrieves an instance of
Enum2Bytes
initialized to valueValue50
.
- Value51 = 51
Retrieves an instance of
Enum2Bytes
initialized to valueValue51
.
- Value52 = 52
Retrieves an instance of
Enum2Bytes
initialized to valueValue52
.
- Value53 = 53
Retrieves an instance of
Enum2Bytes
initialized to valueValue53
.
- Value54 = 54
Retrieves an instance of
Enum2Bytes
initialized to valueValue54
.
- Value55 = 55
Retrieves an instance of
Enum2Bytes
initialized to valueValue55
.
- Value56 = 56
Retrieves an instance of
Enum2Bytes
initialized to valueValue56
.
- Value57 = 57
Retrieves an instance of
Enum2Bytes
initialized to valueValue57
.
- Value58 = 58
Retrieves an instance of
Enum2Bytes
initialized to valueValue58
.
- Value59 = 59
Retrieves an instance of
Enum2Bytes
initialized to valueValue59
.
- Value60 = 60
Retrieves an instance of
Enum2Bytes
initialized to valueValue60
.
- Value61 = 61
Retrieves an instance of
Enum2Bytes
initialized to valueValue61
.
- Value62 = 62
Retrieves an instance of
Enum2Bytes
initialized to valueValue62
.
- Value63 = 63
Retrieves an instance of
Enum2Bytes
initialized to valueValue63
.
- Value64 = 64
Retrieves an instance of
Enum2Bytes
initialized to valueValue64
.
- Value65 = 65
Retrieves an instance of
Enum2Bytes
initialized to valueValue65
.
- Value66 = 66
Retrieves an instance of
Enum2Bytes
initialized to valueValue66
.
- Value67 = 67
Retrieves an instance of
Enum2Bytes
initialized to valueValue67
.
- Value68 = 68
Retrieves an instance of
Enum2Bytes
initialized to valueValue68
.
- Value69 = 69
Retrieves an instance of
Enum2Bytes
initialized to valueValue69
.
- Value70 = 70
Retrieves an instance of
Enum2Bytes
initialized to valueValue70
.
- Value71 = 71
Retrieves an instance of
Enum2Bytes
initialized to valueValue71
.
- Value72 = 72
Retrieves an instance of
Enum2Bytes
initialized to valueValue72
.
- Value73 = 73
Retrieves an instance of
Enum2Bytes
initialized to valueValue73
.
- Value74 = 74
Retrieves an instance of
Enum2Bytes
initialized to valueValue74
.
- Value75 = 75
Retrieves an instance of
Enum2Bytes
initialized to valueValue75
.
- Value76 = 76
Retrieves an instance of
Enum2Bytes
initialized to valueValue76
.
- Value77 = 77
Retrieves an instance of
Enum2Bytes
initialized to valueValue77
.
- Value78 = 78
Retrieves an instance of
Enum2Bytes
initialized to valueValue78
.
- Value79 = 79
Retrieves an instance of
Enum2Bytes
initialized to valueValue79
.
- Value80 = 80
Retrieves an instance of
Enum2Bytes
initialized to valueValue80
.
- Value81 = 81
Retrieves an instance of
Enum2Bytes
initialized to valueValue81
.
- Value82 = 82
Retrieves an instance of
Enum2Bytes
initialized to valueValue82
.
- Value83 = 83
Retrieves an instance of
Enum2Bytes
initialized to valueValue83
.
- Value84 = 84
Retrieves an instance of
Enum2Bytes
initialized to valueValue84
.
- Value85 = 85
Retrieves an instance of
Enum2Bytes
initialized to valueValue85
.
- Value86 = 86
Retrieves an instance of
Enum2Bytes
initialized to valueValue86
.
- Value87 = 87
Retrieves an instance of
Enum2Bytes
initialized to valueValue87
.
- Value88 = 88
Retrieves an instance of
Enum2Bytes
initialized to valueValue88
.
- Value89 = 89
Retrieves an instance of
Enum2Bytes
initialized to valueValue89
.
- Value90 = 90
Retrieves an instance of
Enum2Bytes
initialized to valueValue90
.
- Value91 = 91
Retrieves an instance of
Enum2Bytes
initialized to valueValue91
.
- Value92 = 92
Retrieves an instance of
Enum2Bytes
initialized to valueValue92
.
- Value93 = 93
Retrieves an instance of
Enum2Bytes
initialized to valueValue93
.
- Value94 = 94
Retrieves an instance of
Enum2Bytes
initialized to valueValue94
.
- Value95 = 95
Retrieves an instance of
Enum2Bytes
initialized to valueValue95
.
- Value96 = 96
Retrieves an instance of
Enum2Bytes
initialized to valueValue96
.
- Value97 = 97
Retrieves an instance of
Enum2Bytes
initialized to valueValue97
.
- Value98 = 98
Retrieves an instance of
Enum2Bytes
initialized to valueValue98
.
- Value99 = 99
Retrieves an instance of
Enum2Bytes
initialized to valueValue99
.
- Value100 = 100
Retrieves an instance of
Enum2Bytes
initialized to valueValue100
.
- Value101 = 101
Retrieves an instance of
Enum2Bytes
initialized to valueValue101
.
- Value102 = 102
Retrieves an instance of
Enum2Bytes
initialized to valueValue102
.
- Value103 = 103
Retrieves an instance of
Enum2Bytes
initialized to valueValue103
.
- Value104 = 104
Retrieves an instance of
Enum2Bytes
initialized to valueValue104
.
- Value105 = 105
Retrieves an instance of
Enum2Bytes
initialized to valueValue105
.
- Value106 = 106
Retrieves an instance of
Enum2Bytes
initialized to valueValue106
.
- Value107 = 107
Retrieves an instance of
Enum2Bytes
initialized to valueValue107
.
- Value108 = 108
Retrieves an instance of
Enum2Bytes
initialized to valueValue108
.
- Value109 = 109
Retrieves an instance of
Enum2Bytes
initialized to valueValue109
.
- Value110 = 110
Retrieves an instance of
Enum2Bytes
initialized to valueValue110
.
- Value111 = 111
Retrieves an instance of
Enum2Bytes
initialized to valueValue111
.
- Value112 = 112
Retrieves an instance of
Enum2Bytes
initialized to valueValue112
.
- Value113 = 113
Retrieves an instance of
Enum2Bytes
initialized to valueValue113
.
- Value114 = 114
Retrieves an instance of
Enum2Bytes
initialized to valueValue114
.
- Value115 = 115
Retrieves an instance of
Enum2Bytes
initialized to valueValue115
.
- Value116 = 116
Retrieves an instance of
Enum2Bytes
initialized to valueValue116
.
- Value117 = 117
Retrieves an instance of
Enum2Bytes
initialized to valueValue117
.
- Value118 = 118
Retrieves an instance of
Enum2Bytes
initialized to valueValue118
.
- Value119 = 119
Retrieves an instance of
Enum2Bytes
initialized to valueValue119
.
- Value120 = 120
Retrieves an instance of
Enum2Bytes
initialized to valueValue120
.
- Value121 = 121
Retrieves an instance of
Enum2Bytes
initialized to valueValue121
.
- Value122 = 122
Retrieves an instance of
Enum2Bytes
initialized to valueValue122
.
- Value123 = 123
Retrieves an instance of
Enum2Bytes
initialized to valueValue123
.
- Value124 = 124
Retrieves an instance of
Enum2Bytes
initialized to valueValue124
.
- Value125 = 125
Retrieves an instance of
Enum2Bytes
initialized to valueValue125
.
- Value126 = 126
Retrieves an instance of
Enum2Bytes
initialized to valueValue126
.
- Value127 = 127
Retrieves an instance of
Enum2Bytes
initialized to valueValue127
.
Instance Attributes:
Instance Methods:
Bitfields
Bitfield2Bytes
- class Bitfield2Bytes
Bases:
ctypes.Structure
Fields:
Bitfield4Bytes
- class Bitfield4Bytes
Bases:
ctypes.Structure
This is a bitfield description.
Fields:
- field0: ctypes.c_uint32
This is a bitfield field description.
Bits: 3
- field1: ctypes.c_uint32
Bits: 5
- field2: ctypes.c_uint32
Bits: 9
Structures
SsHeader
- class SsHeader
Bases:
ctypes.Structure
Message header.
Fields:
- uid: ctypes.c_uint32
Message unique id.
- len: ctypes.c_uint16
Message length.
ArrayElem
- class ArrayElem
Bases:
ctypes.Structure
This is a struct description.
Fields:
- field0: ctypes.c_bool
This is a struct field description.
- field1: ctypes.c_uint16
Messages
Bitfield2BytesTest
- class Bitfield2BytesTest
Bases:
ctypes.Structure
Fields:
- bitfield: Bitfield2Bytes
Class Attributes:
- packed_size = 8
Class Methods:
- classmethod get_buffer()
Get buffer of correct size for message.
- Returns:
an array of length
packed_size
.- Return type:
- classmethod unpack(buf)
Unpack array into message.
- Parameters:
buf (bytes-like) – array of
packed_size
to be unpacked.- Returns:
the unpacked message.
- Return type:
- Raises:
IncorrectBufferSize – unpack buffer length does not match message
packed_size
.InvalidUid – UID in buffer header does not match message UID.
InvalidLen – length in buffer header does not match message
packed_size
.
Instance Methods:
- pack()
Pack message into array.
- Returns:
a packed array of length
packed_size
.- Return type:
Bitfield4BytesTest
- class Bitfield4BytesTest
Bases:
ctypes.Structure
Fields:
- bitfield: Bitfield4Bytes
Class Attributes:
- packed_size = 10
Class Methods:
- classmethod get_buffer()
Get buffer of correct size for message.
- Returns:
an array of length
packed_size
.- Return type:
- classmethod unpack(buf)
Unpack array into message.
- Parameters:
buf (bytes-like) – array of
packed_size
to be unpacked.- Returns:
the unpacked message.
- Return type:
- Raises:
IncorrectBufferSize – unpack buffer length does not match message
packed_size
.InvalidUid – UID in buffer header does not match message UID.
InvalidLen – length in buffer header does not match message
packed_size
.
Instance Methods:
- pack()
Pack message into array.
- Returns:
a packed array of length
packed_size
.- Return type:
Enum1BytesTest
- class Enum1BytesTest
Bases:
ctypes.Structure
Fields:
- enumeration: Enum1Bytes
Class Attributes:
- packed_size = 7
Class Methods:
- classmethod get_buffer()
Get buffer of correct size for message.
- Returns:
an array of length
packed_size
.- Return type:
- classmethod unpack(buf)
Unpack array into message.
- Parameters:
buf (bytes-like) – array of
packed_size
to be unpacked.- Returns:
the unpacked message.
- Return type:
- Raises:
IncorrectBufferSize – unpack buffer length does not match message
packed_size
.InvalidUid – UID in buffer header does not match message UID.
InvalidLen – length in buffer header does not match message
packed_size
.
Instance Methods:
- pack()
Pack message into array.
- Returns:
a packed array of length
packed_size
.- Return type:
Enum2BytesTest
- class Enum2BytesTest
Bases:
ctypes.Structure
Fields:
- enumeration: Enum2Bytes
Class Attributes:
- packed_size = 8
Class Methods:
- classmethod get_buffer()
Get buffer of correct size for message.
- Returns:
an array of length
packed_size
.- Return type:
- classmethod unpack(buf)
Unpack array into message.
- Parameters:
buf (bytes-like) – array of
packed_size
to be unpacked.- Returns:
the unpacked message.
- Return type:
- Raises:
IncorrectBufferSize – unpack buffer length does not match message
packed_size
.InvalidUid – UID in buffer header does not match message UID.
InvalidLen – length in buffer header does not match message
packed_size
.
Instance Methods:
- pack()
Pack message into array.
- Returns:
a packed array of length
packed_size
.- Return type:
PrimitiveTest
- class PrimitiveTest
Bases:
ctypes.Structure
Fields:
- uint8: ctypes.c_uint8
- uint16: ctypes.c_uint16
- uint32: ctypes.c_uint32
- uint64: ctypes.c_uint64
- int8: ctypes.c_int8
- int16: ctypes.c_int16
- int32: ctypes.c_int32
- int64: ctypes.c_int64
- boolean: ctypes.c_bool
- float_type: ctypes.c_float
- double_type: ctypes.c_double
Class Attributes:
- packed_size = 49
Class Methods:
- classmethod get_buffer()
Get buffer of correct size for message.
- Returns:
an array of length
packed_size
.- Return type:
- classmethod unpack(buf)
Unpack array into message.
- Parameters:
buf (bytes-like) – array of
packed_size
to be unpacked.- Returns:
the unpacked message.
- Return type:
- Raises:
IncorrectBufferSize – unpack buffer length does not match message
packed_size
.InvalidUid – UID in buffer header does not match message UID.
InvalidLen – length in buffer header does not match message
packed_size
.
Instance Methods:
- pack()
Pack message into array.
- Returns:
a packed array of length
packed_size
.- Return type:
ArrayTest
- class ArrayTest
Bases:
ctypes.Structure
This is a message description.
Fields:
Class Attributes:
- packed_size = 51
Class Methods:
- classmethod get_buffer()
Get buffer of correct size for message.
- Returns:
an array of length
packed_size
.- Return type:
- classmethod unpack(buf)
Unpack array into message.
- Parameters:
buf (bytes-like) – array of
packed_size
to be unpacked.- Returns:
the unpacked message.
- Return type:
- Raises:
IncorrectBufferSize – unpack buffer length does not match message
packed_size
.InvalidUid – UID in buffer header does not match message UID.
InvalidLen – length in buffer header does not match message
packed_size
.
Instance Methods:
- pack()
Pack message into array.
- Returns:
a packed array of length
packed_size
.- Return type: