Function tap::algorithms::calculateCRC8
Defined in File crc.cpp
Function Documentation
-
uint8_t tap::algorithms::calculateCRC8(const uint8_t *message, uint32_t messageLength, uint8_t initCRC8)
Fast crc8 calculation using a lookup table. The crc looks at messageLength bytes in the message to calculate the crc.
- Parameters:
message – [in] the message to be used for calculation.
messageLength – [in] the number of bytes to look at when calculating the crc.
initCRC8 – [in] normally leave as CRC8_INIT.
- Returns:
the calculated crc.