CRC-8 checksum algorithms.
More...
CRC-8 checksum algorithms.
|
file | crc8.h |
| CRC-8 definitions.
|
|
|
uint8_t | crc8 (const uint8_t *data, size_t len, uint8_t poly, uint8_t seed) |
| Calculate CRC-8.
|
|
◆ crc8()
uint8_t crc8 |
( |
const uint8_t * |
data, |
|
|
size_t |
len, |
|
|
uint8_t |
poly, |
|
|
uint8_t |
seed |
|
) |
| |
Calculate CRC-8.
- Parameters
-
[in] | data | Start of memory area to checksum |
[in] | len | Number of bytes in buf to calculate checksum for |
[in] | poly | The generator polynomial for the checksum |
[in] | seed | The seed (starting value) for the checksum |
- Note
- Reflected inputs or outputs and final XOR must be realized by the caller if needed.
- Returns
- Checksum of the specified memory area.