one of the protocol data of lincoln vehicle
More...
#include <version_7f.h>
|
virtual void | Parse (const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis_detail) const |
|
int32_t | module_name (const std::uint8_t *bytes, int32_t length) const |
| get module name based on byte array. More...
|
|
int32_t | major_version (const std::uint8_t *bytes, int32_t length) const |
| get major version based on byte array. More...
|
|
int32_t | minor_version (const std::uint8_t *bytes, int32_t length) const |
| get minor version based on byte array. More...
|
|
int32_t | build_number (const std::uint8_t *bytes, int32_t length) const |
| get build number based on byte array. More...
|
|
| ProtocolData ()=default |
| construct protocol data. More...
|
|
virtual | ~ProtocolData ()=default |
| destruct protocol data. More...
|
|
virtual uint32_t | GetPeriod () const |
|
virtual int32_t | GetLength () const |
|
virtual void | Parse (const uint8_t *bytes, int32_t length, ::apollo::canbus::ChassisDetail *sensor_data) const |
|
virtual void | UpdateData (uint8_t *data) |
|
virtual void | Reset () |
|
|
static std::uint8_t | CalculateCheckSum (const uint8_t *input, const uint32_t length) |
| static function, used to calculate the checksum of input array. More...
|
|
static T | BoundedValue (T lower, T upper, T val) |
|
one of the protocol data of lincoln vehicle
◆ build_number()
int32_t apollo::canbus::lincoln::Version7f::build_number |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length |
|
) |
| const |
get build number based on byte array.
- Parameters
-
bytes | a pointer to the byte array |
length | the length of the byte array |
- Returns
- the value of build number
◆ major_version()
int32_t apollo::canbus::lincoln::Version7f::major_version |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length |
|
) |
| const |
get major version based on byte array.
- Parameters
-
bytes | a pointer to the byte array |
length | the length of the byte array |
- Returns
- the value of major version
◆ minor_version()
int32_t apollo::canbus::lincoln::Version7f::minor_version |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length |
|
) |
| const |
get minor version based on byte array.
- Parameters
-
bytes | a pointer to the byte array |
length | the length of the byte array |
- Returns
- the value of minor version
◆ module_name()
int32_t apollo::canbus::lincoln::Version7f::module_name |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length |
|
) |
| const |
get module name based on byte array.
- Parameters
-
bytes | a pointer to the byte array |
length | the length of the byte array |
- Returns
- the value of byte input
◆ Parse()
virtual void apollo::canbus::lincoln::Version7f::Parse |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length, |
|
|
ChassisDetail * |
chassis_detail |
|
) |
| const |
|
virtual |
◆ ID
const int32_t apollo::canbus::lincoln::Version7f::ID |
|
static |
The documentation for this class was generated from the following file: