ANT pulse simulator

nRF5 SDK v9.0.0

nRF51 SDK v9.0.0
This information applies to the following SoftDevices: S210, S310

This module simulates heart rate values for the Heart Rate Moniter Transmitter example. The API for this module is available here: ANT pulse simulator

The module uses the Sensor Data Simulator to simulate automatic changes of heart rate values. In addition, the module uses the Board Support Package (BSP) to indicate states using the board's LEDs.

Initialization

Use the following command to initialize the module:

puls_simulate_init ( &m_ant_hrm, HEART_BEAT_PER_MINUTE, false );

If you want to be able to change the heart rate manually, add the following statement:

Including the module in an application

Periodically call the pulse simulator in the application to prepare data for each TX event occurrence. The following code example shows how to do this:

void ant_evt_dispatch( ant_evt_t * p_ant_evt)
{
/*
Other calls.
*/
if (p_ant_evt-> event == EVENT_TX )
{
}
}

Please send us your feedback about the documentation! For technical questions, visit the Nordic Developer Zone .