mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 23:23:34 +08:00
Added CRC initializing constructor
This commit is contained in:
@@ -24,6 +24,12 @@ public:
|
||||
: value_(0x0000)
|
||||
{ }
|
||||
|
||||
Crc16(const uint8_t* bytes, int len)
|
||||
: value_(0x0000)
|
||||
{
|
||||
add(bytes, len);
|
||||
}
|
||||
|
||||
uint16_t add(uint8_t byte);
|
||||
uint16_t add(const uint8_t* bytes, int len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user