46#include "px_crc8_cfg.h"
49#if ( !defined(PX_CRC8_RAM_TABLE) \
50 || !defined(PX_CRC8_ROM_TABLE) )
52#error
"One or more options not defined in 'px_crc8_cfg.h'"
56#error "Use either RAM or ROM table option, not both"
65#define PX_CRC8_POLYNOMIAL 0x07
67#define PX_CRC8_INIT_VAL 0x00
#define PX_CRC8_ROM_TABLE
Use table in ROM to speed up CRC calculation.
uint8_t px_crc8_update_u8(uint8_t crc, uint8_t data)
Calculate the 8-bit CRC over one byte.
void px_crc8_init(void)
Initialise 8-bit CRC calculator.
uint8_t px_crc8_update_data(uint8_t crc, const void *data, size_t nr_of_bytes)
Calculate the 8-bit CRC over a number of bytes.
#define PX_CRC8_RAM_TABLE
Generate table in RAM to speed up CRC calculation.