TI BLE5-Stack API Documentation  2.02.00.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  uint16_t connInterval;
64  uint8_t hopValue;
65  uint16_t mSCA;
66  uint8_t currChan;
67  uint8_t chanMap[5];
68  uint32_t crcInit;
69  uint8_t addr[6];
71 
73 typedef struct __attribute__((packed))
74 {
75  uint8_t eventType;
76  uint8_t addrType;
77  uint8_t addr[6];
78  int8_t rssi;
79  uint8_t advSID;
80  uint16_t periodicAdvInt;
81  uint8_t dataLen;
82  uint8_t pEvtData[];
84 
86 typedef struct __attribute__((packed))
87 {
88  uint8_t addrType;
89  uint8_t addr[6];
90  uint16 connInterval;
92 
93 // Create Sync parameters
94 typedef struct __attribute__((packed))
95 {
96  uint8_t advSID;
97  uint8_t options;
98  uint8_t advAddrType;
99  uint8_t advAddress[6];
100  uint16_t skip;
101  uint16_t syncTimeout;
102  uint8_t syncCteType;
103 } rtlsCreateSyncParams_t;
104 
105 // Periodic Adv Receive Enable parameters
106 typedef struct __attribute__((packed))
107 {
108  uint16_t syncHandle;
109  uint8_t enable;
110 } rtlsReceiveEnableParams_t;
111 
113 typedef struct
114 {
115  uint16_t syncHandle;
117 
118 // Periodic Adv - Advertiser information
119 typedef struct __attribute__((packed))
120 {
121  uint8_t advAddrType;
122  uint8_t advAddress[6];
123  uint8_t advSID;
124 } rtlsAdvListDeviceParams_t;
125 
128 /*********************************************************************
129  * API FUNCTIONS
130  */
131 
132 /*********************************************************************
133 *********************************************************************/
134 
135 #ifdef __cplusplus
136 }
137 #endif
138 
139 #endif /* RTLS_BLE_H_ */
140 
bleConnInfo_t
BLE Connection information.
Definition: rtls_ble.h:70
uint16_t syncHandle
Sync handle.
Definition: rtls_ble.h:115
bleConnReq_t
BLE Connection request information.
Definition: rtls_ble.h:91
struct __attribute__((packed))
BLE Connection information.
Definition: rtls_ble.h:59
bleScanInfo_t
BLE Scanning information.
Definition: rtls_ble.h:83
RTLS terminate sync request.
Definition: rtls_ble.h:113
© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale