26 #ifndef RTLS_CTRL_API_H_ 27 #define RTLS_CTRL_API_H_ 48 #define RTLS_REQ_ENABLE_SYNC 0x1 49 #define RTLS_REQ_CONN 0x2 50 #define RTLS_REQ_SCAN 0x3 51 #define RTLS_REQ_SEND_DATA 0x4 52 #define RTLS_REQ_TERMINATE_LINK 0x5 53 #define RTLS_REQ_SET_AOA_PARAMS 0x6 54 #define RTLS_REQ_AOA_ENABLE 0x7 57 #define CHIP_ID_ADDR ((uint8_t *)(0x50001000 + 0x2E8)) 58 #define CHIP_ID_SIZE 6 89 RTLS_CAP_NOT_INITIALIZED = 0x00000000,
90 RTLS_CAP_CM = 0x00000001,
91 RTLS_CAP_AOA_TX = 0x00000002,
92 RTLS_CAP_AOA_RX = 0x00000004,
93 RTLS_CAP_TOF_SLAVE = 0x00000008,
94 RTLS_CAP_TOF_PASSIVE = 0x00000010,
95 RTLS_CAP_TOF_MASTER = 0x00000020,
96 RTLS_CAP_RTLS_SLAVE = 0x00000040,
97 RTLS_CAP_RTLS_MASTER = 0x00000080,
98 RTLS_CAP_RTLS_PASSIVE = 0x00000100
216 void RTLSCtrl_aoaResultEvt(int8_t rssi, uint8_t channel, uint16_t numIqSamples, uint8_t sampleRate, uint8_t numAnt, uint8_t antArraySwitchIo, uint16_t *pI, uint16_t *pQ);
#define CHIP_ID_SIZE
Chip Identifier Size.
Definition: rtls_ctrl_api.h:58
void RTLSCtrl_processDataSent(uint8_t status)
RTLS Application Data Sent.
void RTLSCtrl_sendDebugEvent(uint8_t *debug_string, uint32_t debug_value)
RTLSCtrl_sendDebugEvent.
void RTLSCtrl_aoaResultEvt(int8_t rssi, uint8_t channel, uint16_t numIqSamples, uint8_t sampleRate, uint8_t numAnt, uint8_t antArraySwitchIo, uint16_t *pI, uint16_t *pQ)
RTLSCtrl_aoaResultEvt.
RTLS Configuration structure.
Definition: rtls_ctrl_api.h:102
uint8_t * pData
Pointer to request.
Definition: rtls_ctrl_api.h:113
void RTLSCtrl_processRtlsPacket(uint8_t *pPkt)
RTLSCtrl_processRtlsPacket.
rtlsCapabilities_e
Enumeration for RTLS Capabilities.
Definition: rtls_ctrl_api.h:87
uint8_t cmdOp
RTLS Application Command Opcode.
Definition: rtls_ctrl_api.h:119
void RTLSCtrl_scanResultEvt(rtlsStatus_e status, uint8_t *scanResult, uint8_t size)
RTLS Control Scan Results.
void RTLSCtrl_connInfoEvt(uint8_t *connInfo, uint16_t connInfoLen)
RTLS Control Connection Info.
void RTLSCtrl_syncEventNotify(rtlsStatus_e status, uint32_t timeToNextEvent, int8_t rssi, uint8_t channel)
RTLSCtrl_syncEventNotify.
void(* pfnRtlsAppCb)(uint8_t *cmd)
Application callback function.
Definition: rtls_ctrl_api.h:72
uint16_t payloadLen
Length.
Definition: rtls_ctrl_api.h:120
rtlsCapabilities_e rtlsCapab
RTLS Capabilities.
Definition: rtls_ctrl_api.h:104
uint8_t reqOp
Request Opcode.
Definition: rtls_ctrl_api.h:112
void RTLSCtrl_open(rtlsConfiguration_t *rtlsConfig)
RTLSCtrl_open.
RTLS Packet - Generic structure that will be translated to a specific command.
Definition: rtls_ctrl_api.h:117
pfnRtlsAppCb rtlsAppCb
Application callback function.
Definition: rtls_ctrl_api.h:106
rtlsStatus_e
Enumeration for RTLS Status.
Definition: rtls_ctrl_api.h:75
void RTLSCtrl_connResultEvt(uint8_t status)
RTLS Control Connection Results.
RTLS Control request.
Definition: rtls_ctrl_api.h:110