The ANT-FS client device simulator.
More...
|
uint16_t | crc_crc16_update (uint16_t current_crc, const volatile void *p_data, uint32_t size) |
| Function for calculating CRC-16 in blocks. More...
|
|
The ANT-FS client device simulator.
#define MAX_ULONG 0xFFFFFFFFu |
The Max value for the type.
uint16_t crc_crc16_update |
( |
uint16_t |
current_crc, |
|
|
const volatile void * |
p_data, |
|
|
uint32_t |
size |
|
) |
| |
Function for calculating CRC-16 in blocks.
Feed each consecutive data block into this function, along with the current value of current_crc as returned by the previous call of this function. The first call of this function should pass the initial value (usually 0) of the crc in current_crc.
- Parameters
-
[in] | current_crc | The current calculated CRC-16 value. |
[in] | p_data | The input data block for computation. |
[in] | size | The size of the input data block in bytes. |
- Returns
- The updated CRC-16 value, based on the input supplied.