nRF5 SDK v12.1.0
Data Structures | Macros | Functions
ANT-FS client device simulator

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
 
#define APP_TIMER_PRESCALER   0
 

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 APP_TIMER_PRESCALER   0

Value of the RTC1 PRESCALER register.

#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_crcThe current calculated CRC-16 value.
[in]p_dataThe input data block for computation.
[in]sizeThe size of the input data block in bytes.
Returns
The updated CRC-16 value, based on the input supplied.

Documentation feedback | Developer Zone | Subscribe | Updated