nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
ANT Stack Parameters

Macros

#define ANT_CLOCK_FREQUENCY   ((uint32_t)32768)
 ANT Clock Definition. More...
 
#define ANT_STANDARD_DATA_PAYLOAD_SIZE   ((uint8_t)8)
 ANT Message Payload Size. More...
 
#define ANTMESSAGE_H
 
#define MESG_TX_SYNC   ((uint8_t)0xA4)
 
#define MESG_RX_SYNC   ((uint8_t)0xA5)
 
#define MESG_SYNC_SIZE   ((uint8_t)1)
 
#define MESG_SIZE_SIZE   ((uint8_t)1)
 
#define MESG_ID_SIZE   ((uint8_t)1)
 
#define MESG_CHANNEL_NUM_SIZE   ((uint8_t)1)
 
#define MESG_EXT_MESG_BF_SIZE   ((uint8_t)1)
 
#define MESG_CHECKSUM_SIZE   ((uint8_t)1)
 
#define MESG_DATA_SIZE   ((uint8_t)9)
 
#define ANT_EXT_MESG_DEVICE_ID_FIELD_SIZE   ((uint8_t)4)
 
#define ANT_EXT_MESG_RSSI_FIELD_SIZE   ((uint8_t)4)
 
#define ANT_EXT_MESG_TIME_STAMP_FIELD_SIZE   ((uint8_t)2)
 
#define ANT_EXT_STRING_SIZE   ((uint8_t)16)
 
#define MESG_ANT_MAX_PAYLOAD_SIZE   ANT_STANDARD_DATA_PAYLOAD_SIZE
 
#define MESG_MAX_EXT_DATA_SIZE   (ANT_EXT_MESG_DEVICE_ID_FIELD_SIZE + ANT_EXT_MESG_RSSI_FIELD_SIZE + ANT_EXT_MESG_TIME_STAMP_FIELD_SIZE + ANT_EXT_STRING_SIZE)
 
#define MESG_MAX_DATA_SIZE   (MESG_ANT_MAX_PAYLOAD_SIZE + MESG_EXT_MESG_BF_SIZE + MESG_MAX_EXT_DATA_SIZE)
 
#define MESG_MAX_SIZE_VALUE   (MESG_MAX_DATA_SIZE + MESG_CHANNEL_NUM_SIZE)
 
#define MESG_BUFFER_SIZE   (MESG_SIZE_SIZE + MESG_ID_SIZE + MESG_CHANNEL_NUM_SIZE + MESG_MAX_DATA_SIZE + MESG_CHECKSUM_SIZE)
 
#define MESG_FRAMED_SIZE   (MESG_ID_SIZE + MESG_CHANNEL_NUM_SIZE + MESG_MAX_DATA_SIZE)
 
#define MESG_HEADER_SIZE   (MESG_SYNC_SIZE + MESG_SIZE_SIZE + MESG_ID_SIZE)
 
#define MESG_FRAME_SIZE   (MESG_HEADER_SIZE + MESG_CHECKSUM_SIZE)
 
#define MESG_MAX_SIZE   (MESG_MAX_DATA_SIZE + MESG_FRAME_SIZE)
 
#define MESG_SIZE_OFFSET   (MESG_SYNC_SIZE)
 
#define MESG_ID_OFFSET   (MESG_SYNC_SIZE + MESG_SIZE_SIZE)
 
#define MESG_DATA_OFFSET   (MESG_HEADER_SIZE)
 

Radio TX Power Definitions

#define RADIO_TX_POWER_LVL_MASK   ((uint8_t)0x03)
 Tx power settings mask.
 
#define RADIO_TX_POWER_LVL_0   ((uint8_t)0x00)
 Lowest tx power level setting.
 
#define RADIO_TX_POWER_LVL_1   ((uint8_t)0x01)
 Tx power > Lvl 0.
 
#define RADIO_TX_POWER_LVL_2   ((uint8_t)0x02)
 Tx power > Lvl 1.
 
#define RADIO_TX_POWER_LVL_3   ((uint8_t)0x03)
 Tx power > Lvl 2. Default tx power level.
 

Radio Proximity Search Threshold

#define PROXIMITY_THRESHOLD_OFF   ((uint8_t)0x00)
 Disable proximity search detection. Default to largest search detection radius.
 
#define PROXIMITY_THRESHOLD_1   ((uint8_t)0x01)
 Smallest proximity search detection radius.
 
#define PROXIMITY_THRESHOLD_2   ((uint8_t)0x02)
 Proximity search detection radius > threshold 1.
 
#define PROXIMITY_THRESHOLD_3   ((uint8_t)0x03)
 Proximity search detection radius > threshold 2.
 
#define PROXIMITY_THRESHOLD_4   ((uint8_t)0x04)
 Proximity search detection radius > threshold 3.
 
#define PROXIMITY_THRESHOLD_5   ((uint8_t)0x05)
 Proximity search detection radius > threshold 4.
 
#define PROXIMITY_THRESHOLD_6   ((uint8_t)0x06)
 Proximity search detection radius > threshold 5.
 
#define PROXIMITY_THRESHOLD_7   ((uint8_t)0x07)
 Proximity search detection radius > threshold 6.
 
#define PROXIMITY_THRESHOLD_8   ((uint8_t)0x08)
 Proximity search detection radius > threshold 7.
 
#define PROXIMITY_THRESHOLD_9   ((uint8_t)0x09)
 Proximity search detection radius > threshold 8.
 
#define PROXIMITY_THRESHOLD_10   ((uint8_t)0x0A)
 Proximity search detection radius > threshold 9.
 

Assign Channel Parameters

#define PARAMETER_RX_NOT_TX   ((uint8_t)0x00)
 Bitfield for slave channel.
 
#define PARAMETER_TX_NOT_RX   ((uint8_t)0x10)
 Bitfield for master channel.
 
#define PARAMETER_SHARED_CHANNEL   ((uint8_t)0x20)
 Bitfield for enabling shared channel mode for master or slave channel.
 
#define PARAMETER_NO_TX_GUARD_BAND   ((uint8_t)0x40)
 Bitfield for enabling tx only mode for master channel.
 
#define PARAMETER_RX_ONLY   ((uint8_t)0x40)
 Bitfield for enabling rx only mode for slave channel.
 

Extended Assign Channel Parameters

#define EXT_PARAM_ALWAYS_SEARCH   ((uint8_t)0x01)
 Bitfield for enabling background searching behaviour.
 
#define EXT_PARAM_IGNORE_TRANSMISSION_TYPE   ((uint8_t)0x02)
 Bitfield for enabling ignore transmission type behaviour.
 
#define EXT_PARAM_FREQUENCY_AGILITY   ((uint8_t)0x04)
 Bitfield for enabling frequency agility behaviour.
 
#define EXT_PARAM_AUTO_SHARED_SLAVE   ((uint8_t)0x08)
 Auto shared channel.
 
#define EXT_PARAM_FAST_START_MODE   ((uint8_t)0x10)
 Channel fast startup mode.
 
#define EXT_PARAM_ASYNC_TX_MODE   ((uint8_t)0x20)
 Async transmit channel.
 

Assign Channel Types

#define CHANNEL_TYPE_SLAVE   ((uint8_t) 0x00)
 Slave channel (PARAMETER_RX_NOT_TX).
 
#define CHANNEL_TYPE_MASTER   ((uint8_t) 0x10)
 Master channel (PARAMETER_TX_NOT_RX).
 
#define CHANNEL_TYPE_SLAVE_RX_ONLY   ((uint8_t) 0x40)
 Slave rx only channel (PARAMETER_RX_NOT_TX | PARAMETER_RX_ONLY).
 
#define CHANNEL_TYPE_MASTER_TX_ONLY   ((uint8_t) 0x50)
 Master tx only channel (PARAMETER_TX_NOT_RX | PARAMETER_NO_TX_GUARD_BAND).
 
#define CHANNEL_TYPE_SHARED_SLAVE   ((uint8_t) 0x20)
 Shared slave channel (PARAMETER_RX_NOT_TX | PARAMETER_SHARED_CHANNEL).
 
#define CHANNEL_TYPE_SHARED_MASTER   ((uint8_t) 0x30)
 Shared master channel (PARAMETER_TX_NOT_RX | PARAMETER_SHARED_CHANNEL).
 

Channel ID Definitions

#define ANT_ID_SIZE   ((uint8_t)4)
 4 octet channel ID
 
#define ANT_ID_TRANS_TYPE_OFFSET   ((uint8_t)3)
 Transmission type offset in channel ID.
 
#define ANT_ID_DEVICE_TYPE_OFFSET   ((uint8_t)2)
 Device type offset in channel ID.
 
#define ANT_ID_DEVICE_NUMBER_HIGH_OFFSET   ((uint8_t)1)
 MSB Device number in channel ID.
 
#define ANT_ID_DEVICE_NUMBER_LOW_OFFSET   ((uint8_t)0)
 LSB Device number in channel ID.
 
#define ANT_ID_DEVICE_TYPE_PAIRING_FLAG   ((uint8_t)0x80)
 Pairing bit in device type field.
 
#define ANT_TRANS_TYPE_SHARED_ADDR_MASK   ((uint8_t)0x03)
 shared address mask in transmission type field
 
#define ANT_TRANS_TYPE_1_BYTE_SHARED_ADDRESS   ((uint8_t)0x02)
 1 byte shared address field
 
#define ANT_TRANS_TYPE_2_BYTE_SHARED_ADDRESS   ((uint8_t)0x03)
 2 byte shared address field
 

Channel Status

#define STATUS_CHANNEL_STATE_MASK   ((uint8_t)0x03)
 Channel state mask.
 
#define STATUS_UNASSIGNED_CHANNEL   ((uint8_t)0x00)
 Indicates channel has not been assigned.
 
#define STATUS_ASSIGNED_CHANNEL   ((uint8_t)0x01)
 Indicates channel has been assigned.
 
#define STATUS_SEARCHING_CHANNEL   ((uint8_t)0x02)
 Indicates channel is active and in searching state.
 
#define STATUS_TRACKING_CHANNEL   ((uint8_t)0x03)
 Indicates channel is active and in tracking state.
 

Standard capabilities defines

#define CAPABILITIES_NO_RX_CHANNELS   ((uint8_t)0x01)
 Bitfield in CAPABILITIES_STANDARD byte indicating no rx channel support.
 
#define CAPABILITIES_NO_TX_CHANNELS   ((uint8_t)0x02)
 Bitfield in CAPABILITIES_STANDARD byte indicating no tx channel support.
 
#define CAPABILITIES_NO_RX_MESSAGES   ((uint8_t)0x04)
 Bitfield in CAPABILITIES_STANDARD byte indicating no rx message support.
 
#define CAPABILITIES_NO_TX_MESSAGES   ((uint8_t)0x08)
 Bitfield in CAPABILITIES_STANDARD byte indicating no tx message support.
 
#define CAPABILITIES_NO_ACKD_MESSAGES   ((uint8_t)0x10)
 Bitfield in CAPABILITIES_STANDARD byte indicating no acknolwedged message support.
 
#define CAPABILITIES_NO_BURST_TRANSFER   ((uint8_t)0x20)
 Bitfield in CAPABILITIES_STANDARD byte indicating no burst transfer support.
 

Advanced capabilities defines

#define CAPABILITIES_NETWORK_ENABLED   ((uint8_t)0x02)
 Bitfield in CAPABILITIES_ADVANCED byte indicating network support.
 
#define CAPABILITIES_SERIAL_NUMBER_ENABLED   ((uint8_t)0x08)
 Bitfield in CAPABILITIES_ADVANCED byte indicating serial number support.
 
#define CAPABILITIES_PER_CHANNEL_TX_POWER_ENABLED   ((uint8_t)0x10)
 Bitfield in CAPABILITIES_ADVANCED byte indicating per channel transmit power support.
 
#define CAPABILITIES_LOW_PRIORITY_SEARCH_ENABLED   ((uint8_t)0x20)
 Bitfield in CAPABILITIES_ADVANCED byte indicating lower priority search support.
 
#define CAPABILITIES_SCRIPT_ENABLED   ((uint8_t)0x40)
 Bitfield in CAPABILITIES_ADVANCED byte indicating scripting support.
 
#define CAPABILITIES_SEARCH_LIST_ENABLED   ((uint8_t)0x80)
 Bitfield in CAPABILITIES_ADVANCED byte indicating include/exclude list support.
 

Advanced capabilities 2 defines

#define CAPABILITIES_LED_ENABLED   ((uint8_t)0x01)
 Bitfield in CAPABILITIES_ADVANCED_2 byte indicating built-in LED support.
 
#define CAPABILITIES_EXT_MESSAGE_ENABLED   ((uint8_t)0x02)
 Bitfield in CAPABILITIES_ADVANCED_2 byte indicating extended messaging support.
 
#define CAPABILITIES_SCAN_MODE_ENABLED   ((uint8_t)0x04)
 Bitfield in CAPABILITIES_ADVANCED_2 byte indicating scanning mode support.
 
#define CAPABILITIES_RESERVED   ((uint8_t)0x08)
 Bitfield in CAPABILITIES_ADVANCED_2 byte currently reserved for future use.
 
#define CAPABILITIES_PROX_SEARCH_ENABLED   ((uint8_t)0x10)
 Bitfield in CAPABILITIES_ADVANCED_2 byte indicating proximity search support.
 
#define CAPABILITIES_EXT_ASSIGN_ENABLED   ((uint8_t)0x20)
 Bitfield in CAPABILITIES_ADVANCED_2 byte indicating extended assign support.
 
#define CAPABILITIES_FS_ANTFS_ENABLED   ((uint8_t)0x40)
 Bitfield in CAPABILITIES_ADVANCED_2 byte indicating built-in FS/ANT-FS support.
 
#define CAPABILITIES_FIT1_ENABLED   ((uint8_t)0x80)
 Bitfield in CAPABILITIES_ADVANCED_2 byte indicating FIT1 module support.
 

Advanced capabilities 3 defines

#define CAPABILITIES_ADVANCED_BURST_ENABLED   ((uint8_t)0x01)
 Bitfield in CAPABILITIES_ADVANCED_3 byte indicating advanced burst support.
 
#define CAPABILITIES_EVENT_BUFFERING_ENABLED   ((uint8_t)0x02)
 Bitfield in CAPABILITIES_ADVANCED_3 byte indicating extended messaging support.
 
#define CAPABILITIES_EVENT_FILTERING_ENABLED   ((uint8_t)0x04)
 Bitfield in CAPABILITIES_ADVANCED_3 byte indicating event filtering support.
 
#define CAPABILITIES_HIGH_DUTY_SEARCH_MODE_ENABLED   ((uint8_t)0x08)
 Bitfield in CAPABILITIES_ADVANCED_3 byte indicating high duty search mode support.
 
#define CAPABILITIES_ACTIVE_SEARCH_SHARING_MODE_ENABLED   ((uint8_t)0x10)
 Bitfield in CAPABILITIES_ADVANCED_3 byte indicating active search sharing mode support.
 
#define CAPABILITIES_RADIO_COEX_CONFIG_ENABLED   ((uint8_t)0x20)
 Bitfield in CAPABILITIES_ADVANCED_3 byte indicating radio coexistence configuration support.
 
#define CAPABILITIES_SELECTIVE_DATA_UPDATE_ENABLED   ((uint8_t)0x40)
 Bitfield in CAPABILITIES_ADVANCED_3 byte indicating selective rx data update support.
 
#define CAPABILITIES_ENCRYPTED_CHANNEL_ENABLED   ((uint8_t)0x80)
 Bitfield in CAPABILITIES_ADVANCED_3 byte indicating encrypted channel support.
 

Advanced capabilities 4 defines

#define CAPABILITIES_RFACTIVE_NOTIFICATION_ENABLED   ((uint8_t)0x01)
 Bitfield in CAPABILITIES_ADVANCED_4 byte indicating rfactive notification support.
 

Burst Handler Request Segment Defines

#define BURST_SEGMENT_CONTINUE   ((uint8_t)0x00)
 Bitfield for indicating continuation of burst data segment (no starting or ending burst packet).
 
#define BURST_SEGMENT_START   ((uint8_t)0x01)
 Bitfield for indicating burst data segment containing starting burst packet.
 
#define BURST_SEGMENT_END   ((uint8_t)0x02)
 Bitfield for indicating burst data segment containing ending burst packet.
 

ANT Library Config

#define ANT_LIB_CONFIG_MASK_ALL   ((uint8_t)0xFF)
 libary configuration mask
 
#define ANT_LIB_CONFIG_RADIO_CONFIG_ALWAYS   ((uint8_t)0x01)
 Bitfield intended for platform specific configuration (unused)
 
#define ANT_LIB_CONFIG_MESG_OUT_INC_TIME_STAMP   ((uint8_t)0x20)
 Bitfield for enabling extended rx messages including ant time stamp field.
 
#define ANT_LIB_CONFIG_MESG_OUT_INC_RSSI   ((uint8_t)0x40)
 Bitfield for enabling extended rx messages including RSSI measurement field.
 
#define ANT_LIB_CONFIG_MESG_OUT_INC_DEVICE_ID   ((uint8_t)0x80)
 Bitfield for enabling extended rx messages including device ID field.
 

Extended Data Message Bitfield Definitions

#define ANT_EXT_MESG_BITFIELD_DEVICE_ID   ((uint8_t)0x80)
 Bitfield for indicating device ID field present in extended data message after the extended message bitfield byte.
 
#define ANT_EXT_MESG_BITFIELD_RSSI   ((uint8_t)0x40)
 Bitfield for indicating RSSI field present in extended data message after device id field (if present)
 
#define ANT_EXT_MESG_BITFIELD_TIME_STAMP   ((uint8_t)0x20)
 Bitfield for indicating timestamp field present in extended data message after rssi/agc field (if present)
 
#define ANT_EXT_MESG_BIFIELD_EXTENSION   ((uint8_t)0x01)
 Bitfield reserved.
 

RSSI Definitions in Extended Data Message

#define RSSI_TYPE_OFFSET   ((uint8_t)0)
 RSSI type offset in RSSI field in extended data message.
 
#define RSSI_AGC_TYPE   ((uint8_t)0x10)
 RSSI type indicating support for AGC measurement.
 
#define RSSI_DBM_TYPE   ((uint8_t)0x20)
 RSSI type indicating support for DBM measurement.
 
#define RSSI_TYPE_AGC_THRESHOLD_OFFSET   ((uint8_t)1)
 Offset of AGC value indicating above or below configured AGC threshold.
 
#define RSSI_TYPE_AGC_REGISTER_LOW   ((uint8_t)2)
 Offset of LSB AGC threshold configuration in RSSI field.
 
#define RSSI_TYPE_AGC_REGISTER_HIGH   ((uint8_t)3)
 Offset of MSB AGC threshold configuration in RSSI field.
 
#define RSSI_TYPE_DBM_VALUE   ((uint8_t)1)
 Offset of DBM value in RSSI field.
 
#define RSSI_TYPE_DBM_SETTING   ((uint8_t)2)
 Offset of DBM threshold configuration in RSSI field.
 
#define RESET_FLAGS_MASK   ((uint8_t)0xE0)
 Message code mask. More...
 
#define RESET_SUSPEND   ((uint8_t)0x80)
 Startup/Reset from suspend mode.
 
#define RESET_SYNC   ((uint8_t)0x40)
 Startup/Reset from synchronous reset.
 
#define RESET_CMD   ((uint8_t)0x20)
 Startup/Reset from ant message reset command.
 
#define RESET_WDT   ((uint8_t)0x02)
 Startup/Reset from watchdog timeout.
 
#define RESET_RST   ((uint8_t)0x01)
 Startup/Reset from HW reset pin.
 
#define RESET_POR   ((uint8_t)0x00)
 Startup/Reset from HW power on reset.
 

Event Filtering

#define FILTER_EVENT_RX_SEARCH_TIMEOUT   ((uint16_t)0x0001)
 Bitfield for filtering EVENT_RX_SEARCH_TIMEOUT.
 
#define FILTER_EVENT_RX_FAIL   ((uint16_t)0x0002)
 Bitfield for filtering EVENT_RX_FAIL.
 
#define FILTER_EVENT_TX   ((uint16_t)0x0004)
 Bitfield for filtering EVENT_TX.
 
#define FILTER_EVENT_TRANSFER_RX_FAILED   ((uint16_t)0x0008)
 Bitfield for filtering EVENT_TRANSFER_RX_FAILED.
 
#define FILTER_EVENT_TRANSFER_TX_COMPLETED   ((uint16_t)0x0010)
 Bitfield for filtering EVENT_TRANSFER_TX_COMPLETED.
 
#define FILTER_EVENT_TRANSFER_TX_FAILED   ((uint16_t)0x0020)
 Bitfield for filtering EVENT_TRANSFER_TX_FAILED.
 
#define FILTER_EVENT_CHANNEL_CLOSED   ((uint16_t)0x0040)
 Bitfield for filtering EVENT_CHANNEL_CLOSED.
 
#define FILTER_EVENT_RX_FAIL_GO_TO_SEARCH   ((uint16_t)0x0080)
 Bitfield for filtering EVENT_RX_FAIL_GO_TO_SEARCH.
 
#define FILTER_EVENT_CHANNEL_COLLISION   ((uint16_t)0x0100)
 Bitfield for filtering EVENT_CHANNEL_COLLISION.
 
#define FILTER_EVENT_TRANSFER_TX_START   ((uint16_t)0x0200)
 Bitfield for filtering EVENT_TRANSFER_TX_START.
 

Selective Data Update Mask Configuration Defines

#define INVALID_SDU_MASK   ((uint8_t)0xFF)
 Selective data update configuration invalid mask. Used to disable SDU for a particular channel.
 
#define SDU_MASK_ACK_CONFIG_BIT   ((uint8_t)0x80)
 Selective data acknowledge config bit. Use to enable SDU for acknowledged data in addition to broadcast data.
 

Advanced Burst Configuration Defines

#define ADV_BURST_MODE_DISABLE   ((uint8_t)0x00)
 Set to disable advanced burst transfers.
 
#define ADV_BURST_MODE_ENABLE   ((uint8_t)0x01)
 Set to enable advanced burst transfers.
 
#define ADV_BURST_MODES_MAX_SIZE   ((uint8_t)0x03)
 Maximum allowable value for advanced burst packets size configuration.
 
#define ADV_BURST_MODES_SIZE_8_BYTES   ((uint8_t)0x01)
 8-bytes packet size for maximum 20kbps advanced burst transfer rate
 
#define ADV_BURST_MODES_SIZE_16_BYTES   ((uint8_t)0x02)
 16-bytes packet size for maximum 40kbps advanced burst transfer rate
 
#define ADV_BURST_MODES_SIZE_24_BYTES   ((uint8_t)0x03)
 24-bytes packet size for maximum 60kbps advanced burst transfer rate
 
#define ADV_BURST_MODES_MASK   ((uint8_t)0x03)
 Bitfield mask for advanced burst modes.
 
#define ADV_BURST_MODES_FREQ_HOP   ((uint8_t)0x01)
 Bitfield for required/optional frequency hopping mode during advanced burst.
 
#define ADV_BURST_MODES_RESERVED0   ((uint8_t)0x02)
 Bitfield reserved.
 

Encrypted Channel Defines

#define ENCRYPTION_DISABLED_MODE   ((uint8_t) 0x00)
 Set encryption mode to disabled.
 
#define ENCRYPTION_BASIC_REQUEST_MODE   ((uint8_t) 0x01)
 Enable encryption mode with basic request (crypto ID exchange)
 
#define ENCRYPTION_USER_DATA_REQUEST_MODE   ((uint8_t) 0x02)
 Enable encryption mode with user data request (crypto ID + custom user data exchange)
 
#define MAX_SUPPORTED_ENCRYPTION_MODE   ENCRYPTION_USER_DATA_REQUEST_MODE
 Maximum supported encryption mode.
 
#define ENCRYPTION_USER_DATA_SIZE   ((uint8_t)19)
 Maximum size of custom user data.
 
#define ENCRYPTION_INFO_SET_CRYPTO_ID   ((uint8_t)0x00)
 Set configured crypto ID to be exchanged during encryption negotiation.
 
#define ENCRYPTION_INFO_SET_CUSTOM_USER_DATA   ((uint8_t)0x01)
 Set configured custom user data to be exchanged during encryption negotation.
 
#define ENCRYPTION_INFO_SET_RNG_SEED   ((uint8_t)0x02)
 Set RNG seed.
 
#define ENCRYPTION_INFO_GET_SUPPORTED_MODE   ((uint8_t)0x00)
 Get supported encrytped mode.
 
#define ENCRYPTION_INFO_GET_CRYPTO_ID   ((uint8_t)0x01)
 Get configured crypto ID to be exchanged during encryption negotiation.
 
#define ENCRYPTION_INFO_GET_CUSTOM_USER_DATA   ((uint8_t)0x02)
 Get configured custom user data to be exchanged during encryption negotiation.
 

RFActive Notification Defines

#define RFACTIVE_NOTIFICATION_DISABLED_MODE   ((uint8_t)0x00)
 Set RF Active notification mode to disabled.
 
#define RFACTIVE_NOTIFICATION_ONE_TIME_MODE   ((uint8_t)0x01)
 Set to generate RF Active notification event for only 1 time.
 
#define RFACTIVE_NOTIFICATION_CONTINUOUS_MODE   ((uint8_t)0x02)
 Set to generate RF Active notification event continuously.
 
#define RFACTIVE_NOTIFICATION_MIN_TIME_THRESHOLD   ((uint16_t)0x00A4)
 Minimum time threshold of 5ms in 32768 time base.
 

Channel Events and Command Response Codes

#define NO_EVENT   ((uint8_t)0x00)
 No Event.
 
#define EVENT_RX_SEARCH_TIMEOUT   ((uint8_t)0x01)
 Event generated when rx searching state for the channel has timed out.
 
#define EVENT_RX_FAIL   ((uint8_t)0x02)
 Event generated when synchronous rx channel has missed receiving an ANT packet.
 
#define EVENT_TX   ((uint8_t)0x03)
 Event generated when synchronous tx channel has occurred.
 
#define EVENT_TRANSFER_RX_FAILED   ((uint8_t)0x04)
 Event generated when the completion of rx transfer has failed.
 
#define EVENT_TRANSFER_TX_COMPLETED   ((uint8_t)0x05)
 Event generated when the completion of tx transfer has succeeded.
 
#define EVENT_TRANSFER_TX_FAILED   ((uint8_t)0x06)
 Event generated when the completion of tx transfer has failed.
 
#define EVENT_CHANNEL_CLOSED   ((uint8_t)0x07)
 Event generated when channel has closed.
 
#define EVENT_RX_FAIL_GO_TO_SEARCH   ((uint8_t)0x08)
 Event generated when synchronous rx channel has lost tracking and is entering rx searching state.
 
#define EVENT_CHANNEL_COLLISION   ((uint8_t)0x09)
 Event generated during a multi-channel setup where an instance of the current synchronous channel is blocked by another synchronous channel.
 
#define EVENT_TRANSFER_TX_START   ((uint8_t)0x0A)
 Event generated when the start of tx transfer is occuring.
 
#define EVENT_TRANSFER_NEXT_DATA_BLOCK   ((uint8_t)0x11)
 Event generated when the stack requires the next transfer data block for tx transfer continuation or completion.
 
#define CHANNEL_IN_WRONG_STATE   ((uint8_t)0x15)
 Response on attempt to perform an action from the wrong channel state.
 
#define CHANNEL_NOT_OPENED   ((uint8_t)0x16)
 Response on attempt to communicate on a channel that is not open.
 
#define CHANNEL_ID_NOT_SET   ((uint8_t)0x18)
 Response on attempt to open a channel without setting the channel ID.
 
#define CLOSE_ALL_CHANNELS   ((uint8_t)0x19)
 Response when attempting to start scanning mode, when channels are still open.
 
#define TRANSFER_IN_PROGRESS   ((uint8_t)0x1F)
 Response on attempt to communicate on a channel with a TX transfer in progress.
 
#define TRANSFER_SEQUENCE_NUMBER_ERROR   ((uint8_t)0x20)
 Response when sequence number of burst message or burst data segment is out of order.
 
#define TRANSFER_IN_ERROR   ((uint8_t)0x21)
 Response when transfer error has occured on supplied burst message or burst data segment.
 
#define TRANSFER_BUSY   ((uint8_t)0x22)
 Response when transfer is busy and cannot process supplied burst message or burst data segment.
 
#define MESSAGE_SIZE_EXCEEDS_LIMIT   ((uint8_t)0x27)
 Response if a data message is provided that is too large.
 
#define INVALID_MESSAGE   ((uint8_t)0x28)
 Response when the message has an invalid parameter.
 
#define INVALID_NETWORK_NUMBER   ((uint8_t)0x29)
 Response when an invalid network number is provided.
 
#define INVALID_LIST_ID   ((uint8_t)0x30)
 Response when the provided list ID or size exceeds the limit.
 
#define INVALID_SCAN_TX_CHANNEL   ((uint8_t)0x31)
 Response when attempting to transmit on channel 0 when in scan mode.
 
#define INVALID_PARAMETER_PROVIDED   ((uint8_t)0x33)
 Response when an invalid parameter is specified in a configuration message.
 
#define EVENT_QUE_OVERFLOW   ((uint8_t)0x35)
 Event generated when the event queue in the stack has overflowed and drop 1 or 2 events.
 
#define EVENT_ENCRYPT_NEGOTIATION_SUCCESS   ((uint8_t)0x38)
 Event generated when connecting to an encrypted channel has succeeded.
 
#define EVENT_ENCRYPT_NEGOTIATION_FAIL   ((uint8_t)0x39)
 Event generated when connecting to an encrypted channel has failed.
 
#define EVENT_RFACTIVE_NOTIFICATION   ((uint8_t)0x3A)
 Event generated when the time to next synchronous channel RF activity exceeds configured time threshold.
 
#define EVENT_RX   ((uint8_t)0x80)
 Event generated indicating received data (eg. broadcast, acknowledge, burst) from the channel.
 
#define EVENT_BLOCKED   ((uint8_t)0xFF)
 Event generated by the stack to be ignored (Filtered events will generate this)
 

Message ID's

#define MESG_INVALID_ID   ((uint8_t)0x00)
 Invalid ANT Message ID.
 
#define MESG_EVENT_ID   ((uint8_t)0x01)
 Channel Event ID.
 
#define MESG_RESPONSE_EVENT_ID   ((uint8_t)0x40)
 ANT Channel/Response Event ANT Message ID.
 
#define MESG_BROADCAST_DATA_ID   ((uint8_t)0x4E)
 Broadcast ANT Message ID.
 
#define MESG_ACKNOWLEDGED_DATA_ID   ((uint8_t)0x4F)
 Acknowledge ANT Message ID.
 
#define MESG_BURST_DATA_ID   ((uint8_t)0x50)
 Burst ANT Message ID.
 
#define MESG_ADV_BURST_DATA_ID   ((uint8_t)0x72)
 Advanced Burst ANT Message ID.
 

ANT serial message structure

Defines for accesssing ANT_MESSAGE members variables

#define ANT_MESSAGE_ulForceAlign   ulForceAlign
 
#define ANT_MESSAGE_aucMessage   aucMessage
 
#define ANT_MESSAGE_ucSize   stMessage.ucSize
 
#define ANT_MESSAGE_aucFramedData   stMessage.uFramedData.aucFramedData
 
#define ANT_MESSAGE_ucMesgID   stMessage.uFramedData.stFramedData.ucMesgID
 
#define ANT_MESSAGE_aucMesgData   stMessage.uFramedData.stFramedData.uMesgData.aucMesgData
 
#define ANT_MESSAGE_ucChannel   stMessage.uFramedData.stFramedData.uMesgData.stMesgData.uData0.ucChannel
 
#define ANT_MESSAGE_ucSubID   stMessage.uFramedData.stFramedData.uMesgData.stMesgData.uData0.ucSubID
 
#define ANT_MESSAGE_aucPayload   stMessage.uFramedData.stFramedData.uMesgData.stMesgData.aucPayload
 
#define ANT_MESSAGE_sExtMesgBF   stMessage.uFramedData.stFramedData.uMesgData.stMesgData.sExtMesgBF
 
#define ANT_MESSAGE_ucExtMesgBF   stMessage.uFramedData.stFramedData.uMesgData.stMesgData.sExtMesgBF.ucExtMesgBF
 
#define ANT_MESSAGE_stExtMesgBF   stMessage.uFramedData.stFramedData.uMesgData.stMesgData.sExtMesgBF.stExtMesgBF
 
#define ANT_MESSAGE_aucExtData   stMessage.uFramedData.stFramedData.uMesgData.stMesgData.aucExtData
 
#define ANT_MESSAGE_ucCheckSum   stMessage.ucCheckSum
 

Detailed Description

Macro Definition Documentation

#define ANT_CLOCK_FREQUENCY   ((uint32_t)32768)

ANT system clock frequency.

#define ANT_STANDARD_DATA_PAYLOAD_SIZE   ((uint8_t)8)

Standard data payload size

#define RESET_FLAGS_MASK   ((uint8_t)0xE0)

/Startup Mesg Codes