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_gattc_cache.h"
63 #include "ble_event.h"
64 #include <stdio.h>
65 
66 /** @addtogroup BLE_COMMEN_ENUM Enumerations
67  * @{
68  */
69 
70 /**
71  * @brief RF TX mode.
72  */
73 typedef enum
74 {
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 */
135 
136 /**@brief BLE HCI RX Channel (Host send packet to controller). */
137 typedef struct
138 {
139  uint8_t *p_channel; /**< Pointer to buffer for controller receive cache. */
140  uint16_t cache_size; /**< Size of the cache buffer. */
142 
143 /**@brief Extended LLCP. */
145 {
146  void (*llc_ext_llcp_proc_error_cb) (uint8_t link_id, uint8_t error_type, void* param); /**< Handler of Extended llcp procedure error. */
147  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. */
148  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. */
149 };
150 
151 /** @} */
152 
153 /** @addtogroup BLE_COMMEN_FUNCTIONS Functions
154  * @{ */
155 /**
156  *****************************************************************************************
157  * @brief Initialize BLE Stack.
158  *
159  * @param[in] evt_handler: Pointer to the ble event handler.
160  * @param[in] p_heaps_table: Pointer to the BLE stack heaps table.
161  *****************************************************************************************
162  */
163 void ble_stack_init(ble_evt_handler_t evt_handler, stack_heaps_table_t *p_heaps_table);
164 
165 /**
166  *****************************************************************************************
167  * @brief Initialize BLE Stack controller.
168  *
169  * @param[in] p_heaps_table: Pointer to the BLE stack heaps table.
170  *
171  * @note: This function should be called if only as a controller.
172  *****************************************************************************************
173  */
175 
176 /**
177  *****************************************************************************************
178  * @brief Initialize ble hci adapter module.
179  *
180  * @param[in] p_rx_channel: Pointer to hci adapter rx channel
181  * @param[in] host_recv_cb: Callback to receive controller packet.
182  *
183  * @return Result of initializing.
184  *****************************************************************************************
185  */
187 
188 /**
189  *****************************************************************************************
190  * @brief BLE HCI adapter host send packet.
191  *
192  * @param[in] p_data: Pointer to packet data.
193  * @param[in] length: Length of packet data.
194  *
195  * @return Result of send.
196  *****************************************************************************************
197  */
198 sdk_err_t ble_hci_host_packet_send(uint8_t *p_data, uint16_t length);
199 
200 /**
201  *****************************************************************************************
202  * @brief Get surplus space of controller receive channel.
203  *
204  * @return Result of get.
205  *****************************************************************************************
206  */
208 
209 /**
210  *****************************************************************************************
211  * @brief Register BLE idle time notification callback function.
212  *
213  * @param[in] callback: function pointer of BLE idle time notification function.
214  * @note hs: the idle time of BLE in half slot (312.5us).
215  * Callback will be called by BLE ISR to notify the rest idle time if there are some BLE activities.
216  * It should be realized as simlpe as you can.
217  * It's not suitable for ISO activities.
218  *****************************************************************************************
219  */
220 void ble_idle_time_notify_cb_register(void (*callback)(uint32_t hs));
221 
222 /**
223  *****************************************************************************************
224  * @brief Register BLE activity start notification callback function.
225  *
226  * @param[in] callback: function pointer of BLE activity start notification function.
227  * @note e_role: the role of activity, @ref ble_gap_actv_role_t for possible roles.
228  * index: The index parameter is interpreted by role.
229  * If role is @ref BLE_GAP_ACTIVITY_ROLE_ADV, it's the index of Advertising.
230  * If role is @ref BLE_GAP_ACTIVITY_ROLE_CON, it's the index of Connection.
231  * For all other roles, it should be ignored.
232  * Callback will be called by BLE ISR when the BLE activity starts every time.
233  * It should be realized as simlpe as you can. You'd better to define it in the RAM space
234  * It's not suitable for ISO activities.
235  *****************************************************************************************
236  */
237 void ble_activity_start_notify_cb_register(void (*callback)(ble_gap_actv_role_t e_role, uint8_t index));
238 
239 /**
240  *****************************************************************************************
241  * @brief Register BLE activity end notification callback function.
242  *
243  * @param[in] callback: function pointer of BLE activity end notification function.
244  * @note e_role: the role of activity, refer to @ref ble_gap_actv_role_t for possible roles.
245  * index: The index parameter is interpreted by role.
246  * If role is @ref BLE_GAP_ACTIVITY_ROLE_ADV, it's the index of Advertising.
247  * If role is @ref BLE_GAP_ACTIVITY_ROLE_CON, it's the index of Connection.
248  * For all other roles, it should be ignored.
249  * Callback will be called by BLE ISR when the BLE activity ends every time.
250  * It should be realized as simlpe as you can. You'd better to define it in the RAM space
251  * It's not suitable for ISO activities.
252  *****************************************************************************************
253  */
254 void ble_activity_end_notify_cb_register(void (*callback)(ble_gap_actv_role_t e_role, uint8_t index));
255 
256 /**
257  *****************************************************************************************
258  * @brief Change the RF TX mode of LP or ULP.
259  *
260  * @param[in] e_rf_tx_mode: Refer to @ref ble_rf_tx_mode_t.
261  *
262  * @note This function should be called before BLE stack init.
263  *
264  * @return SDK_SUCCESS: Successfully set tx mode.
265  * SDK_ERR_DISALLOWED: Failed to set tx mode.
266  *****************************************************************************************
267  */
268 uint8_t ble_rf_tx_mode_set(ble_rf_tx_mode_t e_rf_tx_mode);
269 
270 /**
271  *****************************************************************************************
272  * @brief Get the RF TX mode of LP or ULP.
273  *
274  * @return Refer to @ref ble_rf_tx_mode_t.
275  *
276  *****************************************************************************************
277  */
279 
280 /**
281  *****************************************************************************************
282  * @brief Set the resistance value of the RF match circuit (unit: ohm).
283  *
284  * @param[in] e_ohm: The resistance value (ohm) of the RF match circuit according to the board,
285  * Refer to @ref ble_rf_match_circuit_t.
286  * BLE_RF_MATCH_CIRCUIT_25OHM: 25 ohm.
287  * BLE_RF_MATCH_CIRCUIT_100OHM: 100 ohm.
288  * Others: invalid.
289  *
290  * @note This function should be called before BLE stack init.
291  *****************************************************************************************
292  */
294 
295 /**
296  *****************************************************************************************
297  * @brief Get the resistance value of the RF match circuit (unit: ohm).
298  *
299  * @return The resistance value (ohm) of the RF match circuit according to the board (ohm).
300  * BLE_RF_MATCH_CIRCUIT_25OHM: 25 ohm.
301  * BLE_RF_MATCH_CIRCUIT_100OHM: 100 ohm.
302  * Others: invalid.
303  *****************************************************************************************
304  */
306 
307 /**
308  *****************************************************************************************
309  * @brief Start a extended llcp procedure.
310  * @param[in] conn_idx: function pointer of BLE activity end notification function.
311  * @param[in] param: Pointer to a param which intializer supply.
312  * @param[in] ext_opcode: Extended llcp opcode.
313  * @return The result of this function.
314  *****************************************************************************************
315  */
316 uint8_t ble_ext_llcp_send(uint16_t conn_idx, uint8_t *param, uint8_t ext_opcode);
317 
318 /**
319  *****************************************************************************************
320  * @brief Registered the extended llcp procedure callback.
321  * @param[in] func: @ref ble_ext_llcp_cb_func_t.
322  * @return The result of this function.
323  *****************************************************************************************
324  */
326 
327 /**
328  *****************************************************************************************
329  * @brief Perform an AES encryption - result within callback
330  * @param[in] key Key used for the encryption
331  * @param[in] val Value to encrypt using AES
332  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
333  * @param[in] src_info Information used retrieve requester
334  * @return void.
335  *****************************************************************************************
336  */
337 void ble_aes_encrypt(const uint8_t * key, const uint8_t * val, aes_result_cb res_cb, uint32_t src_info);
338 
339 /**
340  *****************************************************************************************
341  * @brief Perform an AES dencryption - result within callback
342  * @param[in] key Key used for the dencryption
343  * @param[in] val Value to decrypt using AES
344  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
345  * @param[in] src_info Information used retrieve requester
346  * @return void.
347  *****************************************************************************************
348  */
349 void ble_aes_decrypt(const uint8_t * key, const uint8_t * val, aes_result_cb res_cb, uint32_t src_info);
350 
351 /**
352  *****************************************************************************************
353  * @brief Perform an AES ecb encryption - result within callback
354  * @param[in] key Key used for the encryption
355  * @param[in] val Value to encrypt using AES
356  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
357  * @param[in] src_info Information used retrieve requester
358  * @return void.
359  *****************************************************************************************
360  */
361 void ble_aes_ecb_encrypt(const uint8_t * key, const uint8_t * val, aes_result_cb res_cb, uint32_t src_info);
362 
363 /**
364  *****************************************************************************************
365  * @brief Perform an AES ecb dencryption - result within callback
366  * @param[in] key Key used for the dencryption
367  * @param[in] val Value to decrypt using AES
368  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
369  * @param[in] src_info Information used retrieve requester
370  * @return void.
371  *****************************************************************************************
372  */
373 void ble_aes_ecb_decrypt(const uint8_t * key, const uint8_t * val, aes_result_cb res_cb, uint32_t src_info);
374 
375 /**
376  *****************************************************************************************
377  * @brief Perform an AES cbc encryption - result within callback
378  * @param[in] key Key used for the encryption
379  * @param[in] iv IV used for the cbc encryption.only first block need to be present, continue block shall be null.
380  * @param[in] val Value to encrypt using AES
381  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
382  * @param[in] src_info Information used retrieve requester
383  * @return void.
384  *****************************************************************************************
385  */
386 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);
387 
388 /**
389  *****************************************************************************************
390  * @brief Perform an AES cbc dencryption - result within callback
391  * @param[in] key Key used for the decryption
392  * @param[in] iv IV used for the cbc decryption.only first block need to be present, continue block shall be null.
393  * @param[in] val Value to decrypt using AES
394  * @param[in] res_cb Function that will handle the AES based result (16 bytes)
395  * @param[in] src_info Information used retrieve requester
396  * @return void.
397  *****************************************************************************************
398  */
399 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);
400 /** @} */
401 #endif
402 /** @} */
403 /** @} */
404 
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_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:139
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:140
ble_ext_llcp_cb_func_t
Extended LLCP.
Definition: ble.h:145
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:534
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:146
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:76
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:75
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_RF_MATCH_CIRCUIT_25OHM
@ BLE_RF_MATCH_CIRCUIT_25OHM
Definition: ble.h:85
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_RF_MATCH_CIRCUIT_100OHM
@ BLE_RF_MATCH_CIRCUIT_100OHM
Definition: ble.h:86
ble_hci_rx_channel_t
BLE HCI RX Channel (Host send packet to controller).
Definition: ble.h:138
stack_heaps_table_t::bm_buf
uint8_t * bm_buf
Definition: ble.h:124
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 resistance value of the RF match circuit (unit: ohm).
stack_heaps_table_t::buf_size
uint32_t buf_size
Definition: ble.h:123
ble_rf_match_circuit_set
void ble_rf_match_circuit_set(ble_rf_match_circuit_t e_ohm)
Set the resistance value of the RF match circuit (unit: ohm).
sdk_err_t
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:257
stack_heaps_table_t::em_ble_act_num
uint16_t em_ble_act_num
Definition: ble.h:129
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.
stack_heaps_table_t::em_common_offset
uint16_t em_common_offset
Definition: ble.h:133
ble_rf_tx_mode_t
ble_rf_tx_mode_t
RF TX mode.
Definition: ble.h:74
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:147
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_rf_tx_mode_set
uint8_t ble_rf_tx_mode_set(ble_rf_tx_mode_t e_rf_tx_mode)
Change the RF TX mode of LP or ULP.
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:148
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_evt_handler_t
void(* ble_evt_handler_t)(const ble_evt_t *p_evt)
The BLE event handler type.
Definition: ble_event.h:245
BLE_RF_TX_MODE_ULP_MODE
@ BLE_RF_TX_MODE_ULP_MODE
Definition: ble.h:77
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.
ble_gattc_cache.h
BLE GATTC API.