| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
ANT search configuration
This information applies to the following SoftDevices: S212, S332

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)
{
sd_softdevice_enable(); // The SoftDevice must be enabled before configuring the stack.
ant_stack_static_config(); // 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.
}