|
virtual void | Parse (const std::uint8_t *bytes, int32_t length, Lincoln *chassis_detail) const |
|
int32_t | gear_state (const std::uint8_t *bytes, int32_t length) const |
| get the gear state from byte array config detail: {'name': 'state', 'offset': 0.0, 'precision': 1.0, 'len': 3, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 0, 'type': 'int', 'order': 'intel', 'physical_unit': '""'}
|
|
bool | is_canbus_fault (const std::uint8_t *bytes, int32_t length) const |
| check canbus fault from byte array config detail: {'name': 'fltbus', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 7, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
|
|
bool | is_driver_override (const std::uint8_t *bytes, int32_t length) const |
| check driver override from byte array config detail: {'name': 'driver', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 3, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
|
|
int32_t | reported_gear_cmd (const std::uint8_t *bytes, int32_t length) const |
| get reported gear command from byte array config detail: {'name': 'cmd', 'offset': 0.0, 'precision': 1.0, 'len': 3, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 4, 'type': 'int', 'order': 'intel', 'physical_unit': '""'}
|
|
| ProtocolData ()=default |
| construct protocol data.
|
|
virtual | ~ProtocolData ()=default |
| destruct protocol data.
|
|
virtual uint32_t | GetPeriod () const |
|
virtual int32_t | GetLength () const |
|
virtual void | Parse (const uint8_t *bytes, int32_t length, ::apollo::canbus::Lincoln *sensor_data) const |
|
virtual void | UpdateData (uint8_t *data) |
|
virtual void | UpdateData_Heartbeat (uint8_t *data) |
|
virtual void | Reset () |
|
one of the protocol data of lincoln vehicle
在文件 gear_67.h 第 40 行定义.
int32_t apollo::canbus::lincoln::Gear67::gear_state |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length |
|
) |
| const |
get the gear state from byte array config detail: {'name': 'state', 'offset': 0.0, 'precision': 1.0, 'len': 3, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 0, 'type': 'int', 'order': 'intel', 'physical_unit': '""'}
- 参数
-
bytes | a pointer to the byte array |
length | the length of the byte array |
- 返回
- the value of the gear state
在文件 gear_67.cc 第 95 行定义.
95 {
96 Byte frame(bytes + 0);
97 int32_t x = frame.get_byte(0, 3);
98 return x;
99}
bool apollo::canbus::lincoln::Gear67::is_canbus_fault |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length |
|
) |
| const |
check canbus fault from byte array config detail: {'name': 'fltbus', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 7, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
- 参数
-
bytes | a pointer to the byte array |
length | the length of the byte array |
- 返回
- the boolean value of canbus fault
在文件 gear_67.cc 第 114 行定义.
114 {
115 Byte frame(bytes + 0);
116 return frame.is_bit_1(7);
117}
bool apollo::canbus::lincoln::Gear67::is_driver_override |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length |
|
) |
| const |
check driver override from byte array config detail: {'name': 'driver', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 3, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
- 参数
-
bytes | a pointer to the byte array |
length | the length of the byte array |
- 返回
- the boolean value of driver override
在文件 gear_67.cc 第 101 行定义.
102 {
103 Byte frame(bytes + 0);
104 return frame.is_bit_1(3);
105}
int32_t apollo::canbus::lincoln::Gear67::reported_gear_cmd |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length |
|
) |
| const |
get reported gear command from byte array config detail: {'name': 'cmd', 'offset': 0.0, 'precision': 1.0, 'len': 3, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 4, 'type': 'int', 'order': 'intel', 'physical_unit': '""'}
- 参数
-
bytes | a pointer to the byte array |
length | the length of the byte array |
- 返回
- the value of reported gear command
在文件 gear_67.cc 第 107 行定义.
108 {
109 Byte frame(bytes + 0);
110 int32_t x = frame.get_byte(4, 3);
111 return x;
112}