| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Macros | Functions
ANT-FS client device simulator
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_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.