TI BLE5-Stack API Documentation  2.02.04.00
rtls_ble.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  @file rtls_ble.h
4 
5  @brief This file contains the stack specific BLE structures needed for RTLS Control
6 
7  Group: WCS, BTS
8  $Target Device: DEVICES $
9 
10  ******************************************************************************
11  $License: BSD3 2018 $
12  ******************************************************************************
13  $Release Name: PACKAGE NAME $
14  $Release Date: PACKAGE RELEASE DATE $
15  *****************************************************************************/
16 
26 #ifndef RTLS_BLE_H_
27 #define RTLS_BLE_H_
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
34 /*********************************************************************
35  * INCLUDES
36  */
37 
38 /*********************************************************************
39 * EXTERNAL VARIABLES
40 */
41 
42 /*********************************************************************
43  * CONSTANTS
44  */
45 
46 /*********************************************************************
47  * MACROS
48  */
49 
50 /*********************************************************************
51  * TYPEDEFS
52  */
53 
58 typedef struct __attribute__((packed))
60 {
61  uint16_t connHandle;
62  uint32_t accessAddr;
63  uint8_t connRole;
64  uint16_t connInterval;
65  uint8_t hopValue;
66  uint16_t cSCA;
67  uint8_t currChan;
68  uint8_t chanMap[5];
69  uint32_t crcInit;
70  uint8_t addr[6];
72 
74 typedef struct __attribute__((packed))
75 {
76  uint8_t eventType;
77  uint8_t addrType;
78  uint8_t addr[6];
79  int8_t rssi;
80  uint8_t advSID;
81  uint16_t periodicAdvInt;
82  uint8_t dataLen;
83  uint8_t pEvtData[];
85 
87 typedef struct __attribute__((packed))
88 {
89  uint8_t addrType;
90  uint8_t addr[6];
91  uint16 connInterval;
93 
94 // Create Sync parameters
95 typedef struct __attribute__((packed))
96 {
97  uint8_t advSID;
98  uint8_t options;
99  uint8_t advAddrType;
100  uint8_t advAddress[6];
101  uint16_t skip;
102  uint16_t syncTimeout;
103  uint8_t syncCteType;
104 } rtlsCreateSyncParams_t;
105 
106 // Periodic Adv Receive Enable parameters
107 typedef struct __attribute__((packed))
108 {
109  uint16_t syncHandle;
110  uint8_t enable;
111 } rtlsReceiveEnableParams_t;
112 
114 typedef struct
115 {
116  uint16_t syncHandle;
118 
119 // Periodic Adv - Advertiser information
120 typedef struct __attribute__((packed))
121 {
122  uint8_t advAddrType;
123  uint8_t advAddress[6];
124  uint8_t advSID;
125 } rtlsAdvListDeviceParams_t;
126 
129 /*********************************************************************
130  * API FUNCTIONS
131  */
132 
133 /*********************************************************************
134 *********************************************************************/
135 
136 #ifdef __cplusplus
137 }
138 #endif
139 
140 #endif /* RTLS_BLE_H_ */
141 
bleConnInfo_t
BLE Connection information.
Definition: rtls_ble.h:71
uint16_t syncHandle
Sync handle.
Definition: rtls_ble.h:116
bleConnReq_t
BLE Connection request information.
Definition: rtls_ble.h:92
struct __attribute__((packed))
BLE Connection information.
Definition: rtls_ble.h:59
bleScanInfo_t
BLE Scanning information.
Definition: rtls_ble.h:84
RTLS terminate sync request.
Definition: rtls_ble.h:114
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale