Stride Based Speed and Distance Monitor profile common data

nRF5 SDK v13.0.0

Data Structures

struct ant_sdm_common_data_t
Data structure for SDM common data. More...

Macros

#define DEFAULT_ANT_SDM_COMMON_DATA ()
Initialize common data. More...

Functions

void ant_sdm_speed_encode (uint8_t *p_page_buffer, ant_sdm_common_data_t const *p_common_data)
Function for encoding speed. More...
void ant_sdm_speed_decode (uint8_t const *p_page_buffer, ant_sdm_common_data_t *p_common_data)
Function for decoding speed. More...

Detailed Description

Macro Definition Documentation

#define DEFAULT_ANT_SDM_COMMON_DATA ( )
Value:
{ \
.speed = 0, \
.distance = 0, \
.strides = 0, \
}

Initialize common data.

Function Documentation

void ant_sdm_speed_decode ( uint8_t const * p_page_buffer ,
ant_sdm_common_data_t * p_common_data
)

Function for decoding speed.

This function can be used for pages 2 and 3.

Parameters
[in] p_page_buffer Pointer to the data buffer.
[out] p_common_data Pointer to the common data.
void ant_sdm_speed_encode ( uint8_t * p_page_buffer ,
ant_sdm_common_data_t const * p_common_data
)

Function for encoding speed.

This function can be used for pages 2 and 3.

Parameters
[in] p_common_data Pointer to the common data.
[out] p_page_buffer Pointer to the data buffer.