This file contains the declarations of types and functions required for ANT stack support.
More...
This file contains the declarations of types and functions required for ANT stack support.
#define NRF_SDH_ANT_EVT_BUF_SIZE |
Value:
sizeof(uint32_t))) * sizeof(uint32_t))
Size of the buffer provided to the Events Scheduler to hold ANT events.
#define NRF_SDH_ANT_OBSERVER |
( |
|
_name, |
|
|
|
_prio, |
|
|
|
_handler, |
|
|
|
_context |
|
) |
| |
Macro for registering an ANT observer. Modules that want to be notified about ANT events must register the handler using this macro.
This macro places the observer in a section named "sdh_ant_observers".
- Parameters
-
[in] | _name | Observer name. |
[in] | _prio | Priority of the observer event handler. The smaller the number, the higher the priority. |
[in] | _handler | ANT event handler. |
[in] | _context | Parameter to the event handler. |
#define NRF_SDH_ANT_OBSERVERS |
( |
|
_name, |
|
|
|
_prio, |
|
|
|
_handler, |
|
|
|
_context, |
|
|
|
_cnt |
|
) |
| |
Macro for registering an array of nrf_sdh_ant_evt_observer_t. Modules that want to be notified about ANT events must register the handler using this macro.
Each observer's handler will be dispatched an event with its relative context from _context
. This macro places the observer in a section named "sdh_ant_observers".
- Parameters
-
[in] | _name | Observer name. |
[in] | _prio | Priority of the observer event handler. The smaller the number, the higher the priority. |
[in] | _handler | ANT event handler. |
[in] | _context | An array of parameters to the event handler. |
[in] | _cnt | Number of observers to register. |
Function for configuring and enabling the ANT stack.
The function sets the channel configuration for the stack using the parameters provided in the sdk_config
file. It also assigns a correspondingly large buffer as a static resource.