ANT search configuration

nRF5 SDK v17.1.0

This information applies to the following SoftDevice: S212

This module provides functions to configure the ANT channel search. You must configure the search before opening an ANT channel on a slave device to control how the device searches for a master channel.

The following search parameters are available:

  • Low priority search time-out
  • High priority search time-out
  • Search sharing cycles
  • Search priority
  • Search waveform type

The API for this module is available here: ANT search configuration

The following code example shows how to use the module:

void user_ant_search_initialization( void )
{
nrf_sdh_enable_request (); // The SoftDevice must be enabled before configuring the stack.
nrf_sdh_ant_enable (); // Configure and enable the ANT stack.
ant_channel_init (&channel_config); // Configure ANT channel.
ant_search_init (&search_config); // Configure ANT search.
sd_ant_channel_open (CHANNEL_NUMBER); // Open ANT channel.
}