| 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
BSP ANT Button Module
This information applies to the following SoftDevices: S212, S332

The ANT Button Module provides a button configuration for putting the board into sleep mode and for waking it up. It is used in the ANT+ examples in the SDK.

The application must propagate ANT events to the ANT Button Module. Based on these events, the Board Support Package is reconfigured to generate certain BSP events. These BSP events should then be handled by the application's BSP event handler.

The ANT Button Module configures the following button actions for the Board Support Package:

- When the device is in search mode, pressing BSP_BUTTON_3 puts the device into sleep mode. This generates a BSP_EVENT_SLEEP event.
- After establishing a connection, BSP_BUTTON_3 is disabled.
- When the device is in sleep mode, pressing BSP_BUTTON_3 wakes it up.