ANT HRM simulator module.
More...
ANT HRM simulator module.
This module simulates a pulse for the ANT HRM profile. The module calculates abstract values, which are handled by the HRM pages data model to ensure that they are compatible. It provides a handler for changing the heart rate value manually and functionality to change the heart rate value automatically.
#define DEFAULT_ANT_HRM_SIMULATOR_CFG |
( |
|
P_PROFILE, |
|
|
|
MIN_HEART_RATE, |
|
|
|
MAX_HEART_RATE, |
|
|
|
INCREMENT |
|
) |
| |
Value:{ \
.p_profile = (P_PROFILE), \
.sensorsim_cfg.min = (MIN_HEART_RATE), \
.sensorsim_cfg.max = (MAX_HEART_RATE), \
.sensorsim_cfg.incr = (INCREMENT), \
.sensorsim_cfg.start_at_max = false, \
}
Initialize ant_hrm_simulator_cfg_t.
Function for decrementing the cadence value.
- Parameters
-
[in] | p_simulator | Pointer to the simulator instance. |
Function for incrementing the cadence value.
- Parameters
-
[in] | p_simulator | Pointer to the simulator instance. |
Function for initializing the ANT HRM simulator instance.
- Parameters
-
[in] | p_simulator | Pointer to the simulator instance. |
[in] | p_config | Pointer to the simulator configuration structure. |
[in] | auto_change | Enable or disable automatic changes of the cadence. |
Function for simulating a device event.
Based on this event, the transmitter data is simulated.
This function should be called in the HRM TX event handler.