| 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
Stride Based Speed and Distance Monitor profile common data
Stride Based Speed and Distance Monitor profile pages

## 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:
(ant_sdm_common_data_t) \
{ \
.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.