ble.h
Go to the documentation of this file.
1 /**
2  ****************************************************************************************
3  *
4  * @file ble.h
5  *
6  * @brief include all ble sdk header files
7  *
8  ****************************************************************************************
9  * @attention
10  #####Copyright (c) 2019 GOODIX
11  All rights reserved.
12 
13  Redistribution and use in source and binary forms, with or without
14  modification, are permitted provided that the following conditions are met:
15  * Redistributions of source code must retain the above copyright
16  notice, this list of conditions and the following disclaimer.
17  * Redistributions in binary form must reproduce the above copyright
18  notice, this list of conditions and the following disclaimer in the
19  documentation and/or other materials provided with the distribution.
20  * Neither the name of GOODIX nor the names of its contributors may be used
21  to endorse or promote products derived from this software without
22  specific prior written permission.
23 
24  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27  ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
28  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34  POSSIBILITY OF SUCH DAMAGE.
35  *****************************************************************************************
36  */
37 
38  /**
39  * @addtogroup BLE
40  * @{
41  */
42 
43 /**
44  @addtogroup BLE_COMMEN BLE Common
45  @{
46  @brief BLE Common interface.
47  */
48 
49 #ifndef __BLE_H__
50 #define __BLE_H__
51 
52 #include "ble_att.h"
53 #include "ble_error.h"
54 #include "ble_gapc.h"
55 #include "ble_gapm.h"
56 #include "ble_gatt.h"
57 #include "ble_gattc.h"
58 #include "ble_gatts.h"
59 #include "ble_l2cap.h"
60 #include "ble_prf.h"
61 #include "ble_sec.h"
62 #include "ble_event.h"
63 #include <stdio.h>
64 
65 /** @addtogroup BLE_COMMEN_ENUM Enumerations
66  * @{
67  */
68 
69 /**
70  * @brief RF TX mode.
71  */
72 typedef enum
73 {
79 
80 /**
81  * @brief The resistance value (ohm) of the RF match circuit.
82  */
83 typedef enum
84 {
88 
89 /**
90  ****************************************************************************************
91  * @brief Call back definition of the function that can handle result of an AES based algorithm
92  *
93  * @param[in] status Execution status
94  * @param[in] aes_res 16 bytes block result
95  * @param[in] src_info Information provided by requester
96  ****************************************************************************************
97  */
98 typedef void (*aes_result_cb) (uint8_t status, const uint8_t* aes_res, uint32_t src_info);
99 
100 /**@brief Receive controller pachet callback type. */
101 typedef void (*ble_hci_host_recv_cb_t)(uint8_t *p_data, uint16_t length);
102 
103 /** @} */
104 
105 /** @addtogroup BLE_COMMEN_STRUCTURES Structures
106  * @{
107  */
108 
109 /**@brief The table contains the pointers to four arrays which are used
110  * as heap memory by BLE stack in ROM. The size of four arrays depends on
111  * the number of connections and the number of attributes of profiles. */
112 typedef struct
113 {
114  uint32_t *env_ret; /**< Pointer to the array for environment heap */
115  uint32_t *db_ret; /**< Pointer to the array for ATT DB heap */
116  uint32_t *msg_ret; /**< Pointer to the array for message heap */
117  uint32_t *non_ret; /**< Pointer to the array for non-retention heap */
118  uint32_t env_ret_size; /**< The size of the array for environment heap */
119  uint32_t db_ret_size; /**< The size of the array for ATT DB heap */
120  uint32_t msg_ret_size; /**< The size of the array for message heap */
121  uint32_t non_ret_size; /**< The size of the array for non-retention heap */
122  uint8_t *prf_buf; /**< Pointer to the array for profile heap */
123  uint32_t buf_size; /**< The size of the array for profile heap */
124  uint8_t *bm_buf; /**< Pointer to the array for bond manager heap */
125  uint32_t bm_size; /**< The size of the array for bond manager heap */
126  uint8_t *conn_buf; /**< Pointer to the array for connection heap */
127  uint32_t conn_size; /**< The size of the array for connection heap */
128 
129  uint16_t em_ble_act_num; /**< The number of ble maxium activities */
130  uint16_t em_ble_ral_num; /**< The number of ble maxium resolvable address list */
131  uint16_t em_ble_adv_buf_nb_tx; /**< The number of advertising data buffers */
132  uint16_t em_ble_adv_frag_nb_tx; /**< The number of advertising or scan response data fragments in extended advertising PDU chain */
133  uint16_t em_common_offset; /**< Start offset of the common EM part */
134  uint32_t ram_size; /**< ram size */
136 
137 /**@brief BLE HCI RX Channel (Host send packet to controller). */
138 typedef struct
139 {
140  uint8_t *p_channel; /**< Pointer to buffer for controller receive cache. */
141  uint16_t cache_size; /**< Size of the cache buffer. */
143 
144 /**@brief Extended LLCP. */
146 {
147  void (*llc_ext_llcp_proc_error_cb) (uint8_t link_id, uint8_t error_type, void* param); /**< Handler of Extended llcp procedure error. */
148  void (*llc_ext_llcp_req_proc_done_cb) (uint8_t link_id, uint8_t status, uint8_t ext_opcode, uint8_t *per_param); /**< Report the Extended llcp procedure done. */
149  uint8_t (*llc_ext_llcp_req_handler_cb) (uint8_t link_id, uint8_t *req_param, uint8_t *rsp_param); /**< Handle the Extended llcp request. */
150 };
151 
152 /** @} */
153 
154 /** @addtogroup BLE_COMMEN_FUNCTIONS Functions
155  * @{ */
156 /**
157  *****************************************************************************************
158  * @brief Initialize BLE Stack.
159  *
160  * @param[in] evt_handler: Pointer to the ble event handler.
161  * @param[in] p_heaps_table: Pointer to the BLE stack heaps table.
162  *****************************************************************************************
163  */
164 void ble_stack_init(ble_evt_handler_t evt_handler, stack_heaps_table_t *p_heaps_table);
165 
166 /**
167  *****************************************************************************************
168  * @brief Initialize BLE Stack controller.
169  *
170  * @param[in] p_heaps_table: Pointer to the BLE stack heaps table.
171  *
172  * @note: This function should be called if only as a controller.
173  *****************************************************************************************
174  */
176 
177 /**
178  *****************************************************************************************
179  * @brief Initialize ble hci adapter module.
180  *
181  * @param[in] p_rx_channel: Pointer to hci adapter rx channel
182  * @param[in] host_recv_cb: Callback to receive controller packet.
183  *
184  * @return Result of initializing.
185  *****************************************************************************************
186  */
188 
189 /**
190  *****************************************************************************************
191  * @brief BLE HCI adapter host send packet.
192  *
193  * @param[in] p_data: Pointer to packet data.
194  * @param[in] length: Length of packet data.
195  *
196  * @return Result of send.
197  *****************************************************************************************
198  */
199 sdk_err_t ble_hci_host_packet_send(uint8_t *p_data, uint16_t length);
200 
201 /**
202  *****************************************************************************************
203  * @brief Get surplus space of controller receive channel.
204  *
205  * @return Result of get.
206  *****************************************************************************************
207  */
209 
210 /**
211  *****************************************************************************************
212  * @brief Register BLE idle time notification callback function.
213  *
214  * @param[in] callback: function pointer of BLE idle time notification function.
215  * @note hs: the idle time of BLE in half slot (312.5us).
216  * Callback will be called by BLE ISR to notify the rest idle time if there are some BLE activities.
217  * It should be realized as simlpe as you can.
218  * It's not suitable for ISO activities.
219  *****************************************************************************************
220  */
221 void ble_idle_time_notify_cb_register(void (*callback)(uint32_t hs));
222 
223 /**
224  *****************************************************************************************
225  * @brief Register BLE activity start notification callback function.
226  *
227  * @param[in] callback: function pointer of BLE activity start notification function.
228  * @note e_role: the role of activity, @ref ble_gap_actv_role_t for possible roles.
229  * index: The index parameter is interpreted by role.
230  * If role is @ref BLE_GAP_ACTIVITY_ROLE_ADV, it's the index of Advertising.
231  * If role is @ref BLE_GAP_ACTIVITY_ROLE_CON, it's the index of Connection.
232  * For all other roles, it should be ignored.
233  * Callback will be called by BLE ISR when the BLE activity starts every time.
234  * It should be realized as simlpe as you can. You'd better to define it in the RAM space
235  * It's not suitable for ISO activities.
236  *****************************************************************************************
237  */
238 void ble_activity_start_notify_cb_register(void (*callback)(ble_gap_actv_role_t e_role, uint8_t index));
239 
240 /**
241  *****************************************************************************************
242  * @brief Register BLE activity end notification callback function.
243  *
244  * @param[in] callback: function pointer of BLE activity end notification function.
245  * @note e_role: the role of activity, refer to @ref ble_gap_actv_role_t for possible roles.
246  * index: The index parameter is interpreted by role.
247  * If role is @ref BLE_GAP_ACTIVITY_ROLE_ADV, it's the index of Advertising.
248  * If role is @ref BLE_GAP_ACTIVITY_ROLE_CON, it's the index of Connection.
249  * For all other roles, it should be ignored.
250  * Callback will be called by BLE ISR when the BLE activity ends every time.
251  * It should be realized as simlpe as you can. You'd better to define it in the RAM space
252  * It's not suitable for ISO activities.
253  *****************************************************************************************
254  */
255 void ble_activity_end_notify_cb_register(void (*callback)(ble_gap_actv_role_t e_role, uint8_t index));
256 
257 /**
258  *****************************************************************************************
259  * @brief Change the RF TX mode of LP, ULP or HP.
260  *
261  * @param[in] rf_tx_mode: Refer to @ref ble_rf_tx_mode_t.
262  *
263  * @note This function should be called before BLE stack init.
264  *
265  * @return SDK_SUCCESS: Successfully set tx mode.
266  * SDK_ERR_DISALLOWED: Failed to set tx mode.
267  *****************************************************************************************
268  */
270 
271 /**
272  *****************************************************************************************
273  * @brief Get the RF TX mode of LP or ULP.
274  *
275  * @return Refer to @ref ble_rf_tx_mode_t.
276  *
277  *****************************************************************************************
278  */
280 
281 /**
282  *****************************************************************************************
283  * @brief Set the RF matching circuit order
284  *
285  * @param[in] matching_order:
286  * Refer to @ref ble_rf_match_circuit_t.
287  * BLE_RF_5TH_MATCH_CIRCUIT
288  * BLE_RF_3TH_MATCH_CIRCUIT
289  * Others: invalid.
290  *
291  * @return The result of this function.
292  *
293  * @note This function should be called before BLE stack init.
294  *****************************************************************************************
295  */
297 
298 /**
299  *****************************************************************************************
300  * @brief Get the RF matching circuit order
301  *
302  * @return the RF matching circuit order
303  * BLE_RF_5TH_MATCH_CIRCUIT
304  * BLE_RF_3TH_MATCH_CIRCUIT
305  * Others: invalid.
306  *****************************************************************************************
307  */
309 
310 /**
311  *****************************************************************************************
312  * @brief custom the advertising frequency
313  *
314  * @param[in] ch37_mhz: channel 37 frequency[2360, 2520]MHz
315  * @param[in] ch38_mhz: channel 38 frequency[2360, 2520]MHz
316  * @param[in] ch39_mhz: channel 39 frequency[2360, 2520]MH
317  * Others: invalid.
318  * @return SDK_SUCCESS: success.
319  Others: fail
320  *****************************************************************************************
321  */
322 sdk_err_t adv_rf_phy_freq_modify(uint16_t ch37_mhz, uint16_t ch38_mhz, uint16_t ch39_mhz);
323 
324 /**
325  *****************************************************************************************
326  * @brief Start a extended llcp procedure.
327  * @param[in] conn_idx: function pointer of BLE activity end notification function.
328  * @param[in] param: Pointer to a param which intializer supply.
329  * @param[in] ext_opcode: Extended llcp opcode.
330  * @return The result of this function.
331  *****************************************************************************************
332  */
333 uint8_t ble_ext_llcp_send(uint16_t conn_idx, uint8_t *param, uint8_t ext_opcode);
334 
335 /**
336  *****************************************************************************************
337  * @brief Registered the extended llcp procedure callback.
338  * @param[in] func: @ref ble_ext_llcp_cb_func_t.
339  * @return The result of this function.
340  *****************************************************************************************
341  */
343 
344 /**
345  *****************************************************************************************
346  * @brief Perform an AES encryption - result within callback
347  * @param[in] key Key used for the encryption
348  * @param[in] val Value to encrypt using AES
349  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
350  * @param[in] src_info Information used retrieve requester
351  * @return void.
352  *****************************************************************************************
353  */
354 void ble_aes_encrypt(const uint8_t * key, const uint8_t * val, aes_result_cb res_cb, uint32_t src_info);
355 
356 /**
357  *****************************************************************************************
358  * @brief Perform an AES dencryption - result within callback
359  * @param[in] key Key used for the dencryption
360  * @param[in] val Value to decrypt using AES
361  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
362  * @param[in] src_info Information used retrieve requester
363  * @return void.
364  *****************************************************************************************
365  */
366 void ble_aes_decrypt(const uint8_t * key, const uint8_t * val, aes_result_cb res_cb, uint32_t src_info);
367 
368 /**
369  *****************************************************************************************
370  * @brief Perform an AES ecb encryption - result within callback
371  * @param[in] key Key used for the encryption
372  * @param[in] val Value to encrypt using AES
373  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
374  * @param[in] src_info Information used retrieve requester
375  * @return void.
376  *****************************************************************************************
377  */
378 void ble_aes_ecb_encrypt(const uint8_t * key, const uint8_t * val, aes_result_cb res_cb, uint32_t src_info);
379 
380 /**
381  *****************************************************************************************
382  * @brief Perform an AES ecb dencryption - result within callback
383  * @param[in] key Key used for the dencryption
384  * @param[in] val Value to decrypt using AES
385  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
386  * @param[in] src_info Information used retrieve requester
387  * @return void.
388  *****************************************************************************************
389  */
390 void ble_aes_ecb_decrypt(const uint8_t * key, const uint8_t * val, aes_result_cb res_cb, uint32_t src_info);
391 
392 /**
393  *****************************************************************************************
394  * @brief Perform an AES cbc encryption - result within callback
395  * @param[in] key Key used for the encryption
396  * @param[in] iv IV used for the cbc encryption.only first block need to be present, continue block shall be null.
397  * @param[in] val Value to encrypt using AES
398  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
399  * @param[in] src_info Information used retrieve requester
400  * @return void.
401  *****************************************************************************************
402  */
403 void ble_aes_cbc_encrypt(const uint8_t * key, const uint8_t * iv, const uint8_t * val, aes_result_cb res_cb, uint32_t src_info);
404 
405 /**
406  *****************************************************************************************
407  * @brief Perform an AES cbc dencryption - result within callback
408  * @param[in] key Key used for the decryption
409  * @param[in] iv IV used for the cbc decryption.only first block need to be present, continue block shall be null.
410  * @param[in] val Value to decrypt using AES
411  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
412  * @param[in] src_info Information used retrieve requester
413  * @return void.
414  *****************************************************************************************
415  */
416 void ble_aes_cbc_decrypt(const uint8_t * key, const uint8_t * iv, const uint8_t * val, aes_result_cb res_cb, uint32_t src_info);
417 /** @} */
418 #endif
419 /** @} */
420 /** @} */
421 
ble_hci_host_recv_cb_t
void(* ble_hci_host_recv_cb_t)(uint8_t *p_data, uint16_t length)
Receive controller pachet callback type.
Definition: ble.h:101
ble_stack_init
void ble_stack_init(ble_evt_handler_t evt_handler, stack_heaps_table_t *p_heaps_table)
Initialize BLE Stack.
stack_heaps_table_t::em_ble_ral_num
uint16_t em_ble_ral_num
Definition: ble.h:130
BLE_RF_3TH_MATCH_CIRCUIT
@ BLE_RF_3TH_MATCH_CIRCUIT
Definition: ble.h:86
ble_hci_init
sdk_err_t ble_hci_init(ble_hci_rx_channel_t *p_rx_channel, ble_hci_host_recv_cb_t host_recv_cb)
Initialize ble hci adapter module.
ble_hci_host_packet_send
sdk_err_t ble_hci_host_packet_send(uint8_t *p_data, uint16_t length)
BLE HCI adapter host send packet.
ble_hci_rx_channel_t::p_channel
uint8_t * p_channel
Definition: ble.h:140
stack_heaps_table_t::prf_buf
uint8_t * prf_buf
Definition: ble.h:122
ble_hci_rx_channel_t::cache_size
uint16_t cache_size
Definition: ble.h:141
ble_ext_llcp_cb_func_t
Extended LLCP.
Definition: ble.h:146
stack_heaps_table_t::db_ret_size
uint32_t db_ret_size
Definition: ble.h:119
stack_heaps_table_t::env_ret_size
uint32_t env_ret_size
Definition: ble.h:118
ble_gatts.h
BLE GATTS API.
ble_rf_match_circuit_t
ble_rf_match_circuit_t
The resistance value (ohm) of the RF match circuit.
Definition: ble.h:84
ble_gap_actv_role_t
ble_gap_actv_role_t
Possible roles of the activity.
Definition: ble_gapm.h:512
stack_heaps_table_t::conn_size
uint32_t conn_size
Definition: ble.h:127
ble_ext_llcp_cb_func_t::llc_ext_llcp_proc_error_cb
void(* llc_ext_llcp_proc_error_cb)(uint8_t link_id, uint8_t error_type, void *param)
Definition: ble.h:147
stack_heaps_table_t::msg_ret
uint32_t * msg_ret
Definition: ble.h:116
ble_gatt.h
BLE GATT.
BLE_RF_TX_MODE_LP_MODE
@ BLE_RF_TX_MODE_LP_MODE
Definition: ble.h:75
ble_ext_llcp_send
uint8_t ble_ext_llcp_send(uint16_t conn_idx, uint8_t *param, uint8_t ext_opcode)
Start a extended llcp procedure.
BLE_RF_TX_MODE_INVALID
@ BLE_RF_TX_MODE_INVALID
Definition: ble.h:74
ble_l2cap.h
BLE L2CAP API.
ble_activity_start_notify_cb_register
void ble_activity_start_notify_cb_register(void(*callback)(ble_gap_actv_role_t e_role, uint8_t index))
Register BLE activity start notification callback function.
ble_sec.h
BLE SEC API.
stack_heaps_table_t::bm_size
uint32_t bm_size
Definition: ble.h:125
ble_aes_encrypt
void ble_aes_encrypt(const uint8_t *key, const uint8_t *val, aes_result_cb res_cb, uint32_t src_info)
Perform an AES encryption - result within callback.
ble_hci_rx_channel_t
BLE HCI RX Channel (Host send packet to controller).
Definition: ble.h:139
stack_heaps_table_t::bm_buf
uint8_t * bm_buf
Definition: ble.h:124
adv_rf_phy_freq_modify
sdk_err_t adv_rf_phy_freq_modify(uint16_t ch37_mhz, uint16_t ch38_mhz, uint16_t ch39_mhz)
custom the advertising frequency
ble_error.h
File that contains error codes.
ble_gapc.h
BLE GAPC API.
stack_heaps_table_t::em_ble_adv_buf_nb_tx
uint16_t em_ble_adv_buf_nb_tx
Definition: ble.h:131
ble_aes_ecb_encrypt
void ble_aes_ecb_encrypt(const uint8_t *key, const uint8_t *val, aes_result_cb res_cb, uint32_t src_info)
Perform an AES ecb encryption - result within callback.
ble_prf.h
BLE PRF API.
ble_hci_rx_channel_surplus_space_get
uint16_t ble_hci_rx_channel_surplus_space_get(void)
Get surplus space of controller receive channel.
ble_rf_match_circuit_get
ble_rf_match_circuit_t ble_rf_match_circuit_get(void)
Get the RF matching circuit order.
stack_heaps_table_t::buf_size
uint32_t buf_size
Definition: ble.h:123
sdk_err_t
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:290
ble_rf_match_circuit_set
void ble_rf_match_circuit_set(ble_rf_match_circuit_t matching_order)
Set the RF matching circuit order.
stack_heaps_table_t::em_ble_act_num
uint16_t em_ble_act_num
Definition: ble.h:129
stack_heaps_table_t::ram_size
uint32_t ram_size
Definition: ble.h:134
ble_ext_llcp_cb_reg
uint8_t ble_ext_llcp_cb_reg(struct ble_ext_llcp_cb_func_t *func)
Registered the extended llcp procedure callback.
aes_result_cb
void(* aes_result_cb)(uint8_t status, const uint8_t *aes_res, uint32_t src_info)
Call back definition of the function that can handle result of an AES based algorithm.
Definition: ble.h:98
ble_aes_decrypt
void ble_aes_decrypt(const uint8_t *key, const uint8_t *val, aes_result_cb res_cb, uint32_t src_info)
Perform an AES dencryption - result within callback.
ble_event.h
BLE event header files.
BLE_RF_5TH_MATCH_CIRCUIT
@ BLE_RF_5TH_MATCH_CIRCUIT
Definition: ble.h:85
stack_heaps_table_t::em_common_offset
uint16_t em_common_offset
Definition: ble.h:133
ble_rf_tx_mode_set
void ble_rf_tx_mode_set(ble_rf_tx_mode_t rf_tx_mode)
Change the RF TX mode of LP, ULP or HP.
ble_rf_tx_mode_t
ble_rf_tx_mode_t
RF TX mode.
Definition: ble.h:73
ble_stack_controller_init
void ble_stack_controller_init(stack_heaps_table_t *p_heaps_table)
Initialize BLE Stack controller.
ble_aes_cbc_encrypt
void ble_aes_cbc_encrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *val, aes_result_cb res_cb, uint32_t src_info)
Perform an AES cbc encryption - result within callback.
ble_gapm.h
BLE GAPM API.
ble_ext_llcp_cb_func_t::llc_ext_llcp_req_proc_done_cb
void(* llc_ext_llcp_req_proc_done_cb)(uint8_t link_id, uint8_t status, uint8_t ext_opcode, uint8_t *per_param)
Definition: ble.h:148
ble_activity_end_notify_cb_register
void ble_activity_end_notify_cb_register(void(*callback)(ble_gap_actv_role_t e_role, uint8_t index))
Register BLE activity end notification callback function.
stack_heaps_table_t::conn_buf
uint8_t * conn_buf
Definition: ble.h:126
ble_ext_llcp_cb_func_t::llc_ext_llcp_req_handler_cb
uint8_t(* llc_ext_llcp_req_handler_cb)(uint8_t link_id, uint8_t *req_param, uint8_t *rsp_param)
Definition: ble.h:149
stack_heaps_table_t::non_ret_size
uint32_t non_ret_size
Definition: ble.h:121
ble_att.h
Attribute Protocol.
stack_heaps_table_t::em_ble_adv_frag_nb_tx
uint16_t em_ble_adv_frag_nb_tx
Definition: ble.h:132
ble_idle_time_notify_cb_register
void ble_idle_time_notify_cb_register(void(*callback)(uint32_t hs))
Register BLE idle time notification callback function.
BLE_RF_TX_MODE_HP_MODE
@ BLE_RF_TX_MODE_HP_MODE
Definition: ble.h:77
ble_evt_handler_t
void(* ble_evt_handler_t)(const ble_evt_t *p_evt)
The BLE event handler type.
Definition: ble_event.h:227
BLE_RF_TX_MODE_ULP_MODE
@ BLE_RF_TX_MODE_ULP_MODE
Definition: ble.h:76
ble_gattc.h
BLE GATTC API.
stack_heaps_table_t::msg_ret_size
uint32_t msg_ret_size
Definition: ble.h:120
ble_rf_tx_mode_get
ble_rf_tx_mode_t ble_rf_tx_mode_get(void)
Get the RF TX mode of LP or ULP.
ble_aes_ecb_decrypt
void ble_aes_ecb_decrypt(const uint8_t *key, const uint8_t *val, aes_result_cb res_cb, uint32_t src_info)
Perform an AES ecb dencryption - result within callback.
stack_heaps_table_t::non_ret
uint32_t * non_ret
Definition: ble.h:117
stack_heaps_table_t::env_ret
uint32_t * env_ret
Definition: ble.h:114
stack_heaps_table_t::db_ret
uint32_t * db_ret
Definition: ble.h:115
stack_heaps_table_t
The table contains the pointers to four arrays which are used as heap memory by BLE stack in ROM....
Definition: ble.h:113
ble_aes_cbc_decrypt
void ble_aes_cbc_decrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *val, aes_result_cb res_cb, uint32_t src_info)
Perform an AES cbc dencryption - result within callback.