ANT-FS client device simulator

nRF5 SDK v15.2.0

The ANT-FS client device simulator. More...

Data Structures

union ushort_union_t
uint16_t type presentation as an union. More...
union ulong_union_t
uint32_t type presentation as an union. More...

Macros

#define MAX_ULONG 0xFFFFFFFFu

Functions

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...

Detailed Description

The ANT-FS client device simulator.

Macro Definition Documentation

#define MAX_ULONG   0xFFFFFFFFu

The Max value for the type.

Function Documentation

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.