ANT SDM simulator module.
More...
ANT SDM simulator module.
This module simulates strides for the ANT SDM profile. The module calculates abstract values, which are handled by the SDM pages data model to ensure that they are compatible. It provides a handler for changing the cadence value manually and functionality for changing the cadence automatically.
#define DEFAULT_ANT_SDM_SIMULATOR_CFG |
( |
|
P_PROFILE, |
|
|
|
STRIDE_LEN, |
|
|
|
BURN_RATE, |
|
|
|
MIN_CADENCE, |
|
|
|
MAX_CADENCE, |
|
|
|
INCREMENT |
|
) |
| |
Value:{ \
.p_profile = (P_PROFILE), \
.stride_length = (STRIDE_LEN), \
.burn_rate = (BURN_RATE), \
.sensorsim_cfg.min = (MIN_CADENCE) *(ANT_SDM_CADENCE_UNIT_REVERSAL), \
.sensorsim_cfg.max = (MAX_CADENCE) *(ANT_SDM_CADENCE_UNIT_REVERSAL), \
.sensorsim_cfg.incr = (INCREMENT) *(ANT_SDM_CADENCE_UNIT_REVERSAL), \
.sensorsim_cfg.start_at_max = false, \
}
Initialize ant_sdm_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 SDM 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 SDM TX event handler.