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:
UnpackErrorUnknown UID in buffer header.
- exception IncorrectBufferSize
Bases:
UnpackErrorBuffer has incorrect length for message.
- exception InvalidUid
Bases:
UnpackErrorBuffer header has incorrect UID for message.
- exception InvalidLen
Bases:
UnpackErrorBuffer 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_int8Message types.
Class Attributes:
- Bitfield2BytesTest = 0
Retrieves an instance of
SsMsgTypeinitialized to valueBitfield2BytesTest.
- Bitfield4BytesTest = 1
Retrieves an instance of
SsMsgTypeinitialized to valueBitfield4BytesTest.
- Enum1BytesTest = 2
Retrieves an instance of
SsMsgTypeinitialized to valueEnum1BytesTest.
- Enum2BytesTest = 3
Retrieves an instance of
SsMsgTypeinitialized to valueEnum2BytesTest.
- PrimitiveTest = 4
Retrieves an instance of
SsMsgTypeinitialized to valuePrimitiveTest.
Instance Attributes:
Instance Methods:
SsStatus
- class SsStatus
Bases:
ctypes.c_int8Stuff Sack status code.
Class Attributes:
- InvalidUid = 1
Invalid message UID.
Retrieves an instance of
SsStatusinitialized to valueInvalidUid.
- InvalidLen = 2
Invalid message length.
Retrieves an instance of
SsStatusinitialized to valueInvalidLen.
Instance Attributes:
Instance Methods:
Enum1Bytes
- class Enum1Bytes
Bases:
ctypes.c_int8Class Attributes:
- Value0 = 0
Retrieves an instance of
Enum1Bytesinitialized to valueValue0.
- Value1 = 1
Retrieves an instance of
Enum1Bytesinitialized to valueValue1.
- Value2 = 2
Retrieves an instance of
Enum1Bytesinitialized to valueValue2.
- Value3 = 3
Retrieves an instance of
Enum1Bytesinitialized to valueValue3.
- Value4 = 4
Retrieves an instance of
Enum1Bytesinitialized to valueValue4.
- Value5 = 5
Retrieves an instance of
Enum1Bytesinitialized to valueValue5.
- Value6 = 6
Retrieves an instance of
Enum1Bytesinitialized to valueValue6.
- Value7 = 7
Retrieves an instance of
Enum1Bytesinitialized to valueValue7.
- Value8 = 8
Retrieves an instance of
Enum1Bytesinitialized to valueValue8.
- Value9 = 9
Retrieves an instance of
Enum1Bytesinitialized to valueValue9.
- Value10 = 10
Retrieves an instance of
Enum1Bytesinitialized to valueValue10.
- Value11 = 11
Retrieves an instance of
Enum1Bytesinitialized to valueValue11.
- Value12 = 12
Retrieves an instance of
Enum1Bytesinitialized to valueValue12.
- Value13 = 13
Retrieves an instance of
Enum1Bytesinitialized to valueValue13.
- Value14 = 14
Retrieves an instance of
Enum1Bytesinitialized to valueValue14.
- Value15 = 15
Retrieves an instance of
Enum1Bytesinitialized to valueValue15.
- Value16 = 16
Retrieves an instance of
Enum1Bytesinitialized to valueValue16.
- Value17 = 17
Retrieves an instance of
Enum1Bytesinitialized to valueValue17.
- Value18 = 18
Retrieves an instance of
Enum1Bytesinitialized to valueValue18.
- Value19 = 19
Retrieves an instance of
Enum1Bytesinitialized to valueValue19.
- Value20 = 20
Retrieves an instance of
Enum1Bytesinitialized to valueValue20.
- Value21 = 21
Retrieves an instance of
Enum1Bytesinitialized to valueValue21.
- Value22 = 22
Retrieves an instance of
Enum1Bytesinitialized to valueValue22.
- Value23 = 23
Retrieves an instance of
Enum1Bytesinitialized to valueValue23.
- Value24 = 24
Retrieves an instance of
Enum1Bytesinitialized to valueValue24.
- Value25 = 25
Retrieves an instance of
Enum1Bytesinitialized to valueValue25.
- Value26 = 26
Retrieves an instance of
Enum1Bytesinitialized to valueValue26.
- Value27 = 27
Retrieves an instance of
Enum1Bytesinitialized to valueValue27.
- Value28 = 28
Retrieves an instance of
Enum1Bytesinitialized to valueValue28.
- Value29 = 29
Retrieves an instance of
Enum1Bytesinitialized to valueValue29.
- Value30 = 30
Retrieves an instance of
Enum1Bytesinitialized to valueValue30.
- Value31 = 31
Retrieves an instance of
Enum1Bytesinitialized to valueValue31.
- Value32 = 32
Retrieves an instance of
Enum1Bytesinitialized to valueValue32.
- Value33 = 33
Retrieves an instance of
Enum1Bytesinitialized to valueValue33.
- Value34 = 34
Retrieves an instance of
Enum1Bytesinitialized to valueValue34.
- Value35 = 35
Retrieves an instance of
Enum1Bytesinitialized to valueValue35.
- Value36 = 36
Retrieves an instance of
Enum1Bytesinitialized to valueValue36.
- Value37 = 37
Retrieves an instance of
Enum1Bytesinitialized to valueValue37.
- Value38 = 38
Retrieves an instance of
Enum1Bytesinitialized to valueValue38.
- Value39 = 39
Retrieves an instance of
Enum1Bytesinitialized to valueValue39.
- Value40 = 40
Retrieves an instance of
Enum1Bytesinitialized to valueValue40.
- Value41 = 41
Retrieves an instance of
Enum1Bytesinitialized to valueValue41.
- Value42 = 42
Retrieves an instance of
Enum1Bytesinitialized to valueValue42.
- Value43 = 43
Retrieves an instance of
Enum1Bytesinitialized to valueValue43.
- Value44 = 44
Retrieves an instance of
Enum1Bytesinitialized to valueValue44.
- Value45 = 45
Retrieves an instance of
Enum1Bytesinitialized to valueValue45.
- Value46 = 46
Retrieves an instance of
Enum1Bytesinitialized to valueValue46.
- Value47 = 47
Retrieves an instance of
Enum1Bytesinitialized to valueValue47.
- Value48 = 48
Retrieves an instance of
Enum1Bytesinitialized to valueValue48.
- Value49 = 49
Retrieves an instance of
Enum1Bytesinitialized to valueValue49.
- Value50 = 50
Retrieves an instance of
Enum1Bytesinitialized to valueValue50.
- Value51 = 51
Retrieves an instance of
Enum1Bytesinitialized to valueValue51.
- Value52 = 52
Retrieves an instance of
Enum1Bytesinitialized to valueValue52.
- Value53 = 53
Retrieves an instance of
Enum1Bytesinitialized to valueValue53.
- Value54 = 54
Retrieves an instance of
Enum1Bytesinitialized to valueValue54.
- Value55 = 55
Retrieves an instance of
Enum1Bytesinitialized to valueValue55.
- Value56 = 56
Retrieves an instance of
Enum1Bytesinitialized to valueValue56.
- Value57 = 57
Retrieves an instance of
Enum1Bytesinitialized to valueValue57.
- Value58 = 58
Retrieves an instance of
Enum1Bytesinitialized to valueValue58.
- Value59 = 59
Retrieves an instance of
Enum1Bytesinitialized to valueValue59.
- Value60 = 60
Retrieves an instance of
Enum1Bytesinitialized to valueValue60.
- Value61 = 61
Retrieves an instance of
Enum1Bytesinitialized to valueValue61.
- Value62 = 62
Retrieves an instance of
Enum1Bytesinitialized to valueValue62.
- Value63 = 63
Retrieves an instance of
Enum1Bytesinitialized to valueValue63.
- Value64 = 64
Retrieves an instance of
Enum1Bytesinitialized to valueValue64.
- Value65 = 65
Retrieves an instance of
Enum1Bytesinitialized to valueValue65.
- Value66 = 66
Retrieves an instance of
Enum1Bytesinitialized to valueValue66.
- Value67 = 67
Retrieves an instance of
Enum1Bytesinitialized to valueValue67.
- Value68 = 68
Retrieves an instance of
Enum1Bytesinitialized to valueValue68.
- Value69 = 69
Retrieves an instance of
Enum1Bytesinitialized to valueValue69.
- Value70 = 70
Retrieves an instance of
Enum1Bytesinitialized to valueValue70.
- Value71 = 71
Retrieves an instance of
Enum1Bytesinitialized to valueValue71.
- Value72 = 72
Retrieves an instance of
Enum1Bytesinitialized to valueValue72.
- Value73 = 73
Retrieves an instance of
Enum1Bytesinitialized to valueValue73.
- Value74 = 74
Retrieves an instance of
Enum1Bytesinitialized to valueValue74.
- Value75 = 75
Retrieves an instance of
Enum1Bytesinitialized to valueValue75.
- Value76 = 76
Retrieves an instance of
Enum1Bytesinitialized to valueValue76.
- Value77 = 77
Retrieves an instance of
Enum1Bytesinitialized to valueValue77.
- Value78 = 78
Retrieves an instance of
Enum1Bytesinitialized to valueValue78.
- Value79 = 79
Retrieves an instance of
Enum1Bytesinitialized to valueValue79.
- Value80 = 80
Retrieves an instance of
Enum1Bytesinitialized to valueValue80.
- Value81 = 81
Retrieves an instance of
Enum1Bytesinitialized to valueValue81.
- Value82 = 82
Retrieves an instance of
Enum1Bytesinitialized to valueValue82.
- Value83 = 83
Retrieves an instance of
Enum1Bytesinitialized to valueValue83.
- Value84 = 84
Retrieves an instance of
Enum1Bytesinitialized to valueValue84.
- Value85 = 85
Retrieves an instance of
Enum1Bytesinitialized to valueValue85.
- Value86 = 86
Retrieves an instance of
Enum1Bytesinitialized to valueValue86.
- Value87 = 87
Retrieves an instance of
Enum1Bytesinitialized to valueValue87.
- Value88 = 88
Retrieves an instance of
Enum1Bytesinitialized to valueValue88.
- Value89 = 89
Retrieves an instance of
Enum1Bytesinitialized to valueValue89.
- Value90 = 90
Retrieves an instance of
Enum1Bytesinitialized to valueValue90.
- Value91 = 91
Retrieves an instance of
Enum1Bytesinitialized to valueValue91.
- Value92 = 92
Retrieves an instance of
Enum1Bytesinitialized to valueValue92.
- Value93 = 93
Retrieves an instance of
Enum1Bytesinitialized to valueValue93.
- Value94 = 94
Retrieves an instance of
Enum1Bytesinitialized to valueValue94.
- Value95 = 95
Retrieves an instance of
Enum1Bytesinitialized to valueValue95.
- Value96 = 96
Retrieves an instance of
Enum1Bytesinitialized to valueValue96.
- Value97 = 97
Retrieves an instance of
Enum1Bytesinitialized to valueValue97.
- Value98 = 98
Retrieves an instance of
Enum1Bytesinitialized to valueValue98.
- Value99 = 99
Retrieves an instance of
Enum1Bytesinitialized to valueValue99.
- Value100 = 100
Retrieves an instance of
Enum1Bytesinitialized to valueValue100.
- Value101 = 101
Retrieves an instance of
Enum1Bytesinitialized to valueValue101.
- Value102 = 102
Retrieves an instance of
Enum1Bytesinitialized to valueValue102.
- Value103 = 103
Retrieves an instance of
Enum1Bytesinitialized to valueValue103.
- Value104 = 104
Retrieves an instance of
Enum1Bytesinitialized to valueValue104.
- Value105 = 105
Retrieves an instance of
Enum1Bytesinitialized to valueValue105.
- Value106 = 106
Retrieves an instance of
Enum1Bytesinitialized to valueValue106.
- Value107 = 107
Retrieves an instance of
Enum1Bytesinitialized to valueValue107.
- Value108 = 108
Retrieves an instance of
Enum1Bytesinitialized to valueValue108.
- Value109 = 109
Retrieves an instance of
Enum1Bytesinitialized to valueValue109.
- Value110 = 110
Retrieves an instance of
Enum1Bytesinitialized to valueValue110.
- Value111 = 111
Retrieves an instance of
Enum1Bytesinitialized to valueValue111.
- Value112 = 112
Retrieves an instance of
Enum1Bytesinitialized to valueValue112.
- Value113 = 113
Retrieves an instance of
Enum1Bytesinitialized to valueValue113.
- Value114 = 114
Retrieves an instance of
Enum1Bytesinitialized to valueValue114.
- Value115 = 115
Retrieves an instance of
Enum1Bytesinitialized to valueValue115.
- Value116 = 116
Retrieves an instance of
Enum1Bytesinitialized to valueValue116.
- Value117 = 117
Retrieves an instance of
Enum1Bytesinitialized to valueValue117.
- Value118 = 118
Retrieves an instance of
Enum1Bytesinitialized to valueValue118.
- Value119 = 119
Retrieves an instance of
Enum1Bytesinitialized to valueValue119.
- Value120 = 120
Retrieves an instance of
Enum1Bytesinitialized to valueValue120.
- Value121 = 121
Retrieves an instance of
Enum1Bytesinitialized to valueValue121.
- Value122 = 122
Retrieves an instance of
Enum1Bytesinitialized to valueValue122.
- Value123 = 123
Retrieves an instance of
Enum1Bytesinitialized to valueValue123.
- Value124 = 124
Retrieves an instance of
Enum1Bytesinitialized to valueValue124.
- Value125 = 125
Retrieves an instance of
Enum1Bytesinitialized to valueValue125.
- Value126 = 126
Retrieves an instance of
Enum1Bytesinitialized to valueValue126.
Instance Attributes:
Instance Methods:
Enum2Bytes
- class Enum2Bytes
Bases:
ctypes.c_int16This is an enum description.
Class Attributes:
- Value0 = 0
This is a enum value description
Retrieves an instance of
Enum2Bytesinitialized to valueValue0.
- Value1 = 1
Retrieves an instance of
Enum2Bytesinitialized to valueValue1.
- Value2 = 2
Retrieves an instance of
Enum2Bytesinitialized to valueValue2.
- Value3 = 3
Retrieves an instance of
Enum2Bytesinitialized to valueValue3.
- Value4 = 4
Retrieves an instance of
Enum2Bytesinitialized to valueValue4.
- Value5 = 5
Retrieves an instance of
Enum2Bytesinitialized to valueValue5.
- Value6 = 6
Retrieves an instance of
Enum2Bytesinitialized to valueValue6.
- Value7 = 7
Retrieves an instance of
Enum2Bytesinitialized to valueValue7.
- Value8 = 8
Retrieves an instance of
Enum2Bytesinitialized to valueValue8.
- Value9 = 9
Retrieves an instance of
Enum2Bytesinitialized to valueValue9.
- Value10 = 10
Retrieves an instance of
Enum2Bytesinitialized to valueValue10.
- Value11 = 11
Retrieves an instance of
Enum2Bytesinitialized to valueValue11.
- Value12 = 12
Retrieves an instance of
Enum2Bytesinitialized to valueValue12.
- Value13 = 13
Retrieves an instance of
Enum2Bytesinitialized to valueValue13.
- Value14 = 14
Retrieves an instance of
Enum2Bytesinitialized to valueValue14.
- Value15 = 15
Retrieves an instance of
Enum2Bytesinitialized to valueValue15.
- Value16 = 16
Retrieves an instance of
Enum2Bytesinitialized to valueValue16.
- Value17 = 17
Retrieves an instance of
Enum2Bytesinitialized to valueValue17.
- Value18 = 18
Retrieves an instance of
Enum2Bytesinitialized to valueValue18.
- Value19 = 19
Retrieves an instance of
Enum2Bytesinitialized to valueValue19.
- Value20 = 20
Retrieves an instance of
Enum2Bytesinitialized to valueValue20.
- Value21 = 21
Retrieves an instance of
Enum2Bytesinitialized to valueValue21.
- Value22 = 22
Retrieves an instance of
Enum2Bytesinitialized to valueValue22.
- Value23 = 23
Retrieves an instance of
Enum2Bytesinitialized to valueValue23.
- Value24 = 24
Retrieves an instance of
Enum2Bytesinitialized to valueValue24.
- Value25 = 25
Retrieves an instance of
Enum2Bytesinitialized to valueValue25.
- Value26 = 26
Retrieves an instance of
Enum2Bytesinitialized to valueValue26.
- Value27 = 27
Retrieves an instance of
Enum2Bytesinitialized to valueValue27.
- Value28 = 28
Retrieves an instance of
Enum2Bytesinitialized to valueValue28.
- Value29 = 29
Retrieves an instance of
Enum2Bytesinitialized to valueValue29.
- Value30 = 30
Retrieves an instance of
Enum2Bytesinitialized to valueValue30.
- Value31 = 31
Retrieves an instance of
Enum2Bytesinitialized to valueValue31.
- Value32 = 32
Retrieves an instance of
Enum2Bytesinitialized to valueValue32.
- Value33 = 33
Retrieves an instance of
Enum2Bytesinitialized to valueValue33.
- Value34 = 34
Retrieves an instance of
Enum2Bytesinitialized to valueValue34.
- Value35 = 35
Retrieves an instance of
Enum2Bytesinitialized to valueValue35.
- Value36 = 36
Retrieves an instance of
Enum2Bytesinitialized to valueValue36.
- Value37 = 37
Retrieves an instance of
Enum2Bytesinitialized to valueValue37.
- Value38 = 38
Retrieves an instance of
Enum2Bytesinitialized to valueValue38.
- Value39 = 39
Retrieves an instance of
Enum2Bytesinitialized to valueValue39.
- Value40 = 40
Retrieves an instance of
Enum2Bytesinitialized to valueValue40.
- Value41 = 41
Retrieves an instance of
Enum2Bytesinitialized to valueValue41.
- Value42 = 42
Retrieves an instance of
Enum2Bytesinitialized to valueValue42.
- Value43 = 43
Retrieves an instance of
Enum2Bytesinitialized to valueValue43.
- Value44 = 44
Retrieves an instance of
Enum2Bytesinitialized to valueValue44.
- Value45 = 45
Retrieves an instance of
Enum2Bytesinitialized to valueValue45.
- Value46 = 46
Retrieves an instance of
Enum2Bytesinitialized to valueValue46.
- Value47 = 47
Retrieves an instance of
Enum2Bytesinitialized to valueValue47.
- Value48 = 48
Retrieves an instance of
Enum2Bytesinitialized to valueValue48.
- Value49 = 49
Retrieves an instance of
Enum2Bytesinitialized to valueValue49.
- Value50 = 50
Retrieves an instance of
Enum2Bytesinitialized to valueValue50.
- Value51 = 51
Retrieves an instance of
Enum2Bytesinitialized to valueValue51.
- Value52 = 52
Retrieves an instance of
Enum2Bytesinitialized to valueValue52.
- Value53 = 53
Retrieves an instance of
Enum2Bytesinitialized to valueValue53.
- Value54 = 54
Retrieves an instance of
Enum2Bytesinitialized to valueValue54.
- Value55 = 55
Retrieves an instance of
Enum2Bytesinitialized to valueValue55.
- Value56 = 56
Retrieves an instance of
Enum2Bytesinitialized to valueValue56.
- Value57 = 57
Retrieves an instance of
Enum2Bytesinitialized to valueValue57.
- Value58 = 58
Retrieves an instance of
Enum2Bytesinitialized to valueValue58.
- Value59 = 59
Retrieves an instance of
Enum2Bytesinitialized to valueValue59.
- Value60 = 60
Retrieves an instance of
Enum2Bytesinitialized to valueValue60.
- Value61 = 61
Retrieves an instance of
Enum2Bytesinitialized to valueValue61.
- Value62 = 62
Retrieves an instance of
Enum2Bytesinitialized to valueValue62.
- Value63 = 63
Retrieves an instance of
Enum2Bytesinitialized to valueValue63.
- Value64 = 64
Retrieves an instance of
Enum2Bytesinitialized to valueValue64.
- Value65 = 65
Retrieves an instance of
Enum2Bytesinitialized to valueValue65.
- Value66 = 66
Retrieves an instance of
Enum2Bytesinitialized to valueValue66.
- Value67 = 67
Retrieves an instance of
Enum2Bytesinitialized to valueValue67.
- Value68 = 68
Retrieves an instance of
Enum2Bytesinitialized to valueValue68.
- Value69 = 69
Retrieves an instance of
Enum2Bytesinitialized to valueValue69.
- Value70 = 70
Retrieves an instance of
Enum2Bytesinitialized to valueValue70.
- Value71 = 71
Retrieves an instance of
Enum2Bytesinitialized to valueValue71.
- Value72 = 72
Retrieves an instance of
Enum2Bytesinitialized to valueValue72.
- Value73 = 73
Retrieves an instance of
Enum2Bytesinitialized to valueValue73.
- Value74 = 74
Retrieves an instance of
Enum2Bytesinitialized to valueValue74.
- Value75 = 75
Retrieves an instance of
Enum2Bytesinitialized to valueValue75.
- Value76 = 76
Retrieves an instance of
Enum2Bytesinitialized to valueValue76.
- Value77 = 77
Retrieves an instance of
Enum2Bytesinitialized to valueValue77.
- Value78 = 78
Retrieves an instance of
Enum2Bytesinitialized to valueValue78.
- Value79 = 79
Retrieves an instance of
Enum2Bytesinitialized to valueValue79.
- Value80 = 80
Retrieves an instance of
Enum2Bytesinitialized to valueValue80.
- Value81 = 81
Retrieves an instance of
Enum2Bytesinitialized to valueValue81.
- Value82 = 82
Retrieves an instance of
Enum2Bytesinitialized to valueValue82.
- Value83 = 83
Retrieves an instance of
Enum2Bytesinitialized to valueValue83.
- Value84 = 84
Retrieves an instance of
Enum2Bytesinitialized to valueValue84.
- Value85 = 85
Retrieves an instance of
Enum2Bytesinitialized to valueValue85.
- Value86 = 86
Retrieves an instance of
Enum2Bytesinitialized to valueValue86.
- Value87 = 87
Retrieves an instance of
Enum2Bytesinitialized to valueValue87.
- Value88 = 88
Retrieves an instance of
Enum2Bytesinitialized to valueValue88.
- Value89 = 89
Retrieves an instance of
Enum2Bytesinitialized to valueValue89.
- Value90 = 90
Retrieves an instance of
Enum2Bytesinitialized to valueValue90.
- Value91 = 91
Retrieves an instance of
Enum2Bytesinitialized to valueValue91.
- Value92 = 92
Retrieves an instance of
Enum2Bytesinitialized to valueValue92.
- Value93 = 93
Retrieves an instance of
Enum2Bytesinitialized to valueValue93.
- Value94 = 94
Retrieves an instance of
Enum2Bytesinitialized to valueValue94.
- Value95 = 95
Retrieves an instance of
Enum2Bytesinitialized to valueValue95.
- Value96 = 96
Retrieves an instance of
Enum2Bytesinitialized to valueValue96.
- Value97 = 97
Retrieves an instance of
Enum2Bytesinitialized to valueValue97.
- Value98 = 98
Retrieves an instance of
Enum2Bytesinitialized to valueValue98.
- Value99 = 99
Retrieves an instance of
Enum2Bytesinitialized to valueValue99.
- Value100 = 100
Retrieves an instance of
Enum2Bytesinitialized to valueValue100.
- Value101 = 101
Retrieves an instance of
Enum2Bytesinitialized to valueValue101.
- Value102 = 102
Retrieves an instance of
Enum2Bytesinitialized to valueValue102.
- Value103 = 103
Retrieves an instance of
Enum2Bytesinitialized to valueValue103.
- Value104 = 104
Retrieves an instance of
Enum2Bytesinitialized to valueValue104.
- Value105 = 105
Retrieves an instance of
Enum2Bytesinitialized to valueValue105.
- Value106 = 106
Retrieves an instance of
Enum2Bytesinitialized to valueValue106.
- Value107 = 107
Retrieves an instance of
Enum2Bytesinitialized to valueValue107.
- Value108 = 108
Retrieves an instance of
Enum2Bytesinitialized to valueValue108.
- Value109 = 109
Retrieves an instance of
Enum2Bytesinitialized to valueValue109.
- Value110 = 110
Retrieves an instance of
Enum2Bytesinitialized to valueValue110.
- Value111 = 111
Retrieves an instance of
Enum2Bytesinitialized to valueValue111.
- Value112 = 112
Retrieves an instance of
Enum2Bytesinitialized to valueValue112.
- Value113 = 113
Retrieves an instance of
Enum2Bytesinitialized to valueValue113.
- Value114 = 114
Retrieves an instance of
Enum2Bytesinitialized to valueValue114.
- Value115 = 115
Retrieves an instance of
Enum2Bytesinitialized to valueValue115.
- Value116 = 116
Retrieves an instance of
Enum2Bytesinitialized to valueValue116.
- Value117 = 117
Retrieves an instance of
Enum2Bytesinitialized to valueValue117.
- Value118 = 118
Retrieves an instance of
Enum2Bytesinitialized to valueValue118.
- Value119 = 119
Retrieves an instance of
Enum2Bytesinitialized to valueValue119.
- Value120 = 120
Retrieves an instance of
Enum2Bytesinitialized to valueValue120.
- Value121 = 121
Retrieves an instance of
Enum2Bytesinitialized to valueValue121.
- Value122 = 122
Retrieves an instance of
Enum2Bytesinitialized to valueValue122.
- Value123 = 123
Retrieves an instance of
Enum2Bytesinitialized to valueValue123.
- Value124 = 124
Retrieves an instance of
Enum2Bytesinitialized to valueValue124.
- Value125 = 125
Retrieves an instance of
Enum2Bytesinitialized to valueValue125.
- Value126 = 126
Retrieves an instance of
Enum2Bytesinitialized to valueValue126.
- Value127 = 127
Retrieves an instance of
Enum2Bytesinitialized to valueValue127.
Instance Attributes:
Instance Methods:
Bitfields
Bitfield2Bytes
- class Bitfield2Bytes
Bases:
ctypes.StructureFields:
Bitfield4Bytes
- class Bitfield4Bytes
Bases:
ctypes.StructureThis 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.StructureMessage header.
Fields:
- uid: ctypes.c_uint32
Message unique id.
- len: ctypes.c_uint16
Message length.
ArrayElem
- class ArrayElem
Bases:
ctypes.StructureThis 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.StructureFields:
- 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_sizeto 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.StructureFields:
- 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_sizeto 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.StructureFields:
- 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_sizeto 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.StructureFields:
- 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_sizeto 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.StructureFields:
- 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_sizeto 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.StructureThis 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_sizeto 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: