Function off_highway_can::calculateCRC
Defined in File crc.hpp
Function Documentation
-
uint8_t off_highway_can::calculateCRC(const uint8_t *data, uint8_t pos_crc, uint8_t data_length)
Compute J1850 standard 8-bit cyclic-redundancy checksum for given frame.
- Parameters:
data – Frame data payload
pos_crc – Byte position / offset of crc byte
data_length – Frame data length
- Returns:
J1850 standard 8-bit CRC (initial value 0xFF)