ANT Initialization: Multicore Host (cpuapp)

Defines

NRF_ANT_EVT_CHANNEL_FIELD_SIZE 1

Size of the channel field in ANT stack event.

NRF_ANT_EVT_EVENT_FIELD_SIZE 1

Size of the event field in ANT stack event.

NRF_ANT_MESSAGE_SIZE ((CEIL_DIV(MESG_BUFFER_SIZE, sizeof(uint32_t))) * sizeof(uint32_t))

Size of the buffer provided to the ANT stack to receive ANT events.

NRF_ANT_EVT_BUF_SIZE   ((CEIL_DIV(NRF_ANT_MESSAGE_SIZE + NRF_ANT_EVT_CHANNEL_FIELD_SIZE + NRF_ANT_EVT_EVENT_FIELD_SIZE

, \

sizeof(uint32_t))) *                                                                  \

sizeof(uint32_t))


Size of the buffer provided to the Events Scheduler to hold ANT events.

Typedefs

typedef void (*ant_evt_callback_t)(ant_evt_t *p_ant_evt)

Functions

ant_err_t ant_init(void)
ant_err_t ant_cb_register(ant_evt_callback_t evt_handler)
ant_err_t ant_cmd_passthrough(ANT_MESSAGE *cmd, ANT_MESSAGE *rsp)

Function for passing in ANT_MESSAGE cmds from host to remote. Provided rsp input populated with ANT_MESSAGE response to cmd. Intended for apps dealing with raw cmds/rsps in ANT_MESSAGE format and forgoes usage of issuance of ANT cmd via apis in ant_interface.h.

struct ant_evt_t
#include <>

ANT Stack Event.

Public Members

ANT_MESSAGE message

ANT Message

uint8_t channel

Channel number (including RX burst transfer sequencing if applicable, see “RX Burst Message Sequencing Defines” in ant_parameters.h)

uint8_t event

Event code