DUNE: Uniform Navigational Environment
2016.05.0
|
CRC-16-IBM Algorithm.
The polynomial used is x^16 + x^15 + x^2 + 1 (0x8005)
Static Public Member Functions | |
static uint16_t | compute (const uint8_t *buffer, uint16_t len, uint16_t crc=0) |
static uint16_t | compute (uint8_t byte, uint16_t crc=0) |
|
inlinestatic |
Compute the CRC-16-IBM of a given data buffer.
buffer | data buffer. |
len | data buffer length. |
crc | CRC-16-IBM value to update. |
References DUNE::Algorithms::c_crc16_ibm_table.
Referenced by DUNE::IMC::Packet::deserializePayload(), and DUNE::IMC::Packet::serialize().
|
inlinestatic |
Compute the CRC-16-IBM of a given byte.
byte | byte. |
crc | CRC-16-IBM value to update. |
References DUNE::Algorithms::c_crc16_ibm_table.