Stride Based Speed and Distance Monitor profile common data

nRF5 SDK v15.3.0

Data Structures

struct ant_bpwr_common_data_t
Data structure for BPWR common data. More...

Macros

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

Functions

void ant_bpwr_cadence_encode (uint8_t *p_page_buffer, ant_bpwr_common_data_t const *p_common_data)
Function for encoding speed. More...
void ant_bpwr_cadence_decode (uint8_t const *p_page_buffer, ant_bpwr_common_data_t *p_common_data)
Function for decoding speed. More...

Detailed Description

Macro Definition Documentation

#define DEFAULT_ANT_BPWR_COMMON_DATA ( )
Value:
{ \
.instantaneous_cadence = 0, \
}

Initialize common data.

Function Documentation

void ant_bpwr_cadence_decode ( uint8_t const * p_page_buffer ,
ant_bpwr_common_data_t * p_common_data
)

Function for decoding speed.

This function can be used for pages 16, 17, and 18.

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

Function for encoding speed.

This function can be used for pages 16, 17, and 18.

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