Apollo中byte.cc解析
发布时间
阅读量:
阅读量
Apollo中byte.cc功能解析
CAN总线的底层实现涉及对CAN报文的读取与写入操作,其中需要对报文中各个字节进行位级处理。为了解决这一问题,Apollo系统设计并封装了Byte类,其主要功能是实现对字节数据的处理与操作。
成员函数列表
/** * @brief Transform an integer with the size of one byte to its hexadecimal
* represented by a string.
* @param value The target integer to transform.
* @return Hexadecimal representing the target integer.
*/
static std::string byte_to_hex(const uint8_t value);
/** * @brief Transform an integer with the size of 4 bytes to its hexadecimal
* represented by a string.
* @param valu
全部评论 (0)
还没有任何评论哟~
