ANT+ Heart Rate Monitor Profile
Functions
-
int ant_hrm_disp_init(ant_hrm_profile_t *p_profile, ant_channel_config_t const *p_channel_config, ant_hrm_evt_handler_t evt_handler)
Function for initializing the ANT HRM Display profile instance.
- Parameters
p_profile – [in] Pointer to the profile instance.
p_channel_config – [in] Pointer to the ANT channel configuration structure.
evt_handler – [in] Event handler to be called for handling events in the HRM profile.
- Return values
0 – If initialization was successful. Otherwise, an error code is returned.
-
int ant_hrm_sens_init(ant_hrm_profile_t *p_profile, ant_channel_config_t const *p_channel_config, ant_hrm_sens_config_t const *p_sens_config)
Function for initializing the ANT HRM Sensor profile instance.
- Parameters
p_profile – [in] Pointer to the profile instance.
p_channel_config – [in] Pointer to the ANT channel configuration structure.
p_sens_config – [in] Pointer to the HRM sensor configuration structure.
- Return values
0 – If initialization was successful. Otherwise, an error code is returned.
-
int ant_hrm_disp_open(ant_hrm_profile_t *p_profile)
Function for opening the profile instance channel for ANT HRM Display.
Before calling this function, pages should be configured.
- Parameters
p_profile – [in] Pointer to the profile instance.
- Return values
0 – If the channel was successfully opened. Otherwise, an error code is returned.
-
int ant_hrm_sens_open(ant_hrm_profile_t *p_profile)
Function for opening the profile instance channel for ANT HRM Sensor.
Before calling this function, pages should be configured.
- Parameters
p_profile – [in] Pointer to the profile instance.
- Return values
0 – If the channel was successfully opened. Otherwise, an error code is returned.
-
void ant_hrm_sens_evt_handler(ant_evt_t *p_ant_evt, void *p_context)
Function for handling the sensor ANT events.
This function handles all events from the ANT stack that are of interest to the Heart Rate Monitor Sensor profile.
- Parameters
p_ant_evt – [in] Event received from the ANT stack.
p_context – [in] Pointer to the profile instance.
-
void ant_hrm_disp_evt_handler(ant_evt_t *p_ant_evt, void *p_context)
Function for handling the display ANT events.
This function handles all events from the ANT stack that are of interest to the Heart Rate Monitor Display profile.
- Parameters
p_ant_evt – [in] Event received from the ANT stack.
p_context – [in] Pointer to the profile instance.