1 
2 /**
3   ******************************************************************************
4   * @file    stack_user_cfg.c
5   * @author  GPM WBL Application Team
6   * @brief   BLE stack modular configuration options file
7   * @details BLE_Config BLE stack configuration options
8   *  - The BLE stack v4.0 or later supports the following outstanding features:
9   *    -- Controller Privacy
10   *    -- LE Secure Connections
11   *    -- Controller Scan
12   *    -- Controller Data Length Extension
13   *    -- LE 2M/Coded PHY
14   *    -- Extended Advertising
15   *    -- Periodic Advertising and Synchronizer
16   *    -- Periodic Advertising with Responses
17   *    -- L2CAP Connection Oriented Channels
18   *    -- Constant Tone Extension
19   *    -- Power Control & Path Loss Monitoring
20   *    -- Connection Support
21   *    -- LE Channel Classification
22   *    -- Broadcast Isochronous Streams
23   *    -- Connected Isochronous Streams
24   ******************************************************************************
25   * @attention
26   *
27   * Copyright (c) 2024 STMicroelectronics.
28   * All rights reserved.
29   *
30   * This software is licensed under terms that can be found in the LICENSE file
31   * in the root directory of this software component.
32   * If no LICENSE file comes with this software, it is provided AS-IS.
33   *
34   ******************************************************************************
35   */
36 
37 
38 #include "ble_stack_user_cfg.h"
39 
40 /* check whether all the configuration flag macros are defined */
41 #if !defined(CFG_BLE_CONTROLLER_PRIVACY_ENABLED)
42 #   error "CFG_BLE_CONTROLLER_PRIVACY_ENABLED is not defined"
43 #endif
44 #if !defined(CFG_BLE_SECURE_CONNECTIONS_ENABLED)
45 #   error "CFG_BLE_SECURE_CONNECTIONS_ENABLED is not defined"
46 #endif
47 #if !defined(CFG_BLE_CONTROLLER_SCAN_ENABLED)
48 #   error "CFG_BLE_CONTROLLER_SCAN_ENABLED is not defined"
49 #endif
50 #if !defined(CFG_BLE_CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED)
51 #   error "CFG_BLE_CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED is not defined"
52 #endif
53 #if !defined(CFG_BLE_CONTROLLER_2M_CODED_PHY_ENABLED)
54 #   error "CFG_BLE_CONTROLLER_2M_CODED_PHY_ENABLED is not defined"
55 #endif
56 #if !defined(CFG_BLE_CONTROLLER_EXT_ADV_SCAN_ENABLED)
57 #   error "CFG_BLE_CONTROLLER_EXT_ADV_SCAN_ENABLED is not defined"
58 #endif
59 #if !defined(CFG_BLE_L2CAP_COS_ENABLED)
60 #   error "CFG_BLE_L2CAP_COS_ENABLED is not defined"
61 #endif
62 #if !defined(CFG_BLE_CONTROLLER_PERIODIC_ADV_ENABLED)
63 #   error "CFG_BLE_CONTROLLER_PERIODIC_ADV_ENABLED is not defined"
64 #endif
65 #if !defined(CFG_BLE_CONTROLLER_CTE_ENABLED)
66 #   error "CFG_BLE_CONTROLLER_CTE_ENABLED is not defined"
67 #endif
68 #if !defined(CFG_BLE_CONTROLLER_POWER_CONTROL_ENABLED)
69 #   error "CFG_BLE_CONTROLLER_POWER_CONTROL_ENABLED is not defined"
70 #endif
71 #if !defined(CFG_BLE_CONNECTION_ENABLED)
72 #   error "CFG_BLE_CONNECTION_ENABLED is not defined"
73 #endif
74 #if !defined(CFG_BLE_CONTROLLER_CHAN_CLASS_ENABLED)
75 #   error "CFG_BLE_CONTROLLER_CHAN_CLASS_ENABLED is not defined"
76 #endif
77 #if !defined(CFG_BLE_CONTROLLER_BIS_ENABLED)
78 #   error "CFG_BLE_CONTROLLER_BIS_ENABLED is not defined"
79 #endif
80 #if !defined(CFG_BLE_CONNECTION_SUBRATING_ENABLED)
81 #   error "CFG_BLE_CONNECTION_SUBRATING_ENABLED is not defined"
82 #endif
83 #if !defined(CFG_BLE_CONTROLLER_CIS_ENABLED)
84 #   error "(CFG_BLE_CONTROLLER_CIS_ENABLED is not defined"
85 #endif
86 #if !defined(CONTROLLER_ISO_ENABLED)
87 #   error "CONTROLLER_ISO_ENABLED is not defined"
88 #endif
89 #if !defined(CFG_BLE_CONTROLLER_PERIODIC_ADV_WR_ENABLED)
90 #   error "CFG_BLE_CONTROLLER_PERIODIC_ADV_WR_ENABLED is not defined"
91 #endif
92 
93 /* check whether all the dependencies between the configuration flag macros are met */
94 #if (SECURE_CONNECTIONS_ENABLED == 1) && \
95     (CONNECTION_ENABLED == 0)
96 #   error "SECURE_CONNECTIONS_ENABLED cannot be 1"
97 #endif
98 #if (L2CAP_COS_ENABLED == 1) && \
99     (CONNECTION_ENABLED == 0)
100 #   error "L2CAP_COS_ENABLED cannot be 1"
101 #endif
102 #if (CONTROLLER_PERIODIC_ADV_ENABLED == 1) && \
103     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 0)
104 #   error "CONTROLLER_PERIODIC_ADV_ENABLED cannot be 1"
105 #endif
106 #if (CONTROLLER_POWER_CONTROL_ENABLED == 1) && \
107     (CONNECTION_ENABLED == 0)
108 #   error "CONTROLLER_POWER_CONTROL_ENABLED cannot be 1"
109 #endif
110 #if (CONTROLLER_CHAN_CLASS_ENABLED == 1) && \
111     (CONNECTION_ENABLED == 0)
112 #   error "CONTROLLER_CHAN_CLASS_ENABLED cannot be 1"
113 #endif
114 #if (CONTROLLER_BIS_ENABLED == 1) && \
115    ((CONTROLLER_EXT_ADV_SCAN_ENABLED == 0) || \
116     (CONTROLLER_PERIODIC_ADV_ENABLED == 0) || \
117     (CONTROLLER_ISO_ENABLED == 0))
118 #   error "CONTROLLER_BIS_ENABLED cannot be 1"
119 #endif
120 #if (CONNECTION_SUBRATING_ENABLED == 1) && \
121     (CONNECTION_ENABLED == 0)
122 #   error "CONNECTION_SUBRATING_ENABLED cannot be 1"
123 #endif
124 #if (CONTROLLER_CIS_ENABLED == 1) && \
125    ((CONNECTION_ENABLED == 0) || \
126     (CONTROLLER_ISO_ENABLED == 0))
127 #   error "CONTROLLER_CIS_ENABLED cannot be 1"
128 #endif
129 #if (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1) && \
130    ((CONTROLLER_EXT_ADV_SCAN_ENABLED == 0) || \
131     (CONTROLLER_PERIODIC_ADV_ENABLED == 0) || \
132     (CONNECTION_ENABLED == 0))
133 #   error "CONTROLLER_PERIODIC_ADV_WR_ENABLED cannot be 1"
134 #endif
135 
136 
137 /*
138 * *****************************************************************************
139 *                      BLE Stack INTERNAL core functions
140 * *****************************************************************************
141 */
142 
143 #if (BLESTACK_CONTROLLER_ONLY == 0)
144 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_set_advertising_configuration_ucfg(uint8_t Advertising_Handle,uint8_t Discoverability_Mode,uint16_t Advertising_Event_Properties,uint32_t Primary_Advertising_Interval_Min,uint32_t Primary_Advertising_Interval_Max,uint8_t Primary_Advertising_Channel_Map,uint8_t Peer_Address_Type,uint8_t Peer_Address[6],uint8_t Advertising_Filter_Policy,int8_t Advertising_Tx_Power,uint8_t Primary_Advertising_PHY,uint8_t Secondary_Advertising_Max_Skip,uint8_t Secondary_Advertising_PHY,uint8_t Advertising_SID,uint8_t Scan_Request_Notification_Enable)145 tBleStatus GAP_set_advertising_configuration_ucfg(uint8_t Advertising_Handle,
146                                                   uint8_t Discoverability_Mode,
147                                                   uint16_t Advertising_Event_Properties,
148                                                   uint32_t Primary_Advertising_Interval_Min,
149                                                   uint32_t Primary_Advertising_Interval_Max,
150                                                   uint8_t Primary_Advertising_Channel_Map,
151                                                   uint8_t Peer_Address_Type,
152                                                   uint8_t Peer_Address[6],
153                                                   uint8_t Advertising_Filter_Policy,
154                                                   int8_t Advertising_Tx_Power,
155                                                   uint8_t Primary_Advertising_PHY,
156                                                   uint8_t Secondary_Advertising_Max_Skip,
157                                                   uint8_t Secondary_Advertising_PHY,
158                                                   uint8_t Advertising_SID,
159                                                   uint8_t Scan_Request_Notification_Enable)
160 {
161     return GAP_set_extended_advertising_configuration(Advertising_Handle,
162                                                       Discoverability_Mode,
163                                                       Advertising_Event_Properties,
164                                                       Primary_Advertising_Interval_Min,
165                                                       Primary_Advertising_Interval_Max,
166                                                       Primary_Advertising_Channel_Map,
167                                                       Peer_Address_Type,
168                                                       Peer_Address,
169                                                       Advertising_Filter_Policy,
170                                                       Advertising_Tx_Power,
171                                                       Primary_Advertising_PHY,
172                                                       Secondary_Advertising_Max_Skip,
173                                                       Secondary_Advertising_PHY,
174                                                       Advertising_SID,
175                                                       Scan_Request_Notification_Enable);
176 }
177 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
178 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
179 
180 #if (BLESTACK_CONTROLLER_ONLY == 0)
181 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_set_scan_response_data_ucfg(uint8_t Advertising_Handle,uint16_t Scan_Response_Data_Length,uint8_t * Scan_Response_Data)182 tBleStatus GAP_set_scan_response_data_ucfg(uint8_t Advertising_Handle,
183                                            uint16_t Scan_Response_Data_Length,
184                                            uint8_t* Scan_Response_Data)
185 {
186     return GAP_set_extended_scan_response_data(Advertising_Handle,
187                                                Scan_Response_Data_Length,
188                                                Scan_Response_Data);
189 }
190 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
191 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
192 
193 #if (BLESTACK_CONTROLLER_ONLY == 0)
194 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_set_advertising_data_ucfg(uint8_t Advertising_Handle,uint8_t Operation,uint16_t Advertising_Data_Length,uint8_t * Advertising_Data)195 tBleStatus GAP_set_advertising_data_ucfg(uint8_t Advertising_Handle,
196                                          uint8_t Operation,
197                                          uint16_t Advertising_Data_Length,
198                                          uint8_t* Advertising_Data)
199 {
200     return GAP_set_extended_advertising_data(Advertising_Handle,
201                                              Operation,
202                                              Advertising_Data_Length,
203                                              Advertising_Data);
204 }
205 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
206 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
207 
208 #if (BLESTACK_CONTROLLER_ONLY == 0)
209 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_set_advertising_enable_ucfg(uint8_t Enable,uint8_t Num_Of_Sets,Advertising_Set_Parameters_t * Advertising_Set_Parameters)210 tBleStatus GAP_set_advertising_enable_ucfg(uint8_t Enable,
211                                            uint8_t Num_Of_Sets,
212                                            Advertising_Set_Parameters_t* Advertising_Set_Parameters)
213 {
214     return GAP_set_extended_advertising_enable(Enable,
215                                                Num_Of_Sets,
216                                                Advertising_Set_Parameters);
217 }
218 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
219 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
220 
221 #if (BLESTACK_CONTROLLER_ONLY == 0)
222 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
223     (CONNECTION_ENABLED == 1)
GAP_create_connection_ucfg(uint8_t * peer_address,uint8_t peer_address_type,uint8_t own_address_type,uint8_t initiator_filter_policy,uint8_t phys)224 tBleStatus GAP_create_connection_ucfg(uint8_t* peer_address,
225                                       uint8_t peer_address_type,
226                                       uint8_t own_address_type,
227                                       uint8_t initiator_filter_policy,
228                                       uint8_t phys)
229 {
230     return GAP_create_connection_ext(peer_address,
231                                      peer_address_type,
232                                      own_address_type,
233                                      initiator_filter_policy,
234                                      phys);
235 }
236 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
237           (CONNECTION_ENABLED == 1) */
238 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
239 
240 #if (BLESTACK_CONTROLLER_ONLY == 0)
241 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_set_scan_parameters_ucfg(uint8_t own_address_type,uint8_t phys)242 tBleStatus GAP_set_scan_parameters_ucfg(uint8_t own_address_type,
243                                         uint8_t phys)
244 {
245     return GAP_set_scan_parameters_ext(own_address_type,
246                                        phys);
247 }
248 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
249 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
250 
251 #if (BLESTACK_CONTROLLER_ONLY == 0)
252 #if (CONTROLLER_SCAN_ENABLED == 1)
253 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_enable_disable_scan_ucfg(uint8_t enable,uint8_t duplicate_filtering)254 tBleStatus GAP_enable_disable_scan_ucfg(uint8_t enable,
255                                         uint8_t duplicate_filtering)
256 {
257     return GAP_enable_disable_scan_ext(enable,
258                                        duplicate_filtering);
259 }
260 #else
GAP_enable_disable_scan_ucfg(uint8_t enable,uint8_t duplicate_filtering)261 tBleStatus GAP_enable_disable_scan_ucfg(uint8_t enable,
262                                         uint8_t duplicate_filtering)
263 {
264     return GAP_enable_disable_scan_legacy(enable,
265                                           duplicate_filtering);
266 }
267 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
268 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
269 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
270 
271 #if (BLESTACK_CONTROLLER_ONLY == 0)
272 #if (CONNECTION_ENABLED == 1)
GAP_connection_procedure_ucfg(uint8_t procedure_code,uint8_t phys,uint8_t peer_address_type,uint8_t peer_address[6])273 tBleStatus GAP_connection_procedure_ucfg(uint8_t procedure_code,
274                                          uint8_t phys,
275                                          uint8_t peer_address_type,
276                                          uint8_t peer_address[6])
277 {
278     return GAP_connection_procedure(procedure_code,
279                                     phys,
280                                     peer_address_type,
281                                     peer_address);
282 }
283 #endif /* (CONNECTION_ENABLED == 1) */
284 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
285 
286 #if (BLESTACK_CONTROLLER_ONLY == 0)
287 #if (CONNECTION_ENABLED == 1)
GAP_terminate_gap_procedure_ucfg(uint8_t procedure_code)288 tBleStatus GAP_terminate_gap_procedure_ucfg(uint8_t procedure_code)
289 {
290     return GAP_terminate_gap_procedure(procedure_code);
291 }
292 #endif /* (CONNECTION_ENABLED == 1) */
293 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
294 
295 #if (BLESTACK_CONTROLLER_ONLY == 0)
296 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
297     (CONNECTION_ENABLED == 1)
GAP_discover_peer_name_ucfg(void)298 tBleStatus GAP_discover_peer_name_ucfg(void)
299 {
300     return GAP_discover_peer_name();
301 }
302 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
303           (CONNECTION_ENABLED == 1) */
304 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
305 
306 #if (BLESTACK_CONTROLLER_ONLY == 0)
307 #if (CONNECTION_ENABLED == 1)
GAP_name_disc_proc_connected_check_ucfg(uint16_t task_idx)308 void GAP_name_disc_proc_connected_check_ucfg(uint16_t task_idx)
309 {
310     GAP_name_disc_proc_connected_check(task_idx);
311 }
312 #endif /* (CONNECTION_ENABLED == 1) */
313 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
314 
315 #if (BLESTACK_CONTROLLER_ONLY == 0)
316 #if (\
317      (CONNECTION_ENABLED == 1)\
318      &&\
319      (\
320       (CONTROLLER_SCAN_ENABLED == 1)\
321       ||\
322       (\
323        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
324        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
325        (CONNECTION_ENABLED == 1) &&\
326        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
327       )\
328      )\
329     )
GAP_central_connection_complete_handler_ucfg(uint8_t status,uint16_t connectionHandle)330 void GAP_central_connection_complete_handler_ucfg(uint8_t status,
331                                                   uint16_t connectionHandle)
332 {
333     GAP_central_connection_complete_handler(status,
334                                             connectionHandle);
335 }
336 #endif
337 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
338 
339 #if (BLESTACK_CONTROLLER_ONLY == 0)
340 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
341     (CONNECTION_ENABLED == 1)
GAP_parse_connectable_advertising_report_ucfg(uint8_t * adv_buf,uint8_t extended)342 uint8_t GAP_parse_connectable_advertising_report_ucfg(uint8_t* adv_buf,
343                                                    uint8_t extended)
344 {
345     return GAP_parse_connectable_advertising_report(adv_buf,
346                                                     extended);
347 }
348 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
349           (CONNECTION_ENABLED == 1) */
350 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
351 
352 #if (BLESTACK_CONTROLLER_ONLY == 0)
353 #if (CONTROLLER_SCAN_ENABLED == 1)
GAP_parse_advertising_report_ucfg(uint8_t * adv_buf,uint8_t extended)354 uint8_t GAP_parse_advertising_report_ucfg(uint8_t* adv_buf,
355                                        uint8_t extended)
356 {
357     return GAP_parse_advertising_report(adv_buf,
358                                         extended);
359 }
360 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
361 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
362 
363 #if (BLESTACK_CONTROLLER_ONLY == 0)
364 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
365     (CONNECTION_ENABLED == 1)
GAP_DiscProcTimeoutcb_ucfg(uint8_t timer_id)366 void GAP_DiscProcTimeoutcb_ucfg(uint8_t timer_id)
367 {
368     GAP_DiscProcTimeoutcb(timer_id);
369 }
370 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
371           (CONNECTION_ENABLED == 1) */
372 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
373 
374 #if (BLESTACK_CONTROLLER_ONLY == 0)
375 #if (CONNECTION_ENABLED == 1)
GAP_LimDiscTimeoutcb_ucfg(uint8_t timer_id)376 void GAP_LimDiscTimeoutcb_ucfg(uint8_t timer_id)
377 {
378     GAP_LimDiscTimeoutcb(timer_id);
379 }
380 #endif /* (CONNECTION_ENABLED == 1) */
381 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
382 
383 #if (BLESTACK_CONTROLLER_ONLY == 0)
384 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_hci_le_advertising_set_terminated_evt_hndl_ucfg(uint8_t status,uint8_t Advertising_Handle)385 void GAP_hci_le_advertising_set_terminated_evt_hndl_ucfg(uint8_t status,
386                                                          uint8_t Advertising_Handle)
387 {
388     GAP_hci_le_advertising_set_terminated_evt_hndl(status,
389                                                    Advertising_Handle);
390 }
391 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
392 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
393 
394 #if (BLESTACK_CONTROLLER_ONLY == 0)
395 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
396     (CONNECTION_ENABLED == 1)
GAP_peripheral_connection_complete_handler_ucfg(uint16_t connectionHandle)397 void GAP_peripheral_connection_complete_handler_ucfg(uint16_t connectionHandle)
398 {
399     GAP_peripheral_connection_complete_handler(connectionHandle);
400 }
401 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
402           (CONNECTION_ENABLED == 1) */
403 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
404 
405 #if (BLESTACK_CONTROLLER_ONLY == 0)
406 #if (CONTROLLER_PRIVACY_ENABLED == 1)
GAP_enable_controller_privacy_ucfg(uint8_t * gapRole,uint8_t * numServiceRec)407 tBleStatus GAP_enable_controller_privacy_ucfg(uint8_t* gapRole,
408                                               uint8_t* numServiceRec)
409 {
410     return GAP_enable_controller_privacy(gapRole,
411                                          numServiceRec);
412 }
413 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
414 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
415 
416 #if (BLESTACK_CONTROLLER_ONLY == 0)
417 #if (CONTROLLER_PRIVACY_ENABLED == 1)
GAP_add_device_to_filter_accept_and_resolving_list_ucfg(uint8_t lists,uint8_t addr_type,uint8_t addr[6])418 tBleStatus GAP_add_device_to_filter_accept_and_resolving_list_ucfg(uint8_t lists,
419                                                                    uint8_t addr_type,
420                                                                    uint8_t addr[6])
421 {
422     return GAP_add_device_to_filter_accept_and_resolving_list_full(lists,
423                                                                    addr_type,
424                                                                    addr);
425 }
426 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
427 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
428 
429 #if (BLESTACK_CONTROLLER_ONLY == 0)
430 #if (CONTROLLER_PRIVACY_ENABLED == 1)
GAP_clear_filter_accept_and_resolving_list_ucfg(uint8_t lists)431 tBleStatus GAP_clear_filter_accept_and_resolving_list_ucfg(uint8_t lists)
432 {
433     return GAP_clear_filter_accept_and_resolving_list_full(lists);
434 }
435 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
436 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
437 
438 #if (BLESTACK_CONTROLLER_ONLY == 0)
439 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_set_controller_random_address_ucfg(uint8_t random_address[6])440 tBleStatus GAP_set_controller_random_address_ucfg(uint8_t random_address[6])
441 {
442     return GAP_set_controller_random_address_extended(random_address);
443 }
444 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
445 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
446 
447 #if (BLESTACK_CONTROLLER_ONLY == 0)
448 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_init_advertising_sets_ucfg(uint8_t own_address_type)449 tBleStatus GAP_init_advertising_sets_ucfg(uint8_t own_address_type)
450 {
451     return GAP_init_advertising_sets(own_address_type);
452 }
453 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
454 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
455 
456 #if (BLESTACK_CONTROLLER_ONLY == 0)
457 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_suspend_resume_active_advertising_sets_ucfg(uint8_t resume)458 tBleStatus GAP_suspend_resume_active_advertising_sets_ucfg(uint8_t resume)
459 {
460     return GAP_suspend_resume_active_advertising_sets_extended(resume);
461 }
462 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
463 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
464 
465 #if (BLESTACK_CONTROLLER_ONLY == 0)
466 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
GAP_ResumeAdvertising_ucfg(uint16_t task_idx)467 void GAP_ResumeAdvertising_ucfg(uint16_t task_idx)
468 {
469     GAP_ResumeAdvertising(task_idx);
470 }
471 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
472 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
473 
474 #if (CONNECTION_ENABLED == 1)
hci_acl_data_tx_cmpl_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)475 tBleStatus hci_acl_data_tx_cmpl_event_int_cb_ucfg(void* header_p,
476                                                   uint8_t* buff_p)
477 {
478     return hci_acl_data_tx_cmpl_event_int_cb(header_p,
479                                              buff_p);
480 }
481 #endif /* (CONNECTION_ENABLED == 1) */
482 
483 #if (CONNECTION_ENABLED == 1)
hci_acl_data_ind_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)484 tBleStatus hci_acl_data_ind_event_int_cb_ucfg(void* header_p,
485                                               uint8_t* buff_p)
486 {
487     return hci_acl_data_ind_event_int_cb(header_p,
488                                          buff_p);
489 }
490 #endif /* (CONNECTION_ENABLED == 1) */
491 
492 #if ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
493     (CONNECTION_ENABLED == 1))
chc_csr_ucfg(void)494 uint32_t chc_csr_ucfg(void)
495 {
496     return chc_csr();
497 }
498 #endif /* ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
499           (CONNECTION_ENABLED == 1)) */
500 
501 #if (CONNECTION_ENABLED == 1)
Controller_Process_Q_ucfg(uint16_t task_idx)502 void Controller_Process_Q_ucfg(uint16_t task_idx)
503 {
504     Controller_Process_Q(task_idx);
505 }
506 #endif /* (CONNECTION_ENABLED == 1) */
507 
508 #if (CONNECTION_ENABLED == 1)
LLC_offline_control_procedures_processing_ucfg(uint16_t task_idx)509 void LLC_offline_control_procedures_processing_ucfg(uint16_t task_idx)
510 {
511     LLC_offline_control_procedures_processing(task_idx);
512 }
513 #endif /* (CONNECTION_ENABLED == 1) */
514 
515 #if (CONTROLLER_CTE_ENABLED == 1)
cte_csr_ucfg(void)516 uint32_t cte_csr_ucfg(void)
517 {
518     return cte_csr();
519 }
520 #endif /* (CONTROLLER_CTE_ENABLED == 1) */
521 
522 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_check_own_address_type_max_value_ucfg(void)523 uint8_t hci_le_check_own_address_type_max_value_ucfg(void)
524 {
525     return hci_le_check_own_address_type_max_value();
526 }
527 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
528 
529 #if (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1)
data_length_extension_csr_ucfg(void)530 uint32_t data_length_extension_csr_ucfg(void)
531 {
532     return data_length_extension_csr();
533 }
534 #endif /* (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) */
535 
536 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
537     (CONNECTION_ENABLED == 1))
pcl_csr_ucfg(void)538 uint32_t pcl_csr_ucfg(void)
539 {
540     return pcl_csr();
541 }
542 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
543           (CONNECTION_ENABLED == 1)) */
544 
545 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1)
phy_upd_csr_ucfg(void)546 uint32_t phy_upd_csr_ucfg(void)
547 {
548     return phy_upd_csr();
549 }
550 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) */
551 
552 #if (CONTROLLER_SCAN_ENABLED == 1)
scan_csr_ucfg(void)553 uint32_t scan_csr_ucfg(void)
554 {
555     return scan_csr();
556 }
557 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
558 
559 #if (CONNECTION_ENABLED == 1)
conn_supp_csr_ucfg(void)560 uint32_t conn_supp_csr_ucfg(void)
561 {
562     return conn_supp_csr();
563 }
564 #endif /* (CONNECTION_ENABLED == 1) */
565 
566 #if ((CONNECTION_SUBRATING_ENABLED == 1) &&\
567     (CONNECTION_ENABLED == 1))
subrate_csr_ucfg(void)568 uint32_t subrate_csr_ucfg(void)
569 {
570     return subrate_csr();
571 }
572 #endif /* ((CONNECTION_SUBRATING_ENABLED == 1) &&\
573           (CONNECTION_ENABLED == 1)) */
574 
575 #if (CONTROLLER_CTE_ENABLED == 1)
LLC_test_check_cte_params_ucfg(void * params)576 tBleStatus LLC_test_check_cte_params_ucfg(void* params)
577 {
578     return LLC_test_check_cte_params(params);
579 }
580 #endif /* (CONTROLLER_CTE_ENABLED == 1) */
581 
582 #if (CONNECTION_ENABLED == 1)
ACL_pkt_init_ucfg(void)583 tBleStatus ACL_pkt_init_ucfg(void)
584 {
585     return ACL_pkt_init();
586 }
587 #endif /* (CONNECTION_ENABLED == 1) */
588 
589 #if (CONNECTION_ENABLED == 1)
hci_disconnection_complete_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)590 tBleStatus hci_disconnection_complete_event_int_cb_ucfg(void* header_p,
591                                                         uint8_t* buff_p)
592 {
593     return hci_disconnection_complete_event_int_cb(header_p,
594                                                    buff_p);
595 }
596 #endif /* (CONNECTION_ENABLED == 1) */
597 
598 #if (CONNECTION_ENABLED == 1)
hci_encryption_change_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)599 tBleStatus hci_encryption_change_event_int_cb_ucfg(void* header_p,
600                                                    uint8_t* buff_p)
601 {
602     return hci_encryption_change_event_int_cb(header_p,
603                                               buff_p);
604 }
605 #endif /* (CONNECTION_ENABLED == 1) */
606 
607 #if (CONNECTION_ENABLED == 1)
hci_encryption_key_refresh_complete_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)608 tBleStatus hci_encryption_key_refresh_complete_event_int_cb_ucfg(void* header_p,
609                                                                  uint8_t* buff_p)
610 {
611     return hci_encryption_key_refresh_complete_event_int_cb(header_p,
612                                                             buff_p);
613 }
614 #endif /* (CONNECTION_ENABLED == 1) */
615 
616 #if (CONNECTION_ENABLED == 1)
hci_le_connection_complete_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)617 tBleStatus hci_le_connection_complete_event_int_cb_ucfg(void* header_p,
618                                                         uint8_t* buff_p)
619 {
620     return hci_le_connection_complete_event_int_cb(header_p,
621                                                    buff_p);
622 }
623 #endif /* (CONNECTION_ENABLED == 1) */
624 
625 #if (CONNECTION_ENABLED == 1)
hci_le_enhanced_connection_complete_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)626 tBleStatus hci_le_enhanced_connection_complete_event_int_cb_ucfg(void* header_p,
627                                                                  uint8_t* buff_p)
628 {
629     return hci_le_enhanced_connection_complete_event_int_cb(header_p,
630                                                             buff_p);
631 }
632 #endif /* (CONNECTION_ENABLED == 1) */
633 
634 #if (CONNECTION_ENABLED == 1)
hci_le_long_term_key_request_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)635 tBleStatus hci_le_long_term_key_request_event_int_cb_ucfg(void* header_p,
636                                                           uint8_t* buff_p)
637 {
638     return hci_le_long_term_key_request_event_int_cb(header_p,
639                                                      buff_p);
640 }
641 #endif /* (CONNECTION_ENABLED == 1) */
642 
643 #if (CONNECTION_ENABLED == 1)
hci_le_read_local_p256_public_key_complete_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)644 tBleStatus hci_le_read_local_p256_public_key_complete_event_int_cb_ucfg(void* header_p,
645                                                                         uint8_t* buff_p)
646 {
647     return hci_le_read_local_p256_public_key_complete_event_int_cb(header_p,
648                                                                    buff_p);
649 }
650 #endif /* (CONNECTION_ENABLED == 1) */
651 
652 #if (CONNECTION_ENABLED == 1)
hci_le_generate_dhkey_complete_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)653 tBleStatus hci_le_generate_dhkey_complete_event_int_cb_ucfg(void* header_p,
654                                                             uint8_t* buff_p)
655 {
656     return hci_le_generate_dhkey_complete_event_int_cb(header_p,
657                                                        buff_p);
658 }
659 #endif /* (CONNECTION_ENABLED == 1) */
660 
661 #if (CONTROLLER_SCAN_ENABLED == 1)
hci_le_advertising_report_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)662 tBleStatus hci_le_advertising_report_event_int_cb_ucfg(void* header_p,
663                                                        uint8_t* buff_p)
664 {
665     return hci_le_advertising_report_event_int_cb(header_p,
666                                                   buff_p);
667 }
668 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
669 
670 #if (CONTROLLER_PRIVACY_ENABLED == 1) &&\
671     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_directed_advertising_report_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)672 tBleStatus hci_le_directed_advertising_report_event_int_cb_ucfg(void* header_p,
673                                                                 uint8_t* buff_p)
674 {
675     return hci_le_directed_advertising_report_event_int_cb(header_p,
676                                                            buff_p);
677 }
678 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) &&\
679           (CONTROLLER_SCAN_ENABLED == 1) */
680 
681 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
682     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_extended_advertising_report_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)683 tBleStatus hci_le_extended_advertising_report_event_int_cb_ucfg(void* header_p,
684                                                                 uint8_t* buff_p)
685 {
686     return hci_le_extended_advertising_report_event_int_cb(header_p,
687                                                            buff_p);
688 }
689 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
690           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
691 
692 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
693     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_scan_timeout_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)694 tBleStatus hci_le_scan_timeout_event_int_cb_ucfg(void* header_p,
695                                                  uint8_t* buff_p)
696 {
697     return hci_le_scan_timeout_event_int_cb(header_p,
698                                             buff_p);
699 }
700 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
701           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
702 
703 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_advertising_set_terminated_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)704 tBleStatus hci_le_advertising_set_terminated_event_int_cb_ucfg(void* header_p,
705                                                                uint8_t* buff_p)
706 {
707     return hci_le_advertising_set_terminated_event_int_cb(header_p,
708                                                           buff_p);
709 }
710 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
711 
712 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
713     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
714     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
715     (CONNECTION_ENABLED == 1)
hci_le_enhanced_connection_complete_v2_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)716 tBleStatus hci_le_enhanced_connection_complete_v2_event_int_cb_ucfg(void* header_p,
717                                                                     uint8_t* buff_p)
718 {
719     return hci_le_enhanced_connection_complete_v2_event_int_cb(header_p,
720                                                                buff_p);
721 }
722 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
723           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
724           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
725           (CONNECTION_ENABLED == 1) */
726 
727 #if (CONNECTION_ENABLED == 1) ||\
728     (CONTROLLER_ISO_ENABLED == 1)
MBM_init_ucfg(void)729 tBleStatus MBM_init_ucfg(void)
730 {
731     return MBM_init();
732 }
733 #endif /* (CONNECTION_ENABLED == 1) ||\
734           (CONTROLLER_ISO_ENABLED == 1) */
735 
736 #if (BLESTACK_CONTROLLER_ONLY == 0)
737 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
738     (CONNECTION_ENABLED == 1))
secure_connections_csr_ucfg(void)739 uint32_t secure_connections_csr_ucfg(void)
740 {
741     return secure_connections_csr();
742 }
743 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
744           (CONNECTION_ENABLED == 1)) */
745 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
746 
747 #if (BLESTACK_CONTROLLER_ONLY == 0)
748 #if (CONNECTION_ENABLED == 1)
smp_sap_scp_force_debug_key_usage_ucfg(uint8_t config_val)749 tBleStatus smp_sap_scp_force_debug_key_usage_ucfg(uint8_t config_val)
750 {
751     return smp_sap_scp_force_debug_key_usage(config_val);
752 }
753 #endif /* (CONNECTION_ENABLED == 1) */
754 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
755 
756 #if (BLESTACK_CONTROLLER_ONLY == 0)
757 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
758     (CONNECTION_ENABLED == 1))
smp_sap_hci_le_read_local_p256_public_key_complete_evt_hndl_ucfg(uint8_t status,uint8_t local_p256_public_key[64])759 void smp_sap_hci_le_read_local_p256_public_key_complete_evt_hndl_ucfg(uint8_t status,
760                                                                       uint8_t local_p256_public_key[64])
761 {
762     smp_sap_hci_le_read_local_p256_public_key_complete_evt_hndl(status,
763                                                                 local_p256_public_key);
764 }
765 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
766           (CONNECTION_ENABLED == 1)) */
767 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
768 
769 #if (BLESTACK_CONTROLLER_ONLY == 0)
770 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
771     (CONNECTION_ENABLED == 1))
smp_sap_hci_le_generate_dhkey_complete_evt_hndl_ucfg(uint8_t status,uint8_t dhkey[32])772 void smp_sap_hci_le_generate_dhkey_complete_evt_hndl_ucfg(uint8_t status,
773                                                           uint8_t dhkey[32])
774 {
775     smp_sap_hci_le_generate_dhkey_complete_evt_hndl(status,
776                                                     dhkey);
777 }
778 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
779           (CONNECTION_ENABLED == 1)) */
780 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
781 
782 #if (BLESTACK_CONTROLLER_ONLY == 0)
783 #if ((L2CAP_COS_ENABLED == 1) &&\
784     (CONNECTION_ENABLED == 1))
l2c_cos_csr_ucfg(void)785 uint32_t l2c_cos_csr_ucfg(void)
786 {
787     return l2c_cos_csr();
788 }
789 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
790           (CONNECTION_ENABLED == 1)) */
791 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
792 
793 #if (BLESTACK_CONTROLLER_ONLY == 0)
794 #if ((L2CAP_COS_ENABLED == 1) &&\
795     (CONNECTION_ENABLED == 1))
L2C_cos_cfc_init_ucfg(void)796 tBleStatus L2C_cos_cfc_init_ucfg(void)
797 {
798     return L2C_cos_cfc_init();
799 }
800 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
801           (CONNECTION_ENABLED == 1)) */
802 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
803 
804 #if (BLESTACK_CONTROLLER_ONLY == 0)
805 #if ((L2CAP_COS_ENABLED == 1) &&\
806     (CONNECTION_ENABLED == 1))
l2c_cos_process_pending_actions_tsk_ucfg(uint16_t task_idx)807 void l2c_cos_process_pending_actions_tsk_ucfg(uint16_t task_idx)
808 {
809     l2c_cos_process_pending_actions_tsk(task_idx);
810 }
811 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
812           (CONNECTION_ENABLED == 1)) */
813 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
814 
815 #if (BLESTACK_CONTROLLER_ONLY == 0)
816 #if ((L2CAP_COS_ENABLED == 1) &&\
817     (CONNECTION_ENABLED == 1))
L2C_cos_physical_link_disconnection_hndl_ucfg(uint16_t connection_handle)818 void L2C_cos_physical_link_disconnection_hndl_ucfg(uint16_t connection_handle)
819 {
820     L2C_cos_physical_link_disconnection_hndl(connection_handle);
821 }
822 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
823           (CONNECTION_ENABLED == 1)) */
824 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
825 
826 #if (BLESTACK_CONTROLLER_ONLY == 0)
827 #if ((L2CAP_COS_ENABLED == 1) &&\
828     (CONNECTION_ENABLED == 1))
L2C_cos_process_cfc_mode_command_ucfg(void * params)829 tBleStatus L2C_cos_process_cfc_mode_command_ucfg(void* params)
830 {
831     return L2C_cos_process_cfc_mode_command(params);
832 }
833 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
834           (CONNECTION_ENABLED == 1)) */
835 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
836 
837 #if (BLESTACK_CONTROLLER_ONLY == 0)
838 #if ((L2CAP_COS_ENABLED == 1) &&\
839     (CONNECTION_ENABLED == 1))
L2C_cos_is_pdu_cframe_cfc_command_opcode_ucfg(uint8_t opCode)840 uint8_t L2C_cos_is_pdu_cframe_cfc_command_opcode_ucfg(uint8_t opCode)
841 {
842     return L2C_cos_is_pdu_cframe_cfc_command_opcode(opCode);
843 }
844 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
845           (CONNECTION_ENABLED == 1)) */
846 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
847 
848 #if (BLESTACK_CONTROLLER_ONLY == 0)
849 #if ((L2CAP_COS_ENABLED == 1) &&\
850     (CONNECTION_ENABLED == 1))
l2c_cos_hndl_incoming_le_frame_ucfg(void * params)851 tBleStatus l2c_cos_hndl_incoming_le_frame_ucfg(void* params)
852 {
853     return l2c_cos_hndl_incoming_le_frame(params);
854 }
855 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
856           (CONNECTION_ENABLED == 1)) */
857 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
858 
859 #if (BLESTACK_CONTROLLER_ONLY == 0)
860 #if ((L2CAP_COS_ENABLED == 1) &&\
861     (CONNECTION_ENABLED == 1))
l2c_cos_sdu_reassembly_tsk_ucfg(uint16_t task_idx)862 void l2c_cos_sdu_reassembly_tsk_ucfg(uint16_t task_idx)
863 {
864     l2c_cos_sdu_reassembly_tsk(task_idx);
865 }
866 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
867           (CONNECTION_ENABLED == 1)) */
868 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
869 
870 #if (BLESTACK_CONTROLLER_ONLY == 0)
871 #if ((L2CAP_COS_ENABLED == 1) &&\
872     (CONNECTION_ENABLED == 1))
l2c_cos_sdu_enqueue_for_segmentation_ucfg(void * params)873 tBleStatus l2c_cos_sdu_enqueue_for_segmentation_ucfg(void* params)
874 {
875     return l2c_cos_sdu_enqueue_for_segmentation(params);
876 }
877 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
878           (CONNECTION_ENABLED == 1)) */
879 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
880 
881 #if (BLESTACK_CONTROLLER_ONLY == 0)
882 #if ((L2CAP_COS_ENABLED == 1) &&\
883     (CONNECTION_ENABLED == 1))
l2c_cos_sdu_segmentation_tsk_ucfg(uint16_t task_idx)884 void l2c_cos_sdu_segmentation_tsk_ucfg(uint16_t task_idx)
885 {
886     l2c_cos_sdu_segmentation_tsk(task_idx);
887 }
888 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
889           (CONNECTION_ENABLED == 1)) */
890 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
891 
892 #if (BLESTACK_CONTROLLER_ONLY == 0)
893 #if ((L2CAP_COS_ENABLED == 1))
l2c_cos_transmit_pdu_packets_tsk_ucfg(uint16_t task_idx)894 void l2c_cos_transmit_pdu_packets_tsk_ucfg(uint16_t task_idx)
895 {
896     l2c_cos_transmit_pdu_packets_tsk(task_idx);
897 }
898 #endif /* ((L2CAP_COS_ENABLED == 1)) */
899 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
900 
901 #if (BLESTACK_CONTROLLER_ONLY == 0)
902 #if (CONNECTION_ENABLED == 1)
L2C_init_ucfg(uint8_t cos_enabled)903 tBleStatus L2C_init_ucfg(uint8_t cos_enabled)
904 {
905     return L2C_init(cos_enabled);
906 }
907 #endif /* (CONNECTION_ENABLED == 1) */
908 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
909 
910 #if ((CONNECTION_SUBRATING_ENABLED == 1) &&\
911     (CONNECTION_ENABLED == 1))
llc_conn_check_subrate_and_set_params_ucfg(void * cntxt_p,void * params_p)912 void llc_conn_check_subrate_and_set_params_ucfg(void* cntxt_p,
913                                                 void* params_p)
914 {
915     llc_conn_check_subrate_and_set_params(cntxt_p,
916                                           params_p);
917 }
918 #endif /* ((CONNECTION_SUBRATING_ENABLED == 1) &&\
919           (CONNECTION_ENABLED == 1)) */
920 
921 #if ((CONNECTION_SUBRATING_ENABLED == 1) &&\
922     (CONNECTION_ENABLED == 1))
llc_conn_calc_skip_ucfg(void * cntxt_p,uint16_t event_counter,uint16_t latency)923 uint32_t llc_conn_calc_skip_ucfg(void* cntxt_p,
924                                  uint16_t event_counter,
925                                  uint16_t latency)
926 {
927     return llc_conn_calc_skip(cntxt_p,
928                               event_counter,
929                               latency);
930 }
931 #endif /* ((CONNECTION_SUBRATING_ENABLED == 1) &&\
932           (CONNECTION_ENABLED == 1)) */
933 
934 #if (CONNECTION_ENABLED == 1)
llc_conn_multi_link_connection_ucfg(uint8_t enable)935 tBleStatus llc_conn_multi_link_connection_ucfg(uint8_t enable)
936 {
937     return llc_conn_multi_link_connection(enable);
938 }
939 #endif /* (CONNECTION_ENABLED == 1) */
940 
941 #if (CONNECTION_ENABLED == 1)
llc_conn_peripheral_latency_cancellation_tsk_ucfg(uint16_t task_idx)942 void llc_conn_peripheral_latency_cancellation_tsk_ucfg(uint16_t task_idx)
943 {
944     llc_conn_peripheral_latency_cancellation_tsk(task_idx);
945 }
946 #endif /* (CONNECTION_ENABLED == 1) */
947 
948 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_check_sreq_or_creq_tx_addr_ucfg(void * tx_addr7_p,uint8_t pdu_type,uint8_t adv_event_prop,uint8_t adv_filter_policy,void * peer_id_addr7_p,void * res_peer_id_addr7_p,uint8_t * rl_index_p)949 uint8_t llc_check_sreq_or_creq_tx_addr_ucfg(void* tx_addr7_p,
950                                             uint8_t pdu_type,
951                                             uint8_t adv_event_prop,
952                                             uint8_t adv_filter_policy,
953                                             void* peer_id_addr7_p,
954                                             void* res_peer_id_addr7_p,
955                                             uint8_t* rl_index_p)
956 {
957     return llc_check_sreq_or_creq_tx_addr(tx_addr7_p,
958                                           pdu_type,
959                                           adv_event_prop,
960                                           adv_filter_policy,
961                                           peer_id_addr7_p,
962                                           res_peer_id_addr7_p,
963                                           rl_index_p);
964 }
965 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
966 
967 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_check_adv_or_srsp_or_crsp_tx_addr_ucfg(uint8_t * tx_addr7_p,uint8_t adv_pdu,uint8_t filter_policy,uint8_t * peer_id_addr7_p,uint8_t * rl_index_p,uint8_t * res_peer_id_addr7_p)968 uint8_t llc_check_adv_or_srsp_or_crsp_tx_addr_ucfg(uint8_t* tx_addr7_p,
969                                                    uint8_t adv_pdu,
970                                                    uint8_t filter_policy,
971                                                    uint8_t* peer_id_addr7_p,
972                                                    uint8_t* rl_index_p,
973                                                    uint8_t* res_peer_id_addr7_p)
974 {
975     return llc_check_adv_or_srsp_or_crsp_tx_addr(tx_addr7_p,
976                                                  adv_pdu,
977                                                  filter_policy,
978                                                  peer_id_addr7_p,
979                                                  rl_index_p,
980                                                  res_peer_id_addr7_p);
981 }
982 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
983 
984 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_check_adv_or_crsp_rx_addr_ucfg(uint8_t * rx_addr7_p,uint8_t adv_pdu,uint8_t filter_policy,uint8_t * local_addr7_p,uint8_t local_addr_type,uint8_t rl_index)985 uint8_t llc_check_adv_or_crsp_rx_addr_ucfg(uint8_t* rx_addr7_p,
986                                            uint8_t adv_pdu,
987                                            uint8_t filter_policy,
988                                            uint8_t* local_addr7_p,
989                                            uint8_t local_addr_type,
990                                            uint8_t rl_index)
991 {
992     return llc_check_adv_or_crsp_rx_addr(rx_addr7_p,
993                                          adv_pdu,
994                                          filter_policy,
995                                          local_addr7_p,
996                                          local_addr_type,
997                                          rl_index);
998 }
999 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1000 
1001 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1002     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1003     (CONTROLLER_BIS_ENABLED == 1) &&\
1004     (CONTROLLER_ISO_ENABLED == 1))
bis_csr_ucfg(void)1005 uint32_t bis_csr_ucfg(void)
1006 {
1007     return bis_csr();
1008 }
1009 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1010           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1011           (CONTROLLER_BIS_ENABLED == 1) &&\
1012           (CONTROLLER_ISO_ENABLED == 1)) */
1013 
1014 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1015     (CONNECTION_ENABLED == 1) &&\
1016     (CONTROLLER_ISO_ENABLED == 1))
cis_csr_ucfg(void)1017 uint32_t cis_csr_ucfg(void)
1018 {
1019     return cis_csr();
1020 }
1021 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1022           (CONNECTION_ENABLED == 1) &&\
1023           (CONTROLLER_ISO_ENABLED == 1)) */
1024 
1025 #if (CONTROLLER_ISO_ENABLED == 1)
llc_isoal_mem_alloc_ucfg(void)1026 void llc_isoal_mem_alloc_ucfg(void)
1027 {
1028     llc_isoal_mem_alloc();
1029 }
1030 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
1031 
1032 #if (CONTROLLER_ISO_ENABLED == 1)
iso_csr_ucfg(void)1033 uint32_t iso_csr_ucfg(void)
1034 {
1035     return iso_csr();
1036 }
1037 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
1038 
1039 #if (CONTROLLER_ISO_ENABLED == 1)
iso_rx_bn_pdu_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)1040 tBleStatus iso_rx_bn_pdu_event_int_cb_ucfg(void* header_p,
1041                                            uint8_t* buff_p)
1042 {
1043     return iso_rx_bn_pdu_event_int_cb(header_p,
1044                                       buff_p);
1045 }
1046 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
1047 
1048 #if (CONTROLLER_ISO_ENABLED == 1)
iso_terminate_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)1049 tBleStatus iso_terminate_event_int_cb_ucfg(void* header_p,
1050                                            uint8_t* buff_p)
1051 {
1052     return iso_terminate_event_int_cb(header_p,
1053                                       buff_p);
1054 }
1055 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
1056 
1057 #if (CONTROLLER_ISO_ENABLED == 1)
iso_tx_bn_pdu_event_int_cb_ucfg(void * header_p,uint8_t * buff_p)1058 tBleStatus iso_tx_bn_pdu_event_int_cb_ucfg(void* header_p,
1059                                            uint8_t* buff_p)
1060 {
1061     return iso_tx_bn_pdu_event_int_cb(header_p,
1062                                       buff_p);
1063 }
1064 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
1065 
1066 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1067     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1068     (CONTROLLER_BIS_ENABLED == 1) &&\
1069     (CONTROLLER_ISO_ENABLED == 1))
llc_big_brc_mem_alloc_ucfg(void)1070 void llc_big_brc_mem_alloc_ucfg(void)
1071 {
1072     llc_big_brc_mem_alloc();
1073 }
1074 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1075           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1076           (CONTROLLER_BIS_ENABLED == 1) &&\
1077           (CONTROLLER_ISO_ENABLED == 1)) */
1078 
1079 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1080     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1081     (CONTROLLER_BIS_ENABLED == 1) &&\
1082     (CONTROLLER_ISO_ENABLED == 1))
llc_big_brc_alloc_streams_ucfg(void * ctx,uint8_t stream_count)1083 tBleStatus llc_big_brc_alloc_streams_ucfg(void* ctx,
1084                                           uint8_t stream_count)
1085 {
1086     return llc_big_brc_alloc_streams(ctx,
1087                                      stream_count);
1088 }
1089 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1090           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1091           (CONTROLLER_BIS_ENABLED == 1) &&\
1092           (CONTROLLER_ISO_ENABLED == 1)) */
1093 
1094 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1095     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1096     (CONTROLLER_BIS_ENABLED == 1) &&\
1097     (CONTROLLER_ISO_ENABLED == 1))
llc_big_brc_add_biginfo_to_periodic_sync_packet_ucfg(void * pointer,uint8_t * packet_p)1098 void llc_big_brc_add_biginfo_to_periodic_sync_packet_ucfg(void* pointer,
1099                                                           uint8_t* packet_p)
1100 {
1101     llc_big_brc_add_biginfo_to_periodic_sync_packet(pointer,
1102                                                     packet_p);
1103 }
1104 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1105           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1106           (CONTROLLER_BIS_ENABLED == 1) &&\
1107           (CONTROLLER_ISO_ENABLED == 1)) */
1108 
1109 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1110     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1111     (CONTROLLER_BIS_ENABLED == 1) &&\
1112     (CONTROLLER_ISO_ENABLED == 1))
llc_big_brc_get_group_descr_of_adv_ucfg(uint8_t adv_handle)1113 void* llc_big_brc_get_group_descr_of_adv_ucfg(uint8_t adv_handle)
1114 {
1115     return llc_big_brc_get_group_descr_of_adv(adv_handle);
1116 }
1117 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1118           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1119           (CONTROLLER_BIS_ENABLED == 1) &&\
1120           (CONTROLLER_ISO_ENABLED == 1)) */
1121 
1122 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1123     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1124     (CONTROLLER_BIS_ENABLED == 1) &&\
1125     (CONTROLLER_ISO_ENABLED == 1))
llc_big_brc_enqueue_pdu_ucfg(void * ctx_p,uint32_t iso_interval_idx,uint16_t conn_handle,void * pdu_p)1126 tBleStatus llc_big_brc_enqueue_pdu_ucfg(void* ctx_p,
1127                                         uint32_t iso_interval_idx,
1128                                         uint16_t conn_handle,
1129                                         void* pdu_p)
1130 {
1131     return llc_big_brc_enqueue_pdu(ctx_p,
1132                                    iso_interval_idx,
1133                                    conn_handle,
1134                                    pdu_p);
1135 }
1136 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1137           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1138           (CONTROLLER_BIS_ENABLED == 1) &&\
1139           (CONTROLLER_ISO_ENABLED == 1)) */
1140 
1141 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1142     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1143     (CONTROLLER_BIS_ENABLED == 1) &&\
1144     (CONTROLLER_ISO_ENABLED == 1))
llc_big_brc_get_own_big_event_time_ucfg(void * ctx_p,uint16_t conn_handle,uint16_t num_enq_packet)1145 uint32_t llc_big_brc_get_own_big_event_time_ucfg(void* ctx_p,
1146                                                  uint16_t conn_handle,
1147                                                  uint16_t num_enq_packet)
1148 {
1149     return llc_big_brc_get_own_big_event_time(ctx_p,
1150                                               conn_handle,
1151                                               num_enq_packet);
1152 }
1153 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1154           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1155           (CONTROLLER_BIS_ENABLED == 1) &&\
1156           (CONTROLLER_ISO_ENABLED == 1)) */
1157 
1158 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1159     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1160     (CONTROLLER_BIS_ENABLED == 1) &&\
1161     (CONTROLLER_ISO_ENABLED == 1))
llc_big_sync_mem_alloc_ucfg(void)1162 void llc_big_sync_mem_alloc_ucfg(void)
1163 {
1164     llc_big_sync_mem_alloc();
1165 }
1166 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1167           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1168           (CONTROLLER_BIS_ENABLED == 1) &&\
1169           (CONTROLLER_ISO_ENABLED == 1)) */
1170 
1171 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1172     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1173     (CONTROLLER_BIS_ENABLED == 1) &&\
1174     (CONTROLLER_ISO_ENABLED == 1))
llc_big_sync_alloc_streams_ucfg(void * ctx,uint8_t stream_count)1175 tBleStatus llc_big_sync_alloc_streams_ucfg(void* ctx,
1176                                            uint8_t stream_count)
1177 {
1178     return llc_big_sync_alloc_streams(ctx,
1179                                       stream_count);
1180 }
1181 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1182           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1183           (CONTROLLER_BIS_ENABLED == 1) &&\
1184           (CONTROLLER_ISO_ENABLED == 1)) */
1185 
1186 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1187     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1188     (CONTROLLER_BIS_ENABLED == 1) &&\
1189     (CONTROLLER_ISO_ENABLED == 1)) &&\
1190     (CONTROLLER_SCAN_ENABLED == 1)
llc_big_sync_deploy_sync_ucfg(uint8_t * biginfo,uint16_t sync_handle,uint32_t periodic_reference_anchor,uint8_t sca_value)1191 void llc_big_sync_deploy_sync_ucfg(uint8_t* biginfo,
1192                                    uint16_t sync_handle,
1193                                    uint32_t periodic_reference_anchor,
1194                                    uint8_t sca_value)
1195 {
1196     llc_big_sync_deploy_sync(biginfo,
1197                              sync_handle,
1198                              periodic_reference_anchor,
1199                              sca_value);
1200 }
1201 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1202           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1203           (CONTROLLER_BIS_ENABLED == 1) &&\
1204           (CONTROLLER_ISO_ENABLED == 1)) &&\
1205           (CONTROLLER_SCAN_ENABLED == 1) */
1206 
1207 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1208     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1209     (CONTROLLER_BIS_ENABLED == 1) &&\
1210     (CONTROLLER_ISO_ENABLED == 1)) &&\
1211     (CONTROLLER_SCAN_ENABLED == 1)
llc_big_sync_decrypt_bis_packet_ucfg(void * ctx_p,void * pdu_p)1212 tBleStatus llc_big_sync_decrypt_bis_packet_ucfg(void* ctx_p,
1213                                                 void* pdu_p)
1214 {
1215     return llc_big_sync_decrypt_bis_packet(ctx_p,
1216                                            pdu_p);
1217 }
1218 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1219           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1220           (CONTROLLER_BIS_ENABLED == 1) &&\
1221           (CONTROLLER_ISO_ENABLED == 1)) &&\
1222           (CONTROLLER_SCAN_ENABLED == 1) */
1223 
1224 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1225     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1226     (CONTROLLER_BIS_ENABLED == 1) &&\
1227     (CONTROLLER_ISO_ENABLED == 1))
llc_big_sync_get_sdu_synchronization_us_ucfg(uint16_t conn_handle,uint8_t framed,uint32_t anchor_us,uint32_t time_offset)1228 uint32_t llc_big_sync_get_sdu_synchronization_us_ucfg(uint16_t conn_handle,
1229                                                       uint8_t framed,
1230                                                       uint32_t anchor_us,
1231                                                       uint32_t time_offset)
1232 {
1233     return llc_big_sync_get_sdu_synchronization_us(conn_handle,
1234                                                    framed,
1235                                                    anchor_us,
1236                                                    time_offset);
1237 }
1238 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1239           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1240           (CONTROLLER_BIS_ENABLED == 1) &&\
1241           (CONTROLLER_ISO_ENABLED == 1)) */
1242 
1243 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1244     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1245     (CONTROLLER_BIS_ENABLED == 1) &&\
1246     (CONTROLLER_ISO_ENABLED == 1))
llc_big_cmn_get_iso_params_ucfg(uint8_t direction,uint16_t conn_handle,void * param_p)1247 tBleStatus llc_big_cmn_get_iso_params_ucfg(uint8_t direction,
1248                                            uint16_t conn_handle,
1249                                            void* param_p)
1250 {
1251     return llc_big_cmn_get_iso_params(direction,
1252                                       conn_handle,
1253                                       param_p);
1254 }
1255 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1256           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1257           (CONTROLLER_BIS_ENABLED == 1) &&\
1258           (CONTROLLER_ISO_ENABLED == 1)) */
1259 
1260 #if (\
1261      (CONNECTION_ENABLED == 1)\
1262      &&\
1263      (\
1264       (CONNECTION_ENABLED == 1) &&\
1265       (CONTROLLER_CIS_ENABLED == 1) &&\
1266       (CONTROLLER_ISO_ENABLED == 1)\
1267      )\
1268      &&\
1269      (\
1270       (CONTROLLER_SCAN_ENABLED == 1)\
1271       ||\
1272       (\
1273        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1274        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1275        (CONNECTION_ENABLED == 1) &&\
1276        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
1277       )\
1278      )\
1279     )
llc_cig_cen_get_cis_offset_from_acl_us_ucfg(void * ctx_p,void * cis_p,uint8_t conn_idx,uint16_t * event_count_p,uint32_t * cig_anchor_st_p)1280 uint32_t llc_cig_cen_get_cis_offset_from_acl_us_ucfg(void* ctx_p,
1281                                                      void* cis_p,
1282                                                      uint8_t conn_idx,
1283                                                      uint16_t* event_count_p,
1284                                                      uint32_t* cig_anchor_st_p)
1285 {
1286     return llc_cig_cen_get_cis_offset_from_acl_us(ctx_p,
1287                                                   cis_p,
1288                                                   conn_idx,
1289                                                   event_count_p,
1290                                                   cig_anchor_st_p);
1291 }
1292 #endif
1293 
1294 #if (\
1295      (CONNECTION_ENABLED == 1)\
1296      &&\
1297      (\
1298       (CONNECTION_ENABLED == 1) &&\
1299       (CONTROLLER_CIS_ENABLED == 1) &&\
1300       (CONTROLLER_ISO_ENABLED == 1)\
1301      )\
1302      &&\
1303      (\
1304       (CONTROLLER_SCAN_ENABLED == 1)\
1305       ||\
1306       (\
1307        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1308        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1309        (CONNECTION_ENABLED == 1) &&\
1310        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
1311       )\
1312      )\
1313     )
llc_cig_cen_get_sdu_synchronization_us_ucfg(uint16_t conn_handle,uint8_t framed,uint32_t anchor_us,uint32_t time_offset)1314 uint32_t llc_cig_cen_get_sdu_synchronization_us_ucfg(uint16_t conn_handle,
1315                                                      uint8_t framed,
1316                                                      uint32_t anchor_us,
1317                                                      uint32_t time_offset)
1318 {
1319     return llc_cig_cen_get_sdu_synchronization_us(conn_handle,
1320                                                   framed,
1321                                                   anchor_us,
1322                                                   time_offset);
1323 }
1324 #endif
1325 
1326 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1327     (CONNECTION_ENABLED == 1) &&\
1328     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_per_get_sdu_synchronization_us_ucfg(uint16_t conn_handle,uint8_t framed,uint32_t anchor_us,uint32_t time_offset)1329 uint32_t llc_cig_per_get_sdu_synchronization_us_ucfg(uint16_t conn_handle,
1330                                                      uint8_t framed,
1331                                                      uint32_t anchor_us,
1332                                                      uint32_t time_offset)
1333 {
1334     return llc_cig_per_get_sdu_synchronization_us(conn_handle,
1335                                                   framed,
1336                                                   anchor_us,
1337                                                   time_offset);
1338 }
1339 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1340           (CONNECTION_ENABLED == 1) &&\
1341           (CONTROLLER_ISO_ENABLED == 1)) */
1342 
1343 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1344     (CONNECTION_ENABLED == 1) &&\
1345     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_disconnect_ucfg(uint16_t cis_handle,uint8_t reason)1346 tBleStatus llc_cig_cmn_disconnect_ucfg(uint16_t cis_handle,
1347                                        uint8_t reason)
1348 {
1349     return llc_cig_cmn_disconnect(cis_handle,
1350                                   reason);
1351 }
1352 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1353           (CONNECTION_ENABLED == 1) &&\
1354           (CONTROLLER_ISO_ENABLED == 1)) */
1355 
1356 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1357     (CONNECTION_ENABLED == 1) &&\
1358     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_mem_alloc_ucfg(void)1359 void llc_cig_cmn_mem_alloc_ucfg(void)
1360 {
1361     llc_cig_cmn_mem_alloc();
1362 }
1363 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1364           (CONNECTION_ENABLED == 1) &&\
1365           (CONTROLLER_ISO_ENABLED == 1)) */
1366 
1367 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1368     (CONNECTION_ENABLED == 1) &&\
1369     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_alloc_streams_ucfg(void * ctx,uint8_t stream_count,uint8_t group_type)1370 tBleStatus llc_cig_cmn_alloc_streams_ucfg(void* ctx,
1371                                           uint8_t stream_count,
1372                                           uint8_t group_type)
1373 {
1374     return llc_cig_cmn_alloc_streams(ctx,
1375                                      stream_count,
1376                                      group_type);
1377 }
1378 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1379           (CONNECTION_ENABLED == 1) &&\
1380           (CONTROLLER_ISO_ENABLED == 1)) */
1381 
1382 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1383     (CONNECTION_ENABLED == 1) &&\
1384     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_terminate_stream_ucfg(void * cig_p,void * cis_p,uint8_t reason)1385 void llc_cig_cmn_terminate_stream_ucfg(void* cig_p,
1386                                        void* cis_p,
1387                                        uint8_t reason)
1388 {
1389     llc_cig_cmn_terminate_stream(cig_p,
1390                                  cis_p,
1391                                  reason);
1392 }
1393 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1394           (CONNECTION_ENABLED == 1) &&\
1395           (CONTROLLER_ISO_ENABLED == 1)) */
1396 
1397 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1398     (CONNECTION_ENABLED == 1) &&\
1399     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_get_own_cig_event_time_ucfg(void * ctx_p,uint16_t conn_handle,uint16_t num_enq_packet)1400 uint32_t llc_cig_cmn_get_own_cig_event_time_ucfg(void* ctx_p,
1401                                                  uint16_t conn_handle,
1402                                                  uint16_t num_enq_packet)
1403 {
1404     return llc_cig_cmn_get_own_cig_event_time(ctx_p,
1405                                               conn_handle,
1406                                               num_enq_packet);
1407 }
1408 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1409           (CONNECTION_ENABLED == 1) &&\
1410           (CONTROLLER_ISO_ENABLED == 1)) */
1411 
1412 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1413     (CONNECTION_ENABLED == 1) &&\
1414     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_enqueue_pdu_to_tx_ucfg(void * ctx_p,uint32_t iso_interval_idx,uint16_t conn_handle,void * pdu_p)1415 tBleStatus llc_cig_cmn_enqueue_pdu_to_tx_ucfg(void* ctx_p,
1416                                               uint32_t iso_interval_idx,
1417                                               uint16_t conn_handle,
1418                                               void* pdu_p)
1419 {
1420     return llc_cig_cmn_enqueue_pdu_to_tx(ctx_p,
1421                                          iso_interval_idx,
1422                                          conn_handle,
1423                                          pdu_p);
1424 }
1425 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1426           (CONNECTION_ENABLED == 1) &&\
1427           (CONTROLLER_ISO_ENABLED == 1)) */
1428 
1429 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1430     (CONNECTION_ENABLED == 1) &&\
1431     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_decrypt_packet_ucfg(void * ctx_p,void * pdu_p)1432 tBleStatus llc_cig_cmn_decrypt_packet_ucfg(void* ctx_p,
1433                                            void* pdu_p)
1434 {
1435     return llc_cig_cmn_decrypt_packet(ctx_p,
1436                                       pdu_p);
1437 }
1438 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1439           (CONNECTION_ENABLED == 1) &&\
1440           (CONTROLLER_ISO_ENABLED == 1)) */
1441 
1442 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1443     (CONNECTION_ENABLED == 1) &&\
1444     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_start_cis_ucfg(uint8_t conn_idx,uint16_t instant)1445 void llc_cig_cmn_start_cis_ucfg(uint8_t conn_idx,
1446                                 uint16_t instant)
1447 {
1448     llc_cig_cmn_start_cis(conn_idx,
1449                           instant);
1450 }
1451 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1452           (CONNECTION_ENABLED == 1) &&\
1453           (CONTROLLER_ISO_ENABLED == 1)) */
1454 
1455 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1456     (CONNECTION_ENABLED == 1) &&\
1457     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_is_active_cis_on_acl_ucfg(uint16_t acl_conn_handle)1458 uint8_t llc_cig_cmn_is_active_cis_on_acl_ucfg(uint16_t acl_conn_handle)
1459 {
1460     return llc_cig_cmn_is_active_cis_on_acl(acl_conn_handle);
1461 }
1462 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1463           (CONNECTION_ENABLED == 1) &&\
1464           (CONTROLLER_ISO_ENABLED == 1)) */
1465 
1466 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1467     (CONNECTION_ENABLED == 1) &&\
1468     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_terminate_cises_on_acl_ucfg(uint16_t acl_conn_handle)1469 void llc_cig_cmn_terminate_cises_on_acl_ucfg(uint16_t acl_conn_handle)
1470 {
1471     llc_cig_cmn_terminate_cises_on_acl(acl_conn_handle);
1472 }
1473 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1474           (CONNECTION_ENABLED == 1) &&\
1475           (CONTROLLER_ISO_ENABLED == 1)) */
1476 
1477 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1478     (CONNECTION_ENABLED == 1) &&\
1479     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_cis_established_event_gen_ucfg(void * cig_p,void * cis_p,uint8_t status)1480 void llc_cig_cmn_cis_established_event_gen_ucfg(void* cig_p,
1481                                                 void* cis_p,
1482                                                 uint8_t status)
1483 {
1484     llc_cig_cmn_cis_established_event_gen(cig_p,
1485                                           cis_p,
1486                                           status);
1487 }
1488 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1489           (CONNECTION_ENABLED == 1) &&\
1490           (CONTROLLER_ISO_ENABLED == 1)) */
1491 
1492 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1493     (CONNECTION_ENABLED == 1) &&\
1494     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_get_iso_params_ucfg(uint8_t direction,uint16_t conn_handle,void * param_p)1495 tBleStatus llc_cig_cmn_get_iso_params_ucfg(uint8_t direction,
1496                                            uint16_t conn_handle,
1497                                            void* param_p)
1498 {
1499     return llc_cig_cmn_get_iso_params(direction,
1500                                       conn_handle,
1501                                       param_p);
1502 }
1503 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1504           (CONNECTION_ENABLED == 1) &&\
1505           (CONTROLLER_ISO_ENABLED == 1)) */
1506 
1507 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
1508     (CONNECTION_ENABLED == 1) &&\
1509     (CONTROLLER_ISO_ENABLED == 1))
llc_cig_cmn_read_iso_link_quality_ucfg(uint16_t conn_handle,uint32_t * tx_unacked_packets_p,uint32_t * tx_flushed_packets_p,uint32_t * tx_last_subevent_packets_p,uint32_t * retransmitted_packets_p,uint32_t * crc_error_packets_p,uint32_t * rx_unreceived_packets_p,uint32_t * duplicate_packets_p)1510 tBleStatus llc_cig_cmn_read_iso_link_quality_ucfg(uint16_t conn_handle,
1511                                                   uint32_t* tx_unacked_packets_p,
1512                                                   uint32_t* tx_flushed_packets_p,
1513                                                   uint32_t* tx_last_subevent_packets_p,
1514                                                   uint32_t* retransmitted_packets_p,
1515                                                   uint32_t* crc_error_packets_p,
1516                                                   uint32_t* rx_unreceived_packets_p,
1517                                                   uint32_t* duplicate_packets_p)
1518 {
1519     return llc_cig_cmn_read_iso_link_quality(conn_handle,
1520                                              tx_unacked_packets_p,
1521                                              tx_flushed_packets_p,
1522                                              tx_last_subevent_packets_p,
1523                                              retransmitted_packets_p,
1524                                              crc_error_packets_p,
1525                                              rx_unreceived_packets_p,
1526                                              duplicate_packets_p);
1527 }
1528 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
1529           (CONNECTION_ENABLED == 1) &&\
1530           (CONTROLLER_ISO_ENABLED == 1)) */
1531 
1532 #if (CONTROLLER_ISO_ENABLED == 1)
llc_iso_cmn_mem_alloc_ucfg(void)1533 void llc_iso_cmn_mem_alloc_ucfg(void)
1534 {
1535     llc_iso_cmn_mem_alloc();
1536 }
1537 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
1538 
1539 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1540     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
1541 #if ((CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1542     (CONNECTION_ENABLED == 1)
llc_padv_mem_allocate_ucfg(uint8_t eadv_en,uint8_t padv_en,uint8_t nr_of_adv_sets,uint8_t * more_info_p)1543 void llc_padv_mem_allocate_ucfg(uint8_t eadv_en,
1544                                 uint8_t padv_en,
1545                                 uint8_t nr_of_adv_sets,
1546                                 uint8_t* more_info_p)
1547 {
1548     llc_padv_wr_mem_allocate(eadv_en,
1549                              padv_en,
1550                              nr_of_adv_sets,
1551                              more_info_p);
1552 }
1553 #else
llc_padv_mem_allocate_ucfg(uint8_t eadv_en,uint8_t padv_en,uint8_t nr_of_adv_sets,uint8_t * more_info_p)1554 void llc_padv_mem_allocate_ucfg(uint8_t eadv_en,
1555                                 uint8_t padv_en,
1556                                 uint8_t nr_of_adv_sets,
1557                                 uint8_t* more_info_p)
1558 {
1559     llc_padv_mem_allocate(eadv_en,
1560                           padv_en,
1561                           nr_of_adv_sets,
1562                           more_info_p);
1563 }
1564 #endif /* ((CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1565           (CONNECTION_ENABLED == 1) */
1566 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1567           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
1568 
1569 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1570     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
llc_padv_init_ucfg(void)1571 void llc_padv_init_ucfg(void)
1572 {
1573     llc_padv_init();
1574 }
1575 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1576           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
1577 
1578 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1579     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
llc_padv_set_periodic_advertising_data_ucfg(uint16_t advertising_handle,uint8_t operation,uint16_t data_length,uint8_t * data_p)1580 tBleStatus llc_padv_set_periodic_advertising_data_ucfg(uint16_t advertising_handle,
1581                                                        uint8_t operation,
1582                                                        uint16_t data_length,
1583                                                        uint8_t* data_p)
1584 {
1585     return llc_padv_set_periodic_advertising_data(advertising_handle,
1586                                                   operation,
1587                                                   data_length,
1588                                                   data_p);
1589 }
1590 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1591           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
1592 
1593 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1594     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
llc_padv_check_if_syncinfo_is_included_and_start_periodic_advertising_ucfg(void * context_p)1595 uint8_t llc_padv_check_if_syncinfo_is_included_and_start_periodic_advertising_ucfg(void* context_p)
1596 {
1597     return llc_padv_check_if_syncinfo_is_included_and_start_periodic_advertising(context_p);
1598 }
1599 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1600           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
1601 
1602 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1603     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
llc_padv_update_sync_info_ucfg(void * padv_per_p,uint32_t aux_adv_ind_anchor)1604 uint8_t llc_padv_update_sync_info_ucfg(void* padv_per_p,
1605                                     uint32_t aux_adv_ind_anchor)
1606 {
1607     return llc_padv_update_sync_info(padv_per_p,
1608                                      aux_adv_ind_anchor);
1609 }
1610 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1611           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
1612 
1613 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1614     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
llc_padv_prepare_periodic_advertising_payload_ucfg(void * padv_per_p,uint8_t extended_header_flags,uint8_t * payload_p)1615 void llc_padv_prepare_periodic_advertising_payload_ucfg(void* padv_per_p,
1616                                                         uint8_t extended_header_flags,
1617                                                         uint8_t* payload_p)
1618 {
1619     llc_padv_prepare_periodic_advertising_payload(padv_per_p,
1620                                                   extended_header_flags,
1621                                                   payload_p);
1622 }
1623 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1624           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
1625 
1626 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1627     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
llc_padv_periodic_adv_sync_csr_ucfg(void)1628 uint32_t llc_padv_periodic_adv_sync_csr_ucfg(void)
1629 {
1630     return llc_padv_periodic_adv_sync_csr();
1631 }
1632 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1633           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
1634 
1635 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1636     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1637     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1638     (CONNECTION_ENABLED == 1)
llc_padv_wr_create_connection_cancel_ucfg(void * _padv_per_p,uint8_t advertising_handle)1639 uint8_t llc_padv_wr_create_connection_cancel_ucfg(void* _padv_per_p,
1640                                                uint8_t advertising_handle)
1641 {
1642     return llc_padv_wr_create_connection_cancel(_padv_per_p,
1643                                                 advertising_handle);
1644 }
1645 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1646           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1647           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1648           (CONNECTION_ENABLED == 1) */
1649 
1650 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1651     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1652     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1653     (CONNECTION_ENABLED == 1)
llc_padv_wr_set_start_parameters_ucfg(void * set_padv_wr_start_parameters_p)1654 void llc_padv_wr_set_start_parameters_ucfg(void* set_padv_wr_start_parameters_p)
1655 {
1656     llc_padv_wr_set_start_parameters(set_padv_wr_start_parameters_p);
1657 }
1658 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1659           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1660           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1661           (CONNECTION_ENABLED == 1) */
1662 
1663 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1664     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1665     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1666     (CONNECTION_ENABLED == 1)
llc_padv_wr_set_periodic_advertising_subevent_data_ucfg(void * set_padv_wr_data_p)1667 tBleStatus llc_padv_wr_set_periodic_advertising_subevent_data_ucfg(void* set_padv_wr_data_p)
1668 {
1669     return llc_padv_wr_set_periodic_advertising_subevent_data(set_padv_wr_data_p);
1670 }
1671 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1672           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1673           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1674           (CONNECTION_ENABLED == 1) */
1675 
1676 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1677     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1678     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1679     (CONNECTION_ENABLED == 1)
llc_padv_wr_set_ctrdata_ucfg(void * padv_per_p,uint8_t * ctrdata_p)1680 uint8_t llc_padv_wr_set_ctrdata_ucfg(void* padv_per_p,
1681                                   uint8_t* ctrdata_p)
1682 {
1683     return llc_padv_wr_set_ctrdata(padv_per_p,
1684                                    ctrdata_p);
1685 }
1686 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1687           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1688           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1689           (CONNECTION_ENABLED == 1) */
1690 
1691 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1692     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1693     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1694     (CONNECTION_ENABLED == 1)
llc_padv_wr_set_acad_ucfg(void * padv_per_p,uint8_t * ext_hdr_p)1695 void llc_padv_wr_set_acad_ucfg(void* padv_per_p,
1696                                uint8_t* ext_hdr_p)
1697 {
1698     llc_padv_wr_set_acad(padv_per_p,
1699                          ext_hdr_p);
1700 }
1701 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1702           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1703           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1704           (CONNECTION_ENABLED == 1) */
1705 
1706 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1707     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1708     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1709     (CONNECTION_ENABLED == 1)
llc_padv_wr_init_anchors_and_counters_ucfg(void * padv_per_p)1710 void llc_padv_wr_init_anchors_and_counters_ucfg(void* padv_per_p)
1711 {
1712     llc_padv_wr_init_anchors_and_counters(padv_per_p);
1713 }
1714 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1715           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1716           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1717           (CONNECTION_ENABLED == 1) */
1718 
1719 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1720     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1721     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1722     (CONNECTION_ENABLED == 1)
llc_padv_periodic_adv_sync_wr_csr_ucfg(void)1723 uint32_t llc_padv_periodic_adv_sync_wr_csr_ucfg(void)
1724 {
1725     return llc_padv_periodic_adv_sync_wr_csr();
1726 }
1727 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1728           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1729           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1730           (CONNECTION_ENABLED == 1) */
1731 
1732 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1733     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1734     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1735     (CONNECTION_ENABLED == 1)
llc_padv_wr_disable_ext_ucfg(void * _padv_per_p)1736 void llc_padv_wr_disable_ext_ucfg(void* _padv_per_p)
1737 {
1738     llc_padv_wr_disable_ext(_padv_per_p);
1739 }
1740 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1741           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1742           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1743           (CONNECTION_ENABLED == 1) */
1744 
1745 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_priv_generate_peer_rpa_from_peer_id_ucfg(void * peer_p,uint8_t in_isr)1746 void llc_priv_generate_peer_rpa_from_peer_id_ucfg(void* peer_p,
1747                                                   uint8_t in_isr)
1748 {
1749     llc_priv_generate_peer_rpa_from_peer_id(peer_p,
1750                                             in_isr);
1751 }
1752 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1753 
1754 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_priv_init_ucfg(uint8_t first_call)1755 void llc_priv_init_ucfg(uint8_t first_call)
1756 {
1757     llc_priv_init(first_call);
1758 }
1759 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1760 
1761 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_priv_generate_local_rpa_from_peer_id_ucfg(void * peer_id_p,void * local_rpa_p)1762 void llc_priv_generate_local_rpa_from_peer_id_ucfg(void* peer_id_p,
1763                                                    void* local_rpa_p)
1764 {
1765     llc_priv_generate_local_rpa_from_peer_id(peer_id_p,
1766                                              local_rpa_p);
1767 }
1768 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1769 
1770 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_priv_offline_rpa_resolution_ucfg(uint16_t task_idx)1771 void llc_priv_offline_rpa_resolution_ucfg(uint16_t task_idx)
1772 {
1773     llc_priv_offline_rpa_resolution(task_idx);
1774 }
1775 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1776 
1777 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_priv_controller_privacy_csr_ucfg(void)1778 uint32_t llc_priv_controller_privacy_csr_ucfg(void)
1779 {
1780     return llc_priv_controller_privacy_csr();
1781 }
1782 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1783 
1784 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_priv_set_filter_accept_list_flag_in_resolving_list_ucfg(void * addr8_p,uint8_t set)1785 void llc_priv_set_filter_accept_list_flag_in_resolving_list_ucfg(void* addr8_p,
1786                                                                  uint8_t set)
1787 {
1788     llc_priv_set_filter_accept_list_flag_in_resolving_list(addr8_p,
1789                                                            set);
1790 }
1791 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1792 
1793 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_priv_clr_all_filter_accept_list_flags_in_resolving_list_ucfg(void)1794 void llc_priv_clr_all_filter_accept_list_flags_in_resolving_list_ucfg(void)
1795 {
1796     llc_priv_clr_all_filter_accept_list_flags_in_resolving_list();
1797 }
1798 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1799 
1800 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_priv_start_privacy_timer_ucfg(void)1801 void llc_priv_start_privacy_timer_ucfg(void)
1802 {
1803     llc_priv_start_privacy_timer();
1804 }
1805 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1806 
1807 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_priv_stop_privacy_timer_ucfg(void)1808 void llc_priv_stop_privacy_timer_ucfg(void)
1809 {
1810     llc_priv_stop_privacy_timer();
1811 }
1812 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1813 
1814 #if (CONTROLLER_PRIVACY_ENABLED == 1)
llc_priv_init_random_part_of_one_local_rpa_ucfg(void * peer_id_p)1815 void llc_priv_init_random_part_of_one_local_rpa_ucfg(void* peer_id_p)
1816 {
1817     llc_priv_init_random_part_of_one_local_rpa(peer_id_p);
1818 }
1819 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
1820 
1821 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1822     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1823     (CONTROLLER_SCAN_ENABLED == 1) &&\
1824     (CONTROLLER_CTE_ENABLED == 1)
llc_pscan_cancel_slot_cte_ucfg(void * cntxt_per_p)1825 void llc_pscan_cancel_slot_cte_ucfg(void* cntxt_per_p)
1826 {
1827     llc_pscan_cancel_slot_cte(cntxt_per_p);
1828 }
1829 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1830           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1831           (CONTROLLER_SCAN_ENABLED == 1) &&\
1832           (CONTROLLER_CTE_ENABLED == 1) */
1833 
1834 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1835     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1836     (CONTROLLER_SCAN_ENABLED == 1)
llc_pscan_isr_ucfg(void * cntxt_per_p)1837 uint8_t llc_pscan_isr_ucfg(void* cntxt_per_p)
1838 {
1839     return llc_pscan_isr(cntxt_per_p);
1840 }
1841 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1842           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1843           (CONTROLLER_SCAN_ENABLED == 1) */
1844 
1845 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1846     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1847     (CONTROLLER_SCAN_ENABLED == 1)
llc_pscan_init_ucfg(void)1848 void llc_pscan_init_ucfg(void)
1849 {
1850     llc_pscan_init();
1851 }
1852 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1853           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1854           (CONTROLLER_SCAN_ENABLED == 1) */
1855 
1856 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1857     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1858     (CONTROLLER_SCAN_ENABLED == 1)
llc_pscan_mem_allocate_ucfg(uint8_t scan_en,uint8_t ext_en,uint8_t pscan_en)1859 void llc_pscan_mem_allocate_ucfg(uint8_t scan_en,
1860                                  uint8_t ext_en,
1861                                  uint8_t pscan_en)
1862 {
1863     llc_pscan_mem_allocate(scan_en,
1864                            ext_en,
1865                            pscan_en);
1866 }
1867 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1868           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1869           (CONTROLLER_SCAN_ENABLED == 1) */
1870 
1871 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1872     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1873     (CONTROLLER_SCAN_ENABLED == 1)
llc_pscan_create_sync_pending_ucfg(void)1874 uint8_t llc_pscan_create_sync_pending_ucfg(void)
1875 {
1876     return llc_pscan_create_sync_pending();
1877 }
1878 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1879           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1880           (CONTROLLER_SCAN_ENABLED == 1) */
1881 
1882 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1883     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1884     (CONTROLLER_SCAN_ENABLED == 1) &&\
1885     (CONTROLLER_CTE_ENABLED == 1)
llc_pscan_enable_adv_addr_ucfg(void * list_p)1886 void llc_pscan_enable_adv_addr_ucfg(void* list_p)
1887 {
1888     llc_pscan_enable_adv_addr(list_p);
1889 }
1890 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1891           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1892           (CONTROLLER_SCAN_ENABLED == 1) &&\
1893           (CONTROLLER_CTE_ENABLED == 1) */
1894 
1895 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1896     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1897     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1898     (CONTROLLER_SCAN_ENABLED == 1) &&\
1899     (CONNECTION_ENABLED == 1)
llc_pscan_push_padv_report_event_ucfg(void * params)1900 void llc_pscan_push_padv_report_event_ucfg(void* params)
1901 {
1902     llc_pscan_push_padv_report_event(params);
1903 }
1904 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1905           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1906           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1907           (CONTROLLER_SCAN_ENABLED == 1) &&\
1908           (CONNECTION_ENABLED == 1) */
1909 
1910 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1911     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1912     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1913     (CONTROLLER_SCAN_ENABLED == 1) &&\
1914     (CONNECTION_ENABLED == 1)
llc_pscan_push_past_received_event_ucfg(void * params)1915 void llc_pscan_push_past_received_event_ucfg(void* params)
1916 {
1917     llc_pscan_push_past_received_event(params);
1918 }
1919 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1920           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1921           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1922           (CONTROLLER_SCAN_ENABLED == 1) &&\
1923           (CONNECTION_ENABLED == 1) */
1924 
1925 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1926     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1927     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1928     (CONTROLLER_SCAN_ENABLED == 1) &&\
1929     (CONNECTION_ENABLED == 1)
llc_pscan_push_sync_established_event_ucfg(void * params)1930 void llc_pscan_push_sync_established_event_ucfg(void* params)
1931 {
1932     llc_pscan_push_sync_established_event(params);
1933 }
1934 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1935           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1936           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1937           (CONTROLLER_SCAN_ENABLED == 1) &&\
1938           (CONNECTION_ENABLED == 1) */
1939 
1940 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1941     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1942     (CONTROLLER_SCAN_ENABLED == 1)
llc_pscan_check_address_ucfg(void * addr_p)1943 uint8_t llc_pscan_check_address_ucfg(void* addr_p)
1944 {
1945     return llc_pscan_check_address(addr_p);
1946 }
1947 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1948           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1949           (CONTROLLER_SCAN_ENABLED == 1) */
1950 
1951 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1952     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1953     (CONTROLLER_SCAN_ENABLED == 1)
llc_pscan_synchronizing_ucfg(void * params_p)1954 void llc_pscan_synchronizing_ucfg(void* params_p)
1955 {
1956     llc_pscan_synchronizing(params_p);
1957 }
1958 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1959           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1960           (CONTROLLER_SCAN_ENABLED == 1) */
1961 
1962 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1963     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1964     (CONTROLLER_SCAN_ENABLED == 1) &&\
1965     (CONTROLLER_CTE_ENABLED == 1)
llc_pscan_wrong_cte_type_ucfg(void * cntxt_p)1966 void llc_pscan_wrong_cte_type_ucfg(void* cntxt_p)
1967 {
1968     llc_pscan_wrong_cte_type(cntxt_p);
1969 }
1970 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1971           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
1972           (CONTROLLER_SCAN_ENABLED == 1) &&\
1973           (CONTROLLER_CTE_ENABLED == 1) */
1974 
1975 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1976     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1977     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1978     (CONTROLLER_SCAN_ENABLED == 1) &&\
1979     (CONNECTION_ENABLED == 1)
llc_pscan_wr_init_ucfg(void)1980 void llc_pscan_wr_init_ucfg(void)
1981 {
1982     llc_pscan_wr_init();
1983 }
1984 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1985           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1986           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1987           (CONTROLLER_SCAN_ENABLED == 1) &&\
1988           (CONNECTION_ENABLED == 1) */
1989 
1990 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
1991     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
1992     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
1993     (CONTROLLER_SCAN_ENABLED == 1) &&\
1994     (CONNECTION_ENABLED == 1)
llc_pscan_wr_mem_allocate_ucfg(uint8_t scan_en,uint8_t ext_en,uint8_t pscan_en,uint8_t pscan_wr_en,uint8_t conn_en)1995 void llc_pscan_wr_mem_allocate_ucfg(uint8_t scan_en,
1996                                     uint8_t ext_en,
1997                                     uint8_t pscan_en,
1998                                     uint8_t pscan_wr_en,
1999                                     uint8_t conn_en)
2000 {
2001     llc_pscan_wr_mem_allocate(scan_en,
2002                               ext_en,
2003                               pscan_en,
2004                               pscan_wr_en,
2005                               conn_en);
2006 }
2007 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2008           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2009           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2010           (CONTROLLER_SCAN_ENABLED == 1) &&\
2011           (CONNECTION_ENABLED == 1) */
2012 
2013 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2014     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2015     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2016     (CONTROLLER_SCAN_ENABLED == 1) &&\
2017     (CONNECTION_ENABLED == 1)
llc_pscan_wr_per_init_ucfg(uint8_t sync_idx)2018 void llc_pscan_wr_per_init_ucfg(uint8_t sync_idx)
2019 {
2020     llc_pscan_wr_per_init(sync_idx);
2021 }
2022 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2023           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2024           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2025           (CONTROLLER_SCAN_ENABLED == 1) &&\
2026           (CONNECTION_ENABLED == 1) */
2027 
2028 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2029     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2030     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2031     (CONTROLLER_SCAN_ENABLED == 1) &&\
2032     (CONNECTION_ENABLED == 1)
llc_pscan_wr_config_tx_blue_sm_ucfg(void * params_p,uint8_t pawr_feat)2033 void llc_pscan_wr_config_tx_blue_sm_ucfg(void* params_p,
2034                                          uint8_t pawr_feat)
2035 {
2036     llc_pscan_wr_config_tx_blue_sm(params_p,
2037                                    pawr_feat);
2038 }
2039 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2040           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2041           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2042           (CONTROLLER_SCAN_ENABLED == 1) &&\
2043           (CONNECTION_ENABLED == 1) */
2044 
2045 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2046     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2047     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2048     (CONTROLLER_SCAN_ENABLED == 1) &&\
2049     (CONNECTION_ENABLED == 1)
llc_pscan_wr_get_pawr_info_ucfg(uint8_t acad_size,uint8_t * acad_p,uint8_t * pawr_info_p)2050 uint8_t llc_pscan_wr_get_pawr_info_ucfg(uint8_t acad_size,
2051                                      uint8_t* acad_p,
2052                                      uint8_t* pawr_info_p)
2053 {
2054     return llc_pscan_wr_get_pawr_info(acad_size,
2055                                       acad_p,
2056                                       pawr_info_p);
2057 }
2058 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2059           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2060           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2061           (CONTROLLER_SCAN_ENABLED == 1) &&\
2062           (CONNECTION_ENABLED == 1) */
2063 
2064 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2065     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2066     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2067     (CONTROLLER_SCAN_ENABLED == 1) &&\
2068     (CONNECTION_ENABLED == 1)
llc_pscan_wr_check_pawr_active_ucfg(uint8_t conn_idx)2069 uint8_t llc_pscan_wr_check_pawr_active_ucfg(uint8_t conn_idx)
2070 {
2071     return llc_pscan_wr_check_pawr_active(conn_idx);
2072 }
2073 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2074           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2075           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2076           (CONTROLLER_SCAN_ENABLED == 1) &&\
2077           (CONNECTION_ENABLED == 1) */
2078 
2079 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2080     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2081     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2082     (CONTROLLER_SCAN_ENABLED == 1) &&\
2083     (CONNECTION_ENABLED == 1)
llc_pscan_wr_check_pawr_info_ucfg(void * params_p)2084 uint8_t llc_pscan_wr_check_pawr_info_ucfg(void* params_p)
2085 {
2086     return llc_pscan_wr_check_pawr_info(params_p);
2087 }
2088 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2089           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2090           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2091           (CONTROLLER_SCAN_ENABLED == 1) &&\
2092           (CONNECTION_ENABLED == 1) */
2093 
2094 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2095     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2096     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2097     (CONTROLLER_SCAN_ENABLED == 1) &&\
2098     (CONNECTION_ENABLED == 1)
llc_pscan_wr_reserve_taskslots_ucfg(void * params_p,uint8_t pawr_feat)2099 uint8_t llc_pscan_wr_reserve_taskslots_ucfg(void* params_p,
2100                                             uint8_t pawr_feat)
2101 {
2102     return llc_pscan_wr_reserve_taskslots(params_p,
2103                                           pawr_feat);
2104 }
2105 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2106           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2107           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2108           (CONTROLLER_SCAN_ENABLED == 1) &&\
2109           (CONNECTION_ENABLED == 1) */
2110 
2111 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2112     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2113     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2114     (CONTROLLER_SCAN_ENABLED == 1) &&\
2115     (CONNECTION_ENABLED == 1)
llc_pscan_wr_set_pscan_cntxt_ucfg(void * cntxt_p,void * params_p)2116 void llc_pscan_wr_set_pscan_cntxt_ucfg(void* cntxt_p,
2117                                        void* params_p)
2118 {
2119     llc_pscan_wr_set_pscan_cntxt(cntxt_p,
2120                                  params_p);
2121 }
2122 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2123           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2124           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2125           (CONTROLLER_SCAN_ENABLED == 1) &&\
2126           (CONNECTION_ENABLED == 1) */
2127 
2128 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2129     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2130     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2131     (CONTROLLER_SCAN_ENABLED == 1) &&\
2132     (CONNECTION_ENABLED == 1)
llc_pscan_wr_set_scheduler_params_ucfg(void * params_p)2133 void llc_pscan_wr_set_scheduler_params_ucfg(void* params_p)
2134 {
2135     llc_pscan_wr_set_scheduler_params(params_p);
2136 }
2137 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2138           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2139           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
2140           (CONTROLLER_SCAN_ENABLED == 1) &&\
2141           (CONNECTION_ENABLED == 1) */
2142 
2143 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
2144     (CONNECTION_ENABLED == 1)
llc_scan_conn_ind_sent_ucfg(void * ptr,uint8_t idx)2145 void llc_scan_conn_ind_sent_ucfg(void* ptr,
2146                                  uint8_t idx)
2147 {
2148     llc_scan_conn_ind_sent(ptr,
2149                            idx);
2150 }
2151 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
2152           (CONNECTION_ENABLED == 1) */
2153 
2154 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
2155     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
llc_scan_process_ext_adv_ucfg(void * scan_p,void * params_p,uint32_t direct_addr[2],uint8_t idx,uint8_t advertiser_addr_flag,uint8_t * send_report_p)2156 uint8_t llc_scan_process_ext_adv_ucfg(void* scan_p,
2157                                    void* params_p,
2158                                    uint32_t direct_addr[2],
2159                                    uint8_t idx,
2160                                    uint8_t advertiser_addr_flag,
2161                                    uint8_t* send_report_p)
2162 {
2163     return llc_scan_process_ext_adv(scan_p,
2164                                     params_p,
2165                                     direct_addr,
2166                                     idx,
2167                                     advertiser_addr_flag,
2168                                     send_report_p);
2169 }
2170 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
2171           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
2172 
2173 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
2174     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2175     (CONNECTION_ENABLED == 1)
llc_scan_aux_conn_rsp_rcvd_ucfg(void * scan_p,void * aux_p,uint8_t idx)2176 void llc_scan_aux_conn_rsp_rcvd_ucfg(void* scan_p,
2177                                      void* aux_p,
2178                                      uint8_t idx)
2179 {
2180     llc_scan_aux_conn_rsp_rcvd(scan_p,
2181                                aux_p,
2182                                idx);
2183 }
2184 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
2185           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2186           (CONNECTION_ENABLED == 1) */
2187 
2188 #if (CONTROLLER_SCAN_ENABLED == 1)
llc_scan_init_ucfg(uint8_t ext_en)2189 void llc_scan_init_ucfg(uint8_t ext_en)
2190 {
2191     llc_scan_init(ext_en);
2192 }
2193 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
2194 
2195 #if (CONTROLLER_SCAN_ENABLED == 1)
llc_scan_mem_allocate_ucfg(uint8_t scan_en,uint8_t ext_en)2196 void llc_scan_mem_allocate_ucfg(uint8_t scan_en,
2197                                 uint8_t ext_en)
2198 {
2199     llc_scan_mem_allocate(scan_en,
2200                           ext_en);
2201 }
2202 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
2203 
2204 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
2205     (CONNECTION_ENABLED == 1)
llc_scan_prepare_conn_ind_req_ucfg(void * ptr,uint8_t idx,uint8_t aux_conn_req)2206 void llc_scan_prepare_conn_ind_req_ucfg(void* ptr,
2207                                         uint8_t idx,
2208                                         uint8_t aux_conn_req)
2209 {
2210     llc_scan_prepare_conn_ind_req(ptr,
2211                                   idx,
2212                                   aux_conn_req);
2213 }
2214 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
2215           (CONNECTION_ENABLED == 1) */
2216 
2217 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
2218     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
llc_scan_enable_extended_ucfg(void * scan_p)2219 void llc_scan_enable_extended_ucfg(void* scan_p)
2220 {
2221     llc_scan_enable_extended(scan_p);
2222 }
2223 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
2224           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
2225 
2226 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
2227     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
llc_scan_push_ext_adv_report_ucfg(void * ptr,uint8_t data_len,uint8_t data_offset,uint8_t event_type)2228 void llc_scan_push_ext_adv_report_ucfg(void* ptr,
2229                                        uint8_t data_len,
2230                                        uint8_t data_offset,
2231                                        uint8_t event_type)
2232 {
2233     llc_scan_push_ext_adv_report(ptr,
2234                                  data_len,
2235                                  data_offset,
2236                                  event_type);
2237 }
2238 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
2239           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
2240 
2241 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
2242     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
llc_scan_reserve_taskslots_ucfg(void * scan_en_p,void * scan_p)2243 tBleStatus llc_scan_reserve_taskslots_ucfg(void* scan_en_p,
2244                                            void* scan_p)
2245 {
2246     return llc_scan_reserve_taskslots(scan_en_p,
2247                                       scan_p);
2248 }
2249 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
2250           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
2251 
2252 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
2253     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2254     (CONNECTION_ENABLED == 1)
llc_scan_set_conn_params_ucfg(Extended_Create_Connection_Parameters_t ext_create_conn_params,uint8_t initiating_phy)2255 void llc_scan_set_conn_params_ucfg(Extended_Create_Connection_Parameters_t ext_create_conn_params,
2256                                    uint8_t initiating_phy)
2257 {
2258     llc_scan_set_conn_params(ext_create_conn_params,
2259                              initiating_phy);
2260 }
2261 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
2262           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2263           (CONNECTION_ENABLED == 1) */
2264 
2265 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
2266     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
llc_scan_disable_ucfg(void * scan_p)2267 void llc_scan_disable_ucfg(void* scan_p)
2268 {
2269     llc_scan_disable(scan_p);
2270 }
2271 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
2272           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
2273 
2274 #if ((CONNECTION_SUBRATING_ENABLED == 1) &&\
2275     (CONNECTION_ENABLED == 1))
llc_subrate_get_active_sr_req_proc_ucfg(uint8_t conn_idx)2276 uint8_t llc_subrate_get_active_sr_req_proc_ucfg(uint8_t conn_idx)
2277 {
2278     return llc_subrate_get_active_sr_req_proc(conn_idx);
2279 }
2280 #endif /* ((CONNECTION_SUBRATING_ENABLED == 1) &&\
2281           (CONNECTION_ENABLED == 1)) */
2282 
2283 #if ((CONNECTION_SUBRATING_ENABLED == 1) &&\
2284     (CONNECTION_ENABLED == 1))
llc_subrate_new_sr_base_event_ucfg(uint16_t sr_factor,uint16_t * sr_base_event_p)2285 void llc_subrate_new_sr_base_event_ucfg(uint16_t sr_factor,
2286                                         uint16_t* sr_base_event_p)
2287 {
2288     llc_subrate_new_sr_base_event(sr_factor,
2289                                   sr_base_event_p);
2290 }
2291 #endif /* ((CONNECTION_SUBRATING_ENABLED == 1) &&\
2292           (CONNECTION_ENABLED == 1)) */
2293 
2294 #if ((CONNECTION_SUBRATING_ENABLED == 1) &&\
2295     (CONNECTION_ENABLED == 1))
llc_subrate_update_cont_counter_ucfg(void * cntxt_p)2296 void llc_subrate_update_cont_counter_ucfg(void* cntxt_p)
2297 {
2298     llc_subrate_update_cont_counter(cntxt_p);
2299 }
2300 #endif /* ((CONNECTION_SUBRATING_ENABLED == 1) &&\
2301           (CONNECTION_ENABLED == 1)) */
2302 
2303 #if ((CONNECTION_SUBRATING_ENABLED == 1) &&\
2304     (CONNECTION_ENABLED == 1))
llc_subrate_offline_processing_ucfg(void * cntxt_p)2305 uint8_t llc_subrate_offline_processing_ucfg(void* cntxt_p)
2306 {
2307     return llc_subrate_offline_processing(cntxt_p);
2308 }
2309 #endif /* ((CONNECTION_SUBRATING_ENABLED == 1) &&\
2310           (CONNECTION_ENABLED == 1)) */
2311 
2312 #if (CONTROLLER_ISO_ENABLED == 1)
llc_mngm_csa2_select_subevent_channel_ucfg(uint8_t subevent_counter,uint8_t * subevent_index_p,uint16_t prn_s,uint8_t remapping_index_of_last_used_channel,uint16_t * prn_subevent_lu_p,uint16_t channel_identifier,void * _csa2_table_p,uint8_t * channel_index_p)2313 void llc_mngm_csa2_select_subevent_channel_ucfg(uint8_t subevent_counter,
2314                                                 uint8_t* subevent_index_p,
2315                                                 uint16_t prn_s,
2316                                                 uint8_t remapping_index_of_last_used_channel,
2317                                                 uint16_t* prn_subevent_lu_p,
2318                                                 uint16_t channel_identifier,
2319                                                 void* _csa2_table_p,
2320                                                 uint8_t* channel_index_p)
2321 {
2322     llc_mngm_csa2_select_subevent_channel(subevent_counter,
2323                                           subevent_index_p,
2324                                           prn_s,
2325                                           remapping_index_of_last_used_channel,
2326                                           prn_subevent_lu_p,
2327                                           channel_identifier,
2328                                           _csa2_table_p,
2329                                           channel_index_p);
2330 }
2331 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
2332 
2333 #if (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
2334     (CONNECTION_ENABLED == 1)
LL_cpe_init_length_update_ucfg(void)2335 void LL_cpe_init_length_update_ucfg(void)
2336 {
2337     LL_cpe_init_length_update();
2338 }
2339 #endif /* (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
2340           (CONNECTION_ENABLED == 1) */
2341 
2342 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2343     (CONNECTION_ENABLED == 1)
LL_cpe_init_phy_update_ucfg(void)2344 void LL_cpe_init_phy_update_ucfg(void)
2345 {
2346     LL_cpe_init_phy_update();
2347 }
2348 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2349           (CONNECTION_ENABLED == 1) */
2350 
2351 #if (CONTROLLER_CTE_ENABLED == 1) &&\
2352     (CONNECTION_ENABLED == 1)
LL_cpe_init_cte_ucfg(void)2353 void LL_cpe_init_cte_ucfg(void)
2354 {
2355     LL_cpe_init_cte();
2356 }
2357 #endif /* (CONTROLLER_CTE_ENABLED == 1) &&\
2358           (CONNECTION_ENABLED == 1) */
2359 
2360 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2361     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2362     (CONNECTION_ENABLED == 1)
LL_cpe_init_past_ucfg(void)2363 void LL_cpe_init_past_ucfg(void)
2364 {
2365     LL_cpe_init_past();
2366 }
2367 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2368           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2369           (CONNECTION_ENABLED == 1) */
2370 
2371 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2372     (CONNECTION_ENABLED == 1))
LL_cpe_init_pcl_ucfg(void)2373 void LL_cpe_init_pcl_ucfg(void)
2374 {
2375     LL_cpe_init_pcl();
2376 }
2377 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2378           (CONNECTION_ENABLED == 1)) */
2379 
2380 #if (CONNECTION_ENABLED == 1)
LL_cpe_init_conn_update_ucfg(void)2381 void LL_cpe_init_conn_update_ucfg(void)
2382 {
2383     LL_cpe_init_conn_update();
2384 }
2385 #endif /* (CONNECTION_ENABLED == 1) */
2386 
2387 #if (CONNECTION_ENABLED == 1)
LL_cpe_init_chmap_update_ucfg(void)2388 void LL_cpe_init_chmap_update_ucfg(void)
2389 {
2390     LL_cpe_init_chmap_update();
2391 }
2392 #endif /* (CONNECTION_ENABLED == 1) */
2393 
2394 #if ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2395     (CONNECTION_ENABLED == 1))
LL_cpe_init_chc_enable_ucfg(void)2396 void LL_cpe_init_chc_enable_ucfg(void)
2397 {
2398     LL_cpe_init_chc_enable();
2399 }
2400 #endif /* ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2401           (CONNECTION_ENABLED == 1)) */
2402 
2403 #if ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2404     (CONNECTION_ENABLED == 1))
LL_cpe_init_chc_reporting_ucfg(void)2405 void LL_cpe_init_chc_reporting_ucfg(void)
2406 {
2407     LL_cpe_init_chc_reporting();
2408 }
2409 #endif /* ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2410           (CONNECTION_ENABLED == 1)) */
2411 
2412 #if ((CONNECTION_SUBRATING_ENABLED == 1) &&\
2413     (CONNECTION_ENABLED == 1))
LL_cpe_init_subrate_ucfg(void)2414 void LL_cpe_init_subrate_ucfg(void)
2415 {
2416     LL_cpe_init_subrate();
2417 }
2418 #endif /* ((CONNECTION_SUBRATING_ENABLED == 1) &&\
2419           (CONNECTION_ENABLED == 1)) */
2420 
2421 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
2422     (CONNECTION_ENABLED == 1) &&\
2423     (CONTROLLER_ISO_ENABLED == 1))
LL_cpe_init_sca_upd_ucfg(void)2424 void LL_cpe_init_sca_upd_ucfg(void)
2425 {
2426     LL_cpe_init_sca_upd();
2427 }
2428 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
2429           (CONNECTION_ENABLED == 1) &&\
2430           (CONTROLLER_ISO_ENABLED == 1)) */
2431 
2432 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
2433     (CONNECTION_ENABLED == 1) &&\
2434     (CONTROLLER_ISO_ENABLED == 1))
LL_cpe_init_cis_ucfg(void)2435 void LL_cpe_init_cis_ucfg(void)
2436 {
2437     LL_cpe_init_cis();
2438 }
2439 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
2440           (CONNECTION_ENABLED == 1) &&\
2441           (CONTROLLER_ISO_ENABLED == 1)) */
2442 
2443 #if (CONNECTION_ENABLED == 1)
LL_cpe_init_ucfg(void)2444 void LL_cpe_init_ucfg(void)
2445 {
2446     LL_cpe_init();
2447 }
2448 #endif /* (CONNECTION_ENABLED == 1) */
2449 
2450 #if ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2451     (CONNECTION_ENABLED == 1))
LLC_channel_map_copy_to_cpf_context_ucfg(void * cntxt_p,uint8_t conn_idx)2452 void LLC_channel_map_copy_to_cpf_context_ucfg(void* cntxt_p,
2453                                               uint8_t conn_idx)
2454 {
2455     LLC_channel_map_copy_to_cpf_context(cntxt_p,
2456                                         conn_idx);
2457 }
2458 #endif /* ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2459           (CONNECTION_ENABLED == 1)) */
2460 
2461 #if (\
2462      (CONNECTION_ENABLED == 1)\
2463      &&\
2464      (\
2465       (CONTROLLER_SCAN_ENABLED == 1)\
2466       ||\
2467       (\
2468        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
2469        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2470        (CONNECTION_ENABLED == 1) &&\
2471        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
2472       )\
2473      )\
2474     )
LLC_channel_map_update_offline_processing_ucfg(uint8_t conn_idx)2475 uint8_t LLC_channel_map_update_offline_processing_ucfg(uint8_t conn_idx)
2476 {
2477     return LLC_channel_map_update_offline_processing(conn_idx);
2478 }
2479 #endif
2480 
2481 #if ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2482     (CONNECTION_ENABLED == 1))
LLC_conn_init_chc_ctxt_ucfg(uint8_t conn_idx)2483 void LLC_conn_init_chc_ctxt_ucfg(uint8_t conn_idx)
2484 {
2485     LLC_conn_init_chc_ctxt(conn_idx);
2486 }
2487 #endif /* ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2488           (CONNECTION_ENABLED == 1)) */
2489 
2490 #if ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2491     (CONNECTION_ENABLED == 1))
LLC_chc_ll_cntxt_init_ucfg(void)2492 void LLC_chc_ll_cntxt_init_ucfg(void)
2493 {
2494     LLC_chc_ll_cntxt_init();
2495 }
2496 #endif /* ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2497           (CONNECTION_ENABLED == 1)) */
2498 
2499 #if ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2500     (CONNECTION_ENABLED == 1))
LLC_chc_reporting_offline_processing_ucfg(uint8_t conn_idx)2501 uint8_t LLC_chc_reporting_offline_processing_ucfg(uint8_t conn_idx)
2502 {
2503     return LLC_chc_reporting_offline_processing(conn_idx);
2504 }
2505 #endif /* ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
2506           (CONNECTION_ENABLED == 1)) */
2507 
2508 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
2509     (CONNECTION_ENABLED == 1) &&\
2510     (CONTROLLER_ISO_ENABLED == 1))
LL_cpf_cis_processing_ucfg(uint16_t task_idx)2511 void LL_cpf_cis_processing_ucfg(uint16_t task_idx)
2512 {
2513     LL_cpf_cis_processing(task_idx);
2514 }
2515 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
2516           (CONNECTION_ENABLED == 1) &&\
2517           (CONTROLLER_ISO_ENABLED == 1)) */
2518 
2519 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2520     (CONNECTION_ENABLED == 1)
LL_conn_upd_max_tx_time_coded_ucfg(void * params)2521 void LL_conn_upd_max_tx_time_coded_ucfg(void* params)
2522 {
2523     LL_conn_upd_max_tx_time_coded(params);
2524 }
2525 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2526           (CONNECTION_ENABLED == 1) */
2527 
2528 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2529     (CONNECTION_ENABLED == 1)
LL_conn_upd_data_length_change_event_ucfg(void * params)2530 void LL_conn_upd_data_length_change_event_ucfg(void* params)
2531 {
2532     LL_conn_upd_data_length_change_event(params);
2533 }
2534 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2535           (CONNECTION_ENABLED == 1) */
2536 
2537 #if (CONTROLLER_CTE_ENABLED == 1) &&\
2538     (CONNECTION_ENABLED == 1)
llc_conn_init_cte_ctxt_ucfg(uint8_t conn_idx)2539 void llc_conn_init_cte_ctxt_ucfg(uint8_t conn_idx)
2540 {
2541     llc_conn_init_cte_ctxt(conn_idx);
2542 }
2543 #endif /* (CONTROLLER_CTE_ENABLED == 1) &&\
2544           (CONNECTION_ENABLED == 1) */
2545 
2546 #if (CONTROLLER_CTE_ENABLED == 1) &&\
2547     (CONNECTION_ENABLED == 1)
LLC_cte_request_procedure_ucfg(void * params)2548 uint8_t LLC_cte_request_procedure_ucfg(void* params)
2549 {
2550     return LLC_cte_request_procedure(params);
2551 }
2552 #endif /* (CONTROLLER_CTE_ENABLED == 1) &&\
2553           (CONNECTION_ENABLED == 1) */
2554 
2555 #if (CONTROLLER_CTE_ENABLED == 1) &&\
2556     (CONNECTION_ENABLED == 1)
LLC_connection_cte_response_pause_resume_ucfg(uint8_t conn_idx,uint8_t tx_phy)2557 void LLC_connection_cte_response_pause_resume_ucfg(uint8_t conn_idx,
2558                                                    uint8_t tx_phy)
2559 {
2560     LLC_connection_cte_response_pause_resume(conn_idx,
2561                                              tx_phy);
2562 }
2563 #endif /* (CONTROLLER_CTE_ENABLED == 1) &&\
2564           (CONNECTION_ENABLED == 1) */
2565 
2566 #if (CONTROLLER_CTE_ENABLED == 1) &&\
2567     (CONNECTION_ENABLED == 1)
LLC_connection_cte_response_disable_ucfg(uint8_t conn_idx,uint8_t taskslot_no)2568 void LLC_connection_cte_response_disable_ucfg(uint8_t conn_idx,
2569                                               uint8_t taskslot_no)
2570 {
2571     LLC_connection_cte_response_disable(conn_idx,
2572                                         taskslot_no);
2573 }
2574 #endif /* (CONTROLLER_CTE_ENABLED == 1) &&\
2575           (CONNECTION_ENABLED == 1) */
2576 
2577 #if (CONTROLLER_CTE_ENABLED == 1)
llc_cte_process_rx_cte_ucfg(void * params,uint8_t cte_type)2578 void llc_cte_process_rx_cte_ucfg(void* params,
2579                                  uint8_t cte_type)
2580 {
2581     llc_cte_process_rx_cte(params,
2582                            cte_type);
2583 }
2584 #endif /* (CONTROLLER_CTE_ENABLED == 1) */
2585 
2586 #if (CONNECTION_ENABLED == 1)
LLC_authenticated_payload_timeout_processing_ucfg(uint16_t task_idx)2587 void LLC_authenticated_payload_timeout_processing_ucfg(uint16_t task_idx)
2588 {
2589     LLC_authenticated_payload_timeout_processing(task_idx);
2590 }
2591 #endif /* (CONNECTION_ENABLED == 1) */
2592 
2593 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2594     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2595     (CONTROLLER_SCAN_ENABLED == 1) &&\
2596     (CONNECTION_ENABLED == 1)
llc_past_mem_allocate_ucfg(uint8_t scan_en,uint8_t ext_en,uint8_t pscan_en,uint8_t conn_en)2597 void llc_past_mem_allocate_ucfg(uint8_t scan_en,
2598                                 uint8_t ext_en,
2599                                 uint8_t pscan_en,
2600                                 uint8_t conn_en)
2601 {
2602     llc_past_mem_allocate(scan_en,
2603                           ext_en,
2604                           pscan_en,
2605                           conn_en);
2606 }
2607 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2608           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2609           (CONTROLLER_SCAN_ENABLED == 1) &&\
2610           (CONNECTION_ENABLED == 1) */
2611 
2612 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2613     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2614     (CONTROLLER_SCAN_ENABLED == 1) &&\
2615     (CONNECTION_ENABLED == 1)
LL_past_load_txctrl_packet_from_scanner_ucfg(void * params,uint8_t * pdu_p,uint32_t instant_anchor,uint32_t connect_interval,uint16_t connect_event_count,uint16_t connect_event_cnt)2616 void LL_past_load_txctrl_packet_from_scanner_ucfg(void* params,
2617                                                   uint8_t* pdu_p,
2618                                                   uint32_t instant_anchor,
2619                                                   uint32_t connect_interval,
2620                                                   uint16_t connect_event_count,
2621                                                   uint16_t connect_event_cnt)
2622 {
2623     LL_past_load_txctrl_packet_from_scanner(params,
2624                                             pdu_p,
2625                                             instant_anchor,
2626                                             connect_interval,
2627                                             connect_event_count,
2628                                             connect_event_cnt);
2629 }
2630 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2631           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2632           (CONTROLLER_SCAN_ENABLED == 1) &&\
2633           (CONNECTION_ENABLED == 1) */
2634 
2635 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2636     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2637     (CONTROLLER_SCAN_ENABLED == 1) &&\
2638     (CONNECTION_ENABLED == 1)
LL_periodicscan_deploy_scanner_from_past_ucfg(void * params,uint8_t conn_idx,uint8_t pawr_feat)2639 void LL_periodicscan_deploy_scanner_from_past_ucfg(void* params,
2640                                                    uint8_t conn_idx,
2641                                                    uint8_t pawr_feat)
2642 {
2643     LL_periodicscan_deploy_scanner_from_past(params,
2644                                              conn_idx,
2645                                              pawr_feat);
2646 }
2647 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2648           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2649           (CONTROLLER_SCAN_ENABLED == 1) &&\
2650           (CONNECTION_ENABLED == 1) */
2651 
2652 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2653     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2654     (CONTROLLER_SCAN_ENABLED == 1) &&\
2655     (CONNECTION_ENABLED == 1)
LL_past_initialize_connect_context_ucfg(uint8_t conn_idx)2656 void LL_past_initialize_connect_context_ucfg(uint8_t conn_idx)
2657 {
2658     LL_past_initialize_connect_context(conn_idx);
2659 }
2660 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2661           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2662           (CONTROLLER_SCAN_ENABLED == 1) &&\
2663           (CONNECTION_ENABLED == 1) */
2664 
2665 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2666     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2667     (CONTROLLER_SCAN_ENABLED == 1) &&\
2668     (CONNECTION_ENABLED == 1)
LL_past_default_params_ucfg(uint8_t conn_idx)2669 void LL_past_default_params_ucfg(uint8_t conn_idx)
2670 {
2671     LL_past_default_params(conn_idx);
2672 }
2673 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2674           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2675           (CONTROLLER_SCAN_ENABLED == 1) &&\
2676           (CONNECTION_ENABLED == 1) */
2677 
2678 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2679     (CONNECTION_ENABLED == 1))
llc_conn_init_pcl_ctxt_ucfg(uint8_t conn_idx)2680 void llc_conn_init_pcl_ctxt_ucfg(uint8_t conn_idx)
2681 {
2682     llc_conn_init_pcl_ctxt(conn_idx);
2683 }
2684 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2685           (CONNECTION_ENABLED == 1)) */
2686 
2687 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2688     (CONNECTION_ENABLED == 1))
LLC_pcl_hal_cntxt_init_ucfg(uintptr_t pcl_cntxt_p)2689 void LLC_pcl_hal_cntxt_init_ucfg(uintptr_t pcl_cntxt_p)
2690 {
2691     LLC_pcl_hal_cntxt_init(pcl_cntxt_p);
2692 }
2693 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2694           (CONNECTION_ENABLED == 1)) */
2695 
2696 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2697     (CONNECTION_ENABLED == 1))
LLC_pcl_incr_rx_packets_ucfg(uint8_t conn_idx)2698 void LLC_pcl_incr_rx_packets_ucfg(uint8_t conn_idx)
2699 {
2700     LLC_pcl_incr_rx_packets(conn_idx);
2701 }
2702 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2703           (CONNECTION_ENABLED == 1)) */
2704 
2705 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2706     (CONNECTION_ENABLED == 1))
LLC_pcl_update_avg_rssi_ucfg(void * params)2707 void LLC_pcl_update_avg_rssi_ucfg(void* params)
2708 {
2709     LLC_pcl_update_avg_rssi(params);
2710 }
2711 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2712           (CONNECTION_ENABLED == 1)) */
2713 
2714 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2715     (CONNECTION_ENABLED == 1))
LLC_pcl_set_radio_tx_power_conn_start_ucfg(uint8_t conn_idx)2716 void LLC_pcl_set_radio_tx_power_conn_start_ucfg(uint8_t conn_idx)
2717 {
2718     LLC_pcl_set_radio_tx_power_conn_start(conn_idx);
2719 }
2720 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2721           (CONNECTION_ENABLED == 1)) */
2722 
2723 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2724     (CONNECTION_ENABLED == 1))
LLC_pcl_get_radio_tx_power_ucfg(uint8_t conn_idx,uint8_t phy_idx)2725 uint8_t LLC_pcl_get_radio_tx_power_ucfg(uint8_t conn_idx,
2726                                         uint8_t phy_idx)
2727 {
2728     return LLC_pcl_get_radio_tx_power(conn_idx,
2729                                       phy_idx);
2730 }
2731 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2732           (CONNECTION_ENABLED == 1)) */
2733 
2734 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2735     (CONNECTION_ENABLED == 1))
LLC_pcl_set_radio_tx_power_and_eval_indication_ucfg(uint8_t conn_idx,uint8_t send_ind,int8_t ind_delta,uint8_t change_txpower)2736 void LLC_pcl_set_radio_tx_power_and_eval_indication_ucfg(uint8_t conn_idx,
2737                                                          uint8_t send_ind,
2738                                                          int8_t ind_delta,
2739                                                          uint8_t change_txpower)
2740 {
2741     LLC_pcl_set_radio_tx_power_and_eval_indication(conn_idx,
2742                                                    send_ind,
2743                                                    ind_delta,
2744                                                    change_txpower);
2745 }
2746 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2747           (CONNECTION_ENABLED == 1)) */
2748 
2749 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2750     (CONNECTION_ENABLED == 1))
LLC_pcl_offline_processing_ucfg(uint8_t conn_idx)2751 uint8_t LLC_pcl_offline_processing_ucfg(uint8_t conn_idx)
2752 {
2753     return LLC_pcl_offline_processing(conn_idx);
2754 }
2755 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2756           (CONNECTION_ENABLED == 1)) */
2757 
2758 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2759     (CONNECTION_ENABLED == 1))
LL_Read_RSSI_ucfg(int8_t * rssiVal,uint16_t connHandle)2760 tBleStatus LL_Read_RSSI_ucfg(int8_t* rssiVal,
2761                              uint16_t connHandle)
2762 {
2763     return LL_Read_RSSI(rssiVal,
2764                         connHandle);
2765 }
2766 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
2767           (CONNECTION_ENABLED == 1)) */
2768 
2769 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2770     (CONNECTION_ENABLED == 1)
LLC_pcl_get_number_of_phys_ucfg(void)2771 uint8_t LLC_pcl_get_number_of_phys_ucfg(void)
2772 {
2773     return LLC_pcl_get_number_of_phys();
2774 }
2775 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2776           (CONNECTION_ENABLED == 1) */
2777 
2778 #if (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
2779     (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2780     (CONNECTION_ENABLED == 1)
LL_phy_upd_compute_data_PDU_length_params_ucfg(void * params)2781 void LL_phy_upd_compute_data_PDU_length_params_ucfg(void* params)
2782 {
2783     LL_phy_upd_compute_data_PDU_length_params(params);
2784 }
2785 #endif /* (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
2786           (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2787           (CONNECTION_ENABLED == 1) */
2788 
2789 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1)
LL_phy_upd_pending_ucfg(uint8_t conn_idx)2790 uint8_t LL_phy_upd_pending_ucfg(uint8_t conn_idx)
2791 {
2792     return LL_phy_upd_pending(conn_idx);
2793 }
2794 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) */
2795 
2796 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2797     (CONNECTION_ENABLED == 1)
LL_phy_update_init_ucfg(void)2798 tBleStatus LL_phy_update_init_ucfg(void)
2799 {
2800     return LL_phy_update_init();
2801 }
2802 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2803           (CONNECTION_ENABLED == 1) */
2804 
2805 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2806     (CONNECTION_ENABLED == 1)
LL_phy_update_init_per_st_data_ucfg(uint8_t conn_idx)2807 tBleStatus LL_phy_update_init_per_st_data_ucfg(uint8_t conn_idx)
2808 {
2809     return LL_phy_update_init_per_st_data(conn_idx);
2810 }
2811 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2812           (CONNECTION_ENABLED == 1) */
2813 
2814 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2815     (CONNECTION_ENABLED == 1)
LL_phy_upd_evt_pending_check_isr_ucfg(uint8_t conn_idx)2816 void LL_phy_upd_evt_pending_check_isr_ucfg(uint8_t conn_idx)
2817 {
2818     LL_phy_upd_evt_pending_check_isr(conn_idx);
2819 }
2820 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
2821           (CONNECTION_ENABLED == 1) */
2822 
2823 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2824     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2825     (CONTROLLER_CTE_ENABLED == 1)
LLC_blueapi_cte_ucfg(void * params)2826 void LLC_blueapi_cte_ucfg(void* params)
2827 {
2828     LLC_blueapi_cte(params);
2829 }
2830 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2831           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2832           (CONTROLLER_CTE_ENABLED == 1) */
2833 
2834 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2835     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2836     (CONTROLLER_CTE_ENABLED == 1)
LLC_connless_process_rx_cte_ucfg(uint8_t iq_samples_ready,void * params,uint8_t iq_samples_number,uint8_t rx_cte_type,uint8_t channel)2837 void LLC_connless_process_rx_cte_ucfg(uint8_t iq_samples_ready,
2838                                       void* params,
2839                                       uint8_t iq_samples_number,
2840                                       uint8_t rx_cte_type,
2841                                       uint8_t channel)
2842 {
2843     LLC_connless_process_rx_cte(iq_samples_ready,
2844                                 params,
2845                                 iq_samples_number,
2846                                 rx_cte_type,
2847                                 channel);
2848 }
2849 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2850           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2851           (CONTROLLER_CTE_ENABLED == 1) */
2852 
2853 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2854     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2855     (CONTROLLER_CTE_ENABLED == 1)
LLC_check_iq_samples_ready_ucfg(uint8_t * iq_samples_number,uint8_t * channel,uint8_t taskslot_no)2856 uint8_t LLC_check_iq_samples_ready_ucfg(uint8_t* iq_samples_number,
2857                                      uint8_t* channel,
2858                                      uint8_t taskslot_no)
2859 {
2860     return LLC_check_iq_samples_ready(iq_samples_number,
2861                                       channel,
2862                                       taskslot_no);
2863 }
2864 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2865           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2866           (CONTROLLER_CTE_ENABLED == 1) */
2867 
2868 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2869     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2870     (CONTROLLER_SCAN_ENABLED == 1) &&\
2871     (CONTROLLER_CTE_ENABLED == 1)
llc_cte_init_ucfg(void)2872 void llc_cte_init_ucfg(void)
2873 {
2874     llc_cte_init();
2875 }
2876 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2877           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2878           (CONTROLLER_SCAN_ENABLED == 1) &&\
2879           (CONTROLLER_CTE_ENABLED == 1) */
2880 
2881 #if (CONTROLLER_CTE_ENABLED == 1)
llc_cte_mem_allocate_ucfg(uint8_t cte_en,uint8_t scan_en,uint8_t ext_en,uint8_t periodic_en)2882 void llc_cte_mem_allocate_ucfg(uint8_t cte_en,
2883                                uint8_t scan_en,
2884                                uint8_t ext_en,
2885                                uint8_t periodic_en)
2886 {
2887     llc_cte_mem_allocate(cte_en,
2888                          scan_en,
2889                          ext_en,
2890                          periodic_en);
2891 }
2892 #endif /* (CONTROLLER_CTE_ENABLED == 1) */
2893 
2894 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2895     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2896     (CONTROLLER_SCAN_ENABLED == 1) &&\
2897     (CONTROLLER_CTE_ENABLED == 1)
llc_cte_timer_error_ucfg(void)2898 void llc_cte_timer_error_ucfg(void)
2899 {
2900     llc_cte_timer_error();
2901 }
2902 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2903           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2904           (CONTROLLER_SCAN_ENABLED == 1) &&\
2905           (CONTROLLER_CTE_ENABLED == 1) */
2906 
2907 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2908     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2909     (CONTROLLER_SCAN_ENABLED == 1) &&\
2910     (CONTROLLER_CTE_ENABLED == 1)
llc_cte_timer_start_ucfg(void * params)2911 void llc_cte_timer_start_ucfg(void* params)
2912 {
2913     llc_cte_timer_start(params);
2914 }
2915 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2916           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2917           (CONTROLLER_SCAN_ENABLED == 1) &&\
2918           (CONTROLLER_CTE_ENABLED == 1) */
2919 
2920 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2921     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2922     (CONTROLLER_SCAN_ENABLED == 1) &&\
2923     (CONTROLLER_CTE_ENABLED == 1)
llc_cte_timer_stop_ucfg(void)2924 uint8_t llc_cte_timer_stop_ucfg(void)
2925 {
2926     return llc_cte_timer_stop();
2927 }
2928 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
2929           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
2930           (CONTROLLER_SCAN_ENABLED == 1) &&\
2931           (CONTROLLER_CTE_ENABLED == 1) */
2932 
2933 #if (CONTROLLER_CTE_ENABLED == 1)
LLC_test_process_rx_cte_ucfg(void * params)2934 void LLC_test_process_rx_cte_ucfg(void* params)
2935 {
2936     LLC_test_process_rx_cte(params);
2937 }
2938 #endif /* (CONTROLLER_CTE_ENABLED == 1) */
2939 
2940 #if (CONTROLLER_CTE_ENABLED == 1)
LLC_test_set_cte_ucfg(void * params)2941 void LLC_test_set_cte_ucfg(void* params)
2942 {
2943     LLC_test_set_cte(params);
2944 }
2945 #endif /* (CONTROLLER_CTE_ENABLED == 1) */
2946 
2947 #if (CONNECTION_ENABLED == 1)
ADV_ISR_connect_request_received_ucfg(void * pointer,uint8_t * packet,void * PeerIDAddress_p)2948 void ADV_ISR_connect_request_received_ucfg(void* pointer,
2949                                            uint8_t* packet,
2950                                            void* PeerIDAddress_p)
2951 {
2952     ADV_ISR_connect_request_received(pointer,
2953                                      packet,
2954                                      PeerIDAddress_p);
2955 }
2956 #endif /* (CONNECTION_ENABLED == 1) */
2957 
2958 #if (CONNECTION_ENABLED == 1)
LL_eadv_EauxIsr_connect_response_sent_ucfg(void * pointer)2959 void LL_eadv_EauxIsr_connect_response_sent_ucfg(void* pointer)
2960 {
2961     LL_eadv_EauxIsr_connect_response_sent(pointer);
2962 }
2963 #endif /* (CONNECTION_ENABLED == 1) */
2964 
2965 #if (CONNECTION_ENABLED == 1)
LL_eadv_EauxIsr_connect_request_received_ucfg(void * pointer,uint8_t * calibration_required)2966 void LL_eadv_EauxIsr_connect_request_received_ucfg(void* pointer,
2967                                                    uint8_t* calibration_required)
2968 {
2969     LL_eadv_EauxIsr_connect_request_received(pointer,
2970                                              calibration_required);
2971 }
2972 #endif /* (CONNECTION_ENABLED == 1) */
2973 
2974 #if (CONNECTION_ENABLED == 1)
EADV_start_request_radio_tasks_ucfg(void * pointer)2975 uint8_t EADV_start_request_radio_tasks_ucfg(void* pointer)
2976 {
2977     return EADV_start_request_radio_tasks(pointer);
2978 }
2979 #endif /* (CONNECTION_ENABLED == 1) */
2980 
2981 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
llc_eadv_max_supported_data_check_ucfg(uint16_t data_length,void * pointer)2982 tBleStatus llc_eadv_max_supported_data_check_ucfg(uint16_t data_length,
2983                                                   void* pointer)
2984 {
2985     return llc_eadv_max_supported_data_check(data_length,
2986                                              pointer);
2987 }
2988 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
2989 
2990 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
LL_eadv_start_extended_ucfg(void * pointer)2991 void LL_eadv_start_extended_ucfg(void* pointer)
2992 {
2993     LL_eadv_start_extended(pointer);
2994 }
2995 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
2996 
2997 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
ext_adv_scan_enabled_ucfg(void)2998 uint8_t ext_adv_scan_enabled_ucfg(void)
2999 {
3000     return ext_adv_scan_enabled();
3001 }
3002 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
3003 
3004 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
3005     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
LL_Clear_Advertising_Sets_ucfg(void)3006 tBleStatus LL_Clear_Advertising_Sets_ucfg(void)
3007 {
3008     return LL_Clear_Advertising_Sets();
3009 }
3010 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
3011           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
3012 
3013 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
3014     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
LL_Remove_Advertising_Set_ucfg(uint16_t Advertising_Handle)3015 tBleStatus LL_Remove_Advertising_Set_ucfg(uint16_t Advertising_Handle)
3016 {
3017     return LL_Remove_Advertising_Set(Advertising_Handle);
3018 }
3019 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
3020           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
3021 
3022 #if (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
3023     (CONNECTION_ENABLED == 1)
Data_Len_Update_Offline_Processing_ucfg(void * params,uint32_t ctrl_flds)3024 uint8_t Data_Len_Update_Offline_Processing_ucfg(void* params,
3025                                              uint32_t ctrl_flds)
3026 {
3027     return Data_Len_Update_Offline_Processing(params,
3028                                               ctrl_flds);
3029 }
3030 #endif /* (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
3031           (CONNECTION_ENABLED == 1) */
3032 
3033 #if (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1)
ll_write_supported_data_ucfg(uint16_t Supported_Max_Tx_Octets,uint16_t Supported_Max_Tx_Time,uint16_t Supported_Max_Rx_Octets,uint16_t Supported_Max_Rx_Time)3034 tBleStatus ll_write_supported_data_ucfg(uint16_t Supported_Max_Tx_Octets,
3035                                         uint16_t Supported_Max_Tx_Time,
3036                                         uint16_t Supported_Max_Rx_Octets,
3037                                         uint16_t Supported_Max_Rx_Time)
3038 {
3039     return ll_write_supported_data(Supported_Max_Tx_Octets,
3040                                    Supported_Max_Tx_Time,
3041                                    Supported_Max_Rx_Octets,
3042                                    Supported_Max_Rx_Time);
3043 }
3044 #endif /* (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) */
3045 
3046 #if (CONNECTION_ENABLED == 1)
LL_init_ucfg(uint8_t dataLenExt,uint8_t PhyUpd,uint8_t ExtAdvScan,uint8_t CtrlPriv,uint8_t ScanSupp,uint8_t PerAdvScan,uint8_t PerAdvScanWr,uint8_t Cte,uint8_t Pcl,uint8_t Cns,uint8_t Chc)3047 void LL_init_ucfg(uint8_t dataLenExt,
3048                   uint8_t PhyUpd,
3049                   uint8_t ExtAdvScan,
3050                   uint8_t CtrlPriv,
3051                   uint8_t ScanSupp,
3052                   uint8_t PerAdvScan,
3053                   uint8_t PerAdvScanWr,
3054                   uint8_t Cte,
3055                   uint8_t Pcl,
3056                   uint8_t Cns,
3057                   uint8_t Chc)
3058 {
3059     LL_init(dataLenExt,
3060             PhyUpd,
3061             ExtAdvScan,
3062             CtrlPriv,
3063             ScanSupp,
3064             PerAdvScan,
3065             PerAdvScanWr,
3066             Cte,
3067             Pcl,
3068             Cns,
3069             Chc);
3070 }
3071 #endif /* (CONNECTION_ENABLED == 1) */
3072 
3073 #if (BLESTACK_CONTROLLER_ONLY == 0)
3074 #if (CONNECTION_ENABLED == 1)
smp_debug_trudy__set_config_ucfg(uint32_t config)3075 tBleStatus smp_debug_trudy__set_config_ucfg(uint32_t config)
3076 {
3077     return smp_debug_trudy__set_config(config);
3078 }
3079 #endif /* (CONNECTION_ENABLED == 1) */
3080 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3081 
3082 #if (BLESTACK_CONTROLLER_ONLY == 0)
3083 #if (\
3084      (CONNECTION_ENABLED == 1)\
3085      &&\
3086      (\
3087       (CONTROLLER_SCAN_ENABLED == 1)\
3088       ||\
3089       (\
3090        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
3091        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
3092        (CONNECTION_ENABLED == 1) &&\
3093        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
3094       )\
3095      )\
3096     )
smp_start_encryption_ucfg(void * params)3097 tBleStatus smp_start_encryption_ucfg(void* params)
3098 {
3099     return smp_start_encryption(params);
3100 }
3101 #endif
3102 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3103 
3104 #if (BLESTACK_CONTROLLER_ONLY == 0)
3105 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
3106     (CONNECTION_ENABLED == 1)
smp_pp1_cei_send_pairing_request_ucfg(void * params)3107 tBleStatus smp_pp1_cei_send_pairing_request_ucfg(void* params)
3108 {
3109     return smp_pp1_cei_send_pairing_request(params);
3110 }
3111 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
3112           (CONNECTION_ENABLED == 1) */
3113 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3114 
3115 #if (BLESTACK_CONTROLLER_ONLY == 0)
3116 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3117     (CONNECTION_ENABLED == 1))
smp_pp1_cei_rxp_pairing_response_excerpt_scp_ucfg(void * params)3118 tBleStatus smp_pp1_cei_rxp_pairing_response_excerpt_scp_ucfg(void* params)
3119 {
3120     return smp_pp1_cei_rxp_pairing_response_excerpt_scp(params);
3121 }
3122 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3123           (CONNECTION_ENABLED == 1)) */
3124 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3125 
3126 #if (BLESTACK_CONTROLLER_ONLY == 0)
3127 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3128     (CONNECTION_ENABLED == 1))
smp_pp2_cei_auth_stage1_start_excerpt_scp_ucfg(void * params)3129 void smp_pp2_cei_auth_stage1_start_excerpt_scp_ucfg(void* params)
3130 {
3131     smp_pp2_cei_auth_stage1_start_excerpt_scp(params);
3132 }
3133 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3134           (CONNECTION_ENABLED == 1)) */
3135 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3136 
3137 #if (BLESTACK_CONTROLLER_ONLY == 0)
3138 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3139     (CONNECTION_ENABLED == 1))
smp_pp2_per_auth_stage1_start_excerpt_scp_ucfg(void * params)3140 void smp_pp2_per_auth_stage1_start_excerpt_scp_ucfg(void* params)
3141 {
3142     smp_pp2_per_auth_stage1_start_excerpt_scp(params);
3143 }
3144 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3145           (CONNECTION_ENABLED == 1)) */
3146 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3147 
3148 #if (BLESTACK_CONTROLLER_ONLY == 0)
3149 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3150     (CONNECTION_ENABLED == 1))
smp_pp2_cei_send_pairing_confirm_excerpt_scp_ucfg(void * params)3151 void smp_pp2_cei_send_pairing_confirm_excerpt_scp_ucfg(void* params)
3152 {
3153     smp_pp2_cei_send_pairing_confirm_excerpt_scp(params);
3154 }
3155 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3156           (CONNECTION_ENABLED == 1)) */
3157 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3158 
3159 #if (BLESTACK_CONTROLLER_ONLY == 0)
3160 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3161     (CONNECTION_ENABLED == 1))
smp_pp2_cei_rx_process_pairing_random_excerpt1_scp_ucfg(void * params)3162 tBleStatus smp_pp2_cei_rx_process_pairing_random_excerpt1_scp_ucfg(void* params)
3163 {
3164     return smp_pp2_cei_rx_process_pairing_random_excerpt1_scp(params);
3165 }
3166 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3167           (CONNECTION_ENABLED == 1)) */
3168 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3169 
3170 #if (BLESTACK_CONTROLLER_ONLY == 0)
3171 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3172     (CONNECTION_ENABLED == 1))
smp_pp2_cei_rx_process_pairing_random_excerpt2_scp_ucfg(void * params)3173 void smp_pp2_cei_rx_process_pairing_random_excerpt2_scp_ucfg(void* params)
3174 {
3175     smp_pp2_cei_rx_process_pairing_random_excerpt2_scp(params);
3176 }
3177 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3178           (CONNECTION_ENABLED == 1)) */
3179 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3180 
3181 #if (BLESTACK_CONTROLLER_ONLY == 0)
3182 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3183     (CONNECTION_ENABLED == 1))
smp_pp2_per_rx_process_pairing_confirm_excerpt_scp_ucfg(void * params)3184 void smp_pp2_per_rx_process_pairing_confirm_excerpt_scp_ucfg(void* params)
3185 {
3186     smp_pp2_per_rx_process_pairing_confirm_excerpt_scp(params);
3187 }
3188 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3189           (CONNECTION_ENABLED == 1)) */
3190 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3191 
3192 #if (BLESTACK_CONTROLLER_ONLY == 0)
3193 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3194     (CONNECTION_ENABLED == 1))
smp_pp2_per_rx_process_pairing_random_excerpt_scp_ucfg(void * params)3195 void smp_pp2_per_rx_process_pairing_random_excerpt_scp_ucfg(void* params)
3196 {
3197     smp_pp2_per_rx_process_pairing_random_excerpt_scp(params);
3198 }
3199 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3200           (CONNECTION_ENABLED == 1)) */
3201 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3202 
3203 #if (BLESTACK_CONTROLLER_ONLY == 0)
3204 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3205     (CONNECTION_ENABLED == 1))
smp_scp_init_ucfg(uint8_t use_debug_key)3206 void smp_scp_init_ucfg(uint8_t use_debug_key)
3207 {
3208     smp_scp_init(use_debug_key);
3209 }
3210 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3211           (CONNECTION_ENABLED == 1)) */
3212 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3213 
3214 #if (BLESTACK_CONTROLLER_ONLY == 0)
3215 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3216     (CONNECTION_ENABLED == 1))
smp_scp_continue_on_exclusive_sc_pairing_ucfg(void * params)3217 tBleStatus smp_scp_continue_on_exclusive_sc_pairing_ucfg(void* params)
3218 {
3219     return smp_scp_continue_on_exclusive_sc_pairing(params);
3220 }
3221 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3222           (CONNECTION_ENABLED == 1)) */
3223 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3224 
3225 #if (BLESTACK_CONTROLLER_ONLY == 0)
3226 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3227     (CONNECTION_ENABLED == 1))
smp_scp_public_key_prepare_and_exchange_ucfg(void * params)3228 tBleStatus smp_scp_public_key_prepare_and_exchange_ucfg(void* params)
3229 {
3230     return smp_scp_public_key_prepare_and_exchange(params);
3231 }
3232 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3233           (CONNECTION_ENABLED == 1)) */
3234 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3235 
3236 #if (BLESTACK_CONTROLLER_ONLY == 0)
3237 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3238     (CONNECTION_ENABLED == 1))
smp_scp_oob_generate_new_local_data_ucfg(void)3239 tBleStatus smp_scp_oob_generate_new_local_data_ucfg(void)
3240 {
3241     return smp_scp_oob_generate_new_local_data();
3242 }
3243 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3244           (CONNECTION_ENABLED == 1)) */
3245 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3246 
3247 #if (BLESTACK_CONTROLLER_ONLY == 0)
3248 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3249     (CONNECTION_ENABLED == 1))
smp_scp_stats_update_on_pairing_complete_ucfg(void * params)3250 void smp_scp_stats_update_on_pairing_complete_ucfg(void* params)
3251 {
3252     smp_scp_stats_update_on_pairing_complete(params);
3253 }
3254 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3255           (CONNECTION_ENABLED == 1)) */
3256 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3257 
3258 #if (BLESTACK_CONTROLLER_ONLY == 0)
3259 #if (CONNECTION_ENABLED == 1)
smp_fsm_process_actions_wrt_state_tsk_ucfg(uint16_t task_idx)3260 void smp_fsm_process_actions_wrt_state_tsk_ucfg(uint16_t task_idx)
3261 {
3262     smp_fsm_process_actions_wrt_state_tsk(task_idx);
3263 }
3264 #endif /* (CONNECTION_ENABLED == 1) */
3265 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3266 
3267 #if (BLESTACK_CONTROLLER_ONLY == 0)
3268 #if ((SECURE_CONNECTIONS_ENABLED == 1))
smp_fsm_execute_actions_scp_phase2as2_ucfg(void * params)3269 void smp_fsm_execute_actions_scp_phase2as2_ucfg(void* params)
3270 {
3271     smp_fsm_execute_actions_scp_phase2as2(params);
3272 }
3273 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1)) */
3274 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3275 
3276 #if (BLESTACK_CONTROLLER_ONLY == 0)
3277 #if (\
3278      (CONNECTION_ENABLED == 1)\
3279      &&\
3280      (\
3281       (CONTROLLER_SCAN_ENABLED == 1)\
3282       ||\
3283       (\
3284        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
3285        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
3286        (CONNECTION_ENABLED == 1) &&\
3287        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
3288       )\
3289      )\
3290     )
smp_fsm_execute_actions_excerpt_cei_ucfg(void * params)3291 void smp_fsm_execute_actions_excerpt_cei_ucfg(void* params)
3292 {
3293     smp_fsm_execute_actions_excerpt_cei(params);
3294 }
3295 #endif
3296 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3297 
3298 #if (BLESTACK_CONTROLLER_ONLY == 0)
3299 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3300     (CONNECTION_ENABLED == 1))
smp_pka_process_ecc_computation_tsk_ucfg(uint16_t task_idx)3301 void smp_pka_process_ecc_computation_tsk_ucfg(uint16_t task_idx)
3302 {
3303     smp_pka_process_ecc_computation_tsk(task_idx);
3304 }
3305 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3306           (CONNECTION_ENABLED == 1)) */
3307 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3308 
3309 #if (BLESTACK_CONTROLLER_ONLY == 0)
3310 #if (CONNECTION_ENABLED == 1)
smp_rxp_process_rxed_packets_tsk_ucfg(uint16_t task_idx)3311 void smp_rxp_process_rxed_packets_tsk_ucfg(uint16_t task_idx)
3312 {
3313     smp_rxp_process_rxed_packets_tsk(task_idx);
3314 }
3315 #endif /* (CONNECTION_ENABLED == 1) */
3316 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3317 
3318 #if (BLESTACK_CONTROLLER_ONLY == 0)
3319 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3320     (CONNECTION_ENABLED == 1))
smp_rxp_process_exception_cases_excerpt_scp_ucfg(void * params)3321 tBleStatus smp_rxp_process_exception_cases_excerpt_scp_ucfg(void* params)
3322 {
3323     return smp_rxp_process_exception_cases_excerpt_scp(params);
3324 }
3325 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3326           (CONNECTION_ENABLED == 1)) */
3327 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3328 
3329 #if (BLESTACK_CONTROLLER_ONLY == 0)
3330 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3331     (CONNECTION_ENABLED == 1))
smp_rxp_process_wrt_current_fsm_excerpt_scp_ucfg(void * params)3332 tBleStatus smp_rxp_process_wrt_current_fsm_excerpt_scp_ucfg(void* params)
3333 {
3334     return smp_rxp_process_wrt_current_fsm_excerpt_scp(params);
3335 }
3336 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3337           (CONNECTION_ENABLED == 1)) */
3338 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3339 
3340 #if (BLESTACK_CONTROLLER_ONLY == 0)
3341 #if (\
3342      (CONNECTION_ENABLED == 1)\
3343      &&\
3344      (\
3345       (CONTROLLER_SCAN_ENABLED == 1)\
3346       ||\
3347       (\
3348        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
3349        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
3350        (CONNECTION_ENABLED == 1) &&\
3351        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
3352       )\
3353      )\
3354     )
smp_rxp_process_wrt_current_fsm_excerpt_cei_ucfg(void * params)3355 tBleStatus smp_rxp_process_wrt_current_fsm_excerpt_cei_ucfg(void* params)
3356 {
3357     return smp_rxp_process_wrt_current_fsm_excerpt_cei(params);
3358 }
3359 #endif
3360 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3361 
3362 #if (BLESTACK_CONTROLLER_ONLY == 0)
3363 #if (CONNECTION_ENABLED == 1)
smp_init_ucfg(void)3364 void smp_init_ucfg(void)
3365 {
3366     smp_init();
3367 }
3368 #endif /* (CONNECTION_ENABLED == 1) */
3369 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3370 
3371 #if (BLESTACK_CONTROLLER_ONLY == 0)
3372 #if (CONNECTION_ENABLED == 1)
GAT_att_cmn_init_ucfg(void)3373 void GAT_att_cmn_init_ucfg(void)
3374 {
3375     GAT_att_cmn_init();
3376 }
3377 #endif /* (CONNECTION_ENABLED == 1) */
3378 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3379 
3380 #if (BLESTACK_CONTROLLER_ONLY == 0)
3381 #if (CONNECTION_ENABLED == 1)
GAT_att_cmn_timer_expire_tsk_ucfg(uint16_t task_idx)3382 void GAT_att_cmn_timer_expire_tsk_ucfg(uint16_t task_idx)
3383 {
3384     GAT_att_cmn_timer_expire_tsk(task_idx);
3385 }
3386 #endif /* (CONNECTION_ENABLED == 1) */
3387 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3388 
3389 #if (BLESTACK_CONTROLLER_ONLY == 0)
3390 #if (CONNECTION_ENABLED == 1)
GAT_att_cmn_tx_pool_evt_tsk_ucfg(uint16_t task_idx)3391 void GAT_att_cmn_tx_pool_evt_tsk_ucfg(uint16_t task_idx)
3392 {
3393     GAT_att_cmn_tx_pool_evt_tsk(task_idx);
3394 }
3395 #endif /* (CONNECTION_ENABLED == 1) */
3396 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3397 
3398 #if (BLESTACK_CONTROLLER_ONLY == 0)
3399 #if (CONNECTION_ENABLED == 1)
GAT_att_srv_process_rx_pckt_tsk_ucfg(uint16_t task_idx)3400 void GAT_att_srv_process_rx_pckt_tsk_ucfg(uint16_t task_idx)
3401 {
3402     GAT_att_srv_process_rx_pckt_tsk(task_idx);
3403 }
3404 #endif /* (CONNECTION_ENABLED == 1) */
3405 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3406 
3407 #if (BLESTACK_CONTROLLER_ONLY == 0)
3408 #if (CONNECTION_ENABLED == 1)
GAT_srv_db_hash_tsk_ucfg(uint16_t task_idx)3409 void GAT_srv_db_hash_tsk_ucfg(uint16_t task_idx)
3410 {
3411     GAT_srv_db_hash_tsk(task_idx);
3412 }
3413 #endif /* (CONNECTION_ENABLED == 1) */
3414 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3415 
3416 #if (BLESTACK_CONTROLLER_ONLY == 0)
3417 #if (CONNECTION_ENABLED == 1)
GAT_srv_send_srv_change_tsk_ucfg(uint16_t task_idx)3418 void GAT_srv_send_srv_change_tsk_ucfg(uint16_t task_idx)
3419 {
3420     GAT_srv_send_srv_change_tsk(task_idx);
3421 }
3422 #endif /* (CONNECTION_ENABLED == 1) */
3423 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3424 
3425 
3426 /*
3427 * *****************************************************************************
3428 *                      BLE Stack API functions
3429 * *****************************************************************************
3430 */
3431 
3432 #if (BLESTACK_CONTROLLER_ONLY == 0)
3433 #if (CONNECTION_ENABLED == 1)
aci_gap_terminate(uint16_t Connection_Handle,uint8_t Reason)3434 tBleStatus aci_gap_terminate(uint16_t Connection_Handle,
3435                              uint8_t Reason)
3436 {
3437     return aci_gap_terminate_api(Connection_Handle,
3438                                  Reason);
3439 }
3440 #endif /* (CONNECTION_ENABLED == 1) */
3441 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3442 
3443 #if (BLESTACK_CONTROLLER_ONLY == 0)
3444 #if (\
3445      (CONNECTION_ENABLED == 1)\
3446      &&\
3447      (\
3448       (CONTROLLER_SCAN_ENABLED == 1)\
3449       ||\
3450       (\
3451        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
3452        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
3453        (CONNECTION_ENABLED == 1) &&\
3454        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
3455       )\
3456      )\
3457     )
aci_gap_start_connection_update(uint16_t Connection_Handle,uint16_t Connection_Interval_Min,uint16_t Connection_Interval_Max,uint16_t Max_Latency,uint16_t Supervision_Timeout,uint16_t Min_CE_Length,uint16_t Max_CE_Length)3458 tBleStatus aci_gap_start_connection_update(uint16_t Connection_Handle,
3459                                            uint16_t Connection_Interval_Min,
3460                                            uint16_t Connection_Interval_Max,
3461                                            uint16_t Max_Latency,
3462                                            uint16_t Supervision_Timeout,
3463                                            uint16_t Min_CE_Length,
3464                                            uint16_t Max_CE_Length)
3465 {
3466     return aci_gap_start_connection_update_api(Connection_Handle,
3467                                                Connection_Interval_Min,
3468                                                Connection_Interval_Max,
3469                                                Max_Latency,
3470                                                Supervision_Timeout,
3471                                                Min_CE_Length,
3472                                                Max_CE_Length);
3473 }
3474 #endif
3475 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3476 
3477 #if (BLESTACK_CONTROLLER_ONLY == 0)
3478 #if (CONTROLLER_SCAN_ENABLED == 1)
aci_gap_set_scan_configuration(uint8_t duplicate_filtering,uint8_t scanning_filter_policy,uint8_t phy,uint8_t scan_type,uint16_t scan_interval,uint16_t scan_window)3479 tBleStatus aci_gap_set_scan_configuration(uint8_t duplicate_filtering,
3480                                           uint8_t scanning_filter_policy,
3481                                           uint8_t phy,
3482                                           uint8_t scan_type,
3483                                           uint16_t scan_interval,
3484                                           uint16_t scan_window)
3485 {
3486     return aci_gap_set_scan_configuration_api(duplicate_filtering,
3487                                               scanning_filter_policy,
3488                                               phy,
3489                                               scan_type,
3490                                               scan_interval,
3491                                               scan_window);
3492 }
3493 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
3494 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3495 
3496 #if (BLESTACK_CONTROLLER_ONLY == 0)
3497 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
3498     (CONNECTION_ENABLED == 1)
aci_gap_set_connection_configuration(uint8_t phy,uint16_t connection_interval_min,uint16_t connection_interval_max,uint16_t max_latency,uint16_t supervision_timeout,uint16_t min_ce_length,uint16_t max_ce_length)3499 tBleStatus aci_gap_set_connection_configuration(uint8_t phy,
3500                                                 uint16_t connection_interval_min,
3501                                                 uint16_t connection_interval_max,
3502                                                 uint16_t max_latency,
3503                                                 uint16_t supervision_timeout,
3504                                                 uint16_t min_ce_length,
3505                                                 uint16_t max_ce_length)
3506 {
3507     return aci_gap_set_connection_configuration_api(phy,
3508                                                     connection_interval_min,
3509                                                     connection_interval_max,
3510                                                     max_latency,
3511                                                     supervision_timeout,
3512                                                     min_ce_length,
3513                                                     max_ce_length);
3514 }
3515 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
3516           (CONNECTION_ENABLED == 1) */
3517 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3518 
3519 #if (BLESTACK_CONTROLLER_ONLY == 0)
3520 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
3521     (CONNECTION_ENABLED == 1)
aci_gap_create_connection(uint8_t Initiating_PHY,uint8_t Peer_Address_Type,uint8_t Peer_Address[6])3522 tBleStatus aci_gap_create_connection(uint8_t Initiating_PHY,
3523                                      uint8_t Peer_Address_Type,
3524                                      uint8_t Peer_Address[6])
3525 {
3526     return aci_gap_create_connection_api(Initiating_PHY,
3527                                          Peer_Address_Type,
3528                                          Peer_Address);
3529 }
3530 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
3531           (CONNECTION_ENABLED == 1) */
3532 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3533 
3534 #if (BLESTACK_CONTROLLER_ONLY == 0)
3535 #if (CONTROLLER_SCAN_ENABLED == 1)
aci_gap_start_procedure(uint8_t procedure_code,uint8_t phys,uint16_t duration,uint16_t period)3536 tBleStatus aci_gap_start_procedure(uint8_t procedure_code,
3537                                    uint8_t phys,
3538                                    uint16_t duration,
3539                                    uint16_t period)
3540 {
3541     return aci_gap_start_procedure_api(procedure_code,
3542                                        phys,
3543                                        duration,
3544                                        period);
3545 }
3546 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
3547 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3548 
3549 #if (BLESTACK_CONTROLLER_ONLY == 0)
3550 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
3551     (CONNECTION_ENABLED == 1)
aci_gap_discover_name(uint8_t PHYs,uint8_t Peer_Address_Type,uint8_t Peer_Address[6])3552 tBleStatus aci_gap_discover_name(uint8_t PHYs,
3553                                  uint8_t Peer_Address_Type,
3554                                  uint8_t Peer_Address[6])
3555 {
3556     return aci_gap_discover_name_api(PHYs,
3557                                      Peer_Address_Type,
3558                                      Peer_Address);
3559 }
3560 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
3561           (CONNECTION_ENABLED == 1) */
3562 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3563 
3564 #if (BLESTACK_CONTROLLER_ONLY == 0)
3565 #if (CONTROLLER_SCAN_ENABLED == 1)
aci_gap_terminate_proc(uint8_t Procedure_Code)3566 tBleStatus aci_gap_terminate_proc(uint8_t Procedure_Code)
3567 {
3568     return aci_gap_terminate_proc_api(Procedure_Code);
3569 }
3570 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
3571 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3572 
3573 #if (BLESTACK_CONTROLLER_ONLY == 0)
3574 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
3575     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
3576     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
3577     (CONNECTION_ENABLED == 1)
aci_gap_create_periodic_advertising_connection(uint8_t Advertising_Handle,uint8_t Subevent,uint8_t Initiator_Filter_Policy,uint8_t Own_Address_Type,uint8_t Peer_Address_Type,uint8_t Peer_Address[6],uint16_t Connection_Interval_Min,uint16_t Connection_Interval_Max,uint16_t Max_Latency,uint16_t Supervision_Timeout,uint16_t Min_CE_Length,uint16_t Max_CE_Length)3578 tBleStatus aci_gap_create_periodic_advertising_connection(uint8_t Advertising_Handle,
3579                                                           uint8_t Subevent,
3580                                                           uint8_t Initiator_Filter_Policy,
3581                                                           uint8_t Own_Address_Type,
3582                                                           uint8_t Peer_Address_Type,
3583                                                           uint8_t Peer_Address[6],
3584                                                           uint16_t Connection_Interval_Min,
3585                                                           uint16_t Connection_Interval_Max,
3586                                                           uint16_t Max_Latency,
3587                                                           uint16_t Supervision_Timeout,
3588                                                           uint16_t Min_CE_Length,
3589                                                           uint16_t Max_CE_Length)
3590 {
3591     return aci_gap_create_periodic_advertising_connection_api(Advertising_Handle,
3592                                                               Subevent,
3593                                                               Initiator_Filter_Policy,
3594                                                               Own_Address_Type,
3595                                                               Peer_Address_Type,
3596                                                               Peer_Address,
3597                                                               Connection_Interval_Min,
3598                                                               Connection_Interval_Max,
3599                                                               Max_Latency,
3600                                                               Supervision_Timeout,
3601                                                               Min_CE_Length,
3602                                                               Max_CE_Length);
3603 }
3604 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
3605           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
3606           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
3607           (CONNECTION_ENABLED == 1) */
3608 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3609 
3610 #if (BLESTACK_CONTROLLER_ONLY == 0)
3611 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
aci_gap_remove_advertising_set(uint8_t Advertising_Handle)3612 tBleStatus aci_gap_remove_advertising_set(uint8_t Advertising_Handle)
3613 {
3614     return aci_gap_remove_advertising_set_api(Advertising_Handle);
3615 }
3616 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
3617 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3618 
3619 #if (BLESTACK_CONTROLLER_ONLY == 0)
3620 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
aci_gap_clear_advertising_sets(void)3621 tBleStatus aci_gap_clear_advertising_sets(void)
3622 {
3623     return aci_gap_clear_advertising_sets_api();
3624 }
3625 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
3626 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3627 
3628 #if (BLESTACK_CONTROLLER_ONLY == 0)
3629 #if (CONNECTION_ENABLED == 1)
aci_gap_set_io_capability(uint8_t IO_Capability)3630 tBleStatus aci_gap_set_io_capability(uint8_t IO_Capability)
3631 {
3632     return aci_gap_set_io_capability_api(IO_Capability);
3633 }
3634 #endif /* (CONNECTION_ENABLED == 1) */
3635 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3636 
3637 #if (BLESTACK_CONTROLLER_ONLY == 0)
3638 #if (CONNECTION_ENABLED == 1)
aci_gap_set_security_requirements(uint8_t Bonding_Mode,uint8_t MITM_Mode,uint8_t SC_Support,uint8_t KeyPress_Notification_Support,uint8_t Min_Encryption_Key_Size,uint8_t Max_Encryption_Key_Size,uint8_t Pairing_Response)3639 tBleStatus aci_gap_set_security_requirements(uint8_t Bonding_Mode,
3640                                              uint8_t MITM_Mode,
3641                                              uint8_t SC_Support,
3642                                              uint8_t KeyPress_Notification_Support,
3643                                              uint8_t Min_Encryption_Key_Size,
3644                                              uint8_t Max_Encryption_Key_Size,
3645                                              uint8_t Pairing_Response)
3646 {
3647     return aci_gap_set_security_requirements_api(Bonding_Mode,
3648                                                  MITM_Mode,
3649                                                  SC_Support,
3650                                                  KeyPress_Notification_Support,
3651                                                  Min_Encryption_Key_Size,
3652                                                  Max_Encryption_Key_Size,
3653                                                  Pairing_Response);
3654 }
3655 #endif /* (CONNECTION_ENABLED == 1) */
3656 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3657 
3658 #if (BLESTACK_CONTROLLER_ONLY == 0)
3659 #if (CONNECTION_ENABLED == 1)
aci_gap_set_security(uint16_t Connection_Handle,uint8_t Security_Level,uint8_t Force_Pairing)3660 tBleStatus aci_gap_set_security(uint16_t Connection_Handle,
3661                                 uint8_t Security_Level,
3662                                 uint8_t Force_Pairing)
3663 {
3664     return aci_gap_set_security_api(Connection_Handle,
3665                                     Security_Level,
3666                                     Force_Pairing);
3667 }
3668 #endif /* (CONNECTION_ENABLED == 1) */
3669 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3670 
3671 #if (BLESTACK_CONTROLLER_ONLY == 0)
3672 #if (CONNECTION_ENABLED == 1)
aci_gap_pairing_resp(uint16_t Connection_Handle,uint8_t Accept)3673 tBleStatus aci_gap_pairing_resp(uint16_t Connection_Handle,
3674                                 uint8_t Accept)
3675 {
3676     return aci_gap_pairing_resp_api(Connection_Handle,
3677                                     Accept);
3678 }
3679 #endif /* (CONNECTION_ENABLED == 1) */
3680 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3681 
3682 #if (BLESTACK_CONTROLLER_ONLY == 0)
3683 #if (CONNECTION_ENABLED == 1)
aci_gap_passkey_resp(uint16_t Connection_Handle,uint32_t Passkey)3684 tBleStatus aci_gap_passkey_resp(uint16_t Connection_Handle,
3685                                 uint32_t Passkey)
3686 {
3687     return aci_gap_passkey_resp_api(Connection_Handle,
3688                                     Passkey);
3689 }
3690 #endif /* (CONNECTION_ENABLED == 1) */
3691 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3692 
3693 #if (BLESTACK_CONTROLLER_ONLY == 0)
3694 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3695     (CONNECTION_ENABLED == 1))
aci_gap_passkey_input(uint16_t Connection_Handle,uint8_t Input_Type)3696 tBleStatus aci_gap_passkey_input(uint16_t Connection_Handle,
3697                                  uint8_t Input_Type)
3698 {
3699     return aci_gap_passkey_input_api(Connection_Handle,
3700                                      Input_Type);
3701 }
3702 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3703           (CONNECTION_ENABLED == 1)) */
3704 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3705 
3706 #if (BLESTACK_CONTROLLER_ONLY == 0)
3707 #if (CONNECTION_ENABLED == 1)
aci_gap_get_oob_data(uint8_t OOB_Data_Type,uint8_t * Address_Type,uint8_t Address[6],uint8_t * OOB_Data_Len,uint8_t OOB_Data[16])3708 tBleStatus aci_gap_get_oob_data(uint8_t OOB_Data_Type,
3709                                 uint8_t* Address_Type,
3710                                 uint8_t Address[6],
3711                                 uint8_t* OOB_Data_Len,
3712                                 uint8_t OOB_Data[16])
3713 {
3714     return aci_gap_get_oob_data_api(OOB_Data_Type,
3715                                     Address_Type,
3716                                     Address,
3717                                     OOB_Data_Len,
3718                                     OOB_Data);
3719 }
3720 #endif /* (CONNECTION_ENABLED == 1) */
3721 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3722 
3723 #if (BLESTACK_CONTROLLER_ONLY == 0)
3724 #if (CONNECTION_ENABLED == 1)
aci_gap_set_oob_data(uint8_t Device_Type,uint8_t Address_Type,uint8_t Address[6],uint8_t OOB_Data_Type,uint8_t OOB_Data_Len,uint8_t OOB_Data[16])3725 tBleStatus aci_gap_set_oob_data(uint8_t Device_Type,
3726                                 uint8_t Address_Type,
3727                                 uint8_t Address[6],
3728                                 uint8_t OOB_Data_Type,
3729                                 uint8_t OOB_Data_Len,
3730                                 uint8_t OOB_Data[16])
3731 {
3732     return aci_gap_set_oob_data_api(Device_Type,
3733                                     Address_Type,
3734                                     Address,
3735                                     OOB_Data_Type,
3736                                     OOB_Data_Len,
3737                                     OOB_Data);
3738 }
3739 #endif /* (CONNECTION_ENABLED == 1) */
3740 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3741 
3742 #if (BLESTACK_CONTROLLER_ONLY == 0)
3743 #if ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3744     (CONNECTION_ENABLED == 1))
aci_gap_numeric_comparison_value_confirm_yesno(uint16_t Connection_Handle,uint8_t Confirm_Yes_No)3745 tBleStatus aci_gap_numeric_comparison_value_confirm_yesno(uint16_t Connection_Handle,
3746                                                           uint8_t Confirm_Yes_No)
3747 {
3748     return aci_gap_numeric_comparison_value_confirm_yesno_api(Connection_Handle,
3749                                                               Confirm_Yes_No);
3750 }
3751 #endif /* ((SECURE_CONNECTIONS_ENABLED == 1) &&\
3752           (CONNECTION_ENABLED == 1)) */
3753 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3754 
3755 #if (BLESTACK_CONTROLLER_ONLY == 0)
3756 #if (CONNECTION_ENABLED == 1)
aci_gap_get_security_level(uint16_t Connection_Handle,uint8_t * Security_Mode,uint8_t * Security_Level)3757 tBleStatus aci_gap_get_security_level(uint16_t Connection_Handle,
3758                                       uint8_t* Security_Mode,
3759                                       uint8_t* Security_Level)
3760 {
3761     return aci_gap_get_security_level_api(Connection_Handle,
3762                                           Security_Mode,
3763                                           Security_Level);
3764 }
3765 #endif /* (CONNECTION_ENABLED == 1) */
3766 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3767 
3768 #if (BLESTACK_CONTROLLER_ONLY == 0)
3769 #if (CONNECTION_ENABLED == 1)
aci_gap_clear_security_db(void)3770 tBleStatus aci_gap_clear_security_db(void)
3771 {
3772     return aci_gap_clear_security_db_api();
3773 }
3774 #endif /* (CONNECTION_ENABLED == 1) */
3775 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3776 
3777 #if (BLESTACK_CONTROLLER_ONLY == 0)
3778 #if (CONNECTION_ENABLED == 1)
aci_gap_get_bonded_devices(uint8_t Offset,uint8_t Max_Num_Of_Addresses,uint8_t * Num_of_Addresses,Bonded_Device_Entry_t * Bonded_Device_Entry)3779 tBleStatus aci_gap_get_bonded_devices(uint8_t Offset,
3780                                       uint8_t Max_Num_Of_Addresses,
3781                                       uint8_t* Num_of_Addresses,
3782                                       Bonded_Device_Entry_t* Bonded_Device_Entry)
3783 {
3784     return aci_gap_get_bonded_devices_api(Offset,
3785                                           Max_Num_Of_Addresses,
3786                                           Num_of_Addresses,
3787                                           Bonded_Device_Entry);
3788 }
3789 #endif /* (CONNECTION_ENABLED == 1) */
3790 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3791 
3792 #if (BLESTACK_CONTROLLER_ONLY == 0)
3793 #if (CONNECTION_ENABLED == 1)
aci_gap_is_device_bonded(uint8_t Peer_Address_Type,uint8_t Peer_Address[6])3794 tBleStatus aci_gap_is_device_bonded(uint8_t Peer_Address_Type,
3795                                     uint8_t Peer_Address[6])
3796 {
3797     return aci_gap_is_device_bonded_api(Peer_Address_Type,
3798                                         Peer_Address);
3799 }
3800 #endif /* (CONNECTION_ENABLED == 1) */
3801 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3802 
3803 #if (BLESTACK_CONTROLLER_ONLY == 0)
3804 #if (CONNECTION_ENABLED == 1)
aci_gap_remove_bonded_device(uint8_t peerIdentityAddressType,uint8_t peerIdentityDeviceAddress[6])3805 tBleStatus aci_gap_remove_bonded_device(uint8_t peerIdentityAddressType,
3806                                         uint8_t peerIdentityDeviceAddress[6])
3807 {
3808     return aci_gap_remove_bonded_device_api(peerIdentityAddressType,
3809                                             peerIdentityDeviceAddress);
3810 }
3811 #endif /* (CONNECTION_ENABLED == 1) */
3812 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3813 
3814 #if (BLESTACK_CONTROLLER_ONLY == 0)
3815 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_add_service(ble_gatt_srv_def_t * Serv_p)3816 tBleStatus aci_gatt_srv_add_service(ble_gatt_srv_def_t* Serv_p)
3817 {
3818     return aci_gatt_srv_add_service_api(Serv_p);
3819 }
3820 #endif /* (CONNECTION_ENABLED == 1) */
3821 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3822 
3823 #if (BLESTACK_CONTROLLER_ONLY == 0)
3824 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_rm_service(uint16_t Serv_Attr_H)3825 tBleStatus aci_gatt_srv_rm_service(uint16_t Serv_Attr_H)
3826 {
3827     return aci_gatt_srv_rm_service_api(Serv_Attr_H);
3828 }
3829 #endif /* (CONNECTION_ENABLED == 1) */
3830 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3831 
3832 #if (BLESTACK_CONTROLLER_ONLY == 0)
3833 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_get_service_handle(ble_gatt_srv_def_t * Serv_p)3834 uint16_t aci_gatt_srv_get_service_handle(ble_gatt_srv_def_t* Serv_p)
3835 {
3836     return aci_gatt_srv_get_service_handle_api(Serv_p);
3837 }
3838 #endif /* (CONNECTION_ENABLED == 1) */
3839 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3840 
3841 #if (BLESTACK_CONTROLLER_ONLY == 0)
3842 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_include_service(uint16_t Serv_Attr_H,uint16_t Incl_Serv_Attr_H)3843 tBleStatus aci_gatt_srv_include_service(uint16_t Serv_Attr_H,
3844                                         uint16_t Incl_Serv_Attr_H)
3845 {
3846     return aci_gatt_srv_include_service_api(Serv_Attr_H,
3847                                             Incl_Serv_Attr_H);
3848 }
3849 #endif /* (CONNECTION_ENABLED == 1) */
3850 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3851 
3852 #if (BLESTACK_CONTROLLER_ONLY == 0)
3853 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_rm_include_service(uint16_t Incl_Serv_Attr_H)3854 tBleStatus aci_gatt_srv_rm_include_service(uint16_t Incl_Serv_Attr_H)
3855 {
3856     return aci_gatt_srv_rm_include_service_api(Incl_Serv_Attr_H);
3857 }
3858 #endif /* (CONNECTION_ENABLED == 1) */
3859 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3860 
3861 #if (BLESTACK_CONTROLLER_ONLY == 0)
3862 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_get_include_service_handle(uint16_t Serv_Attr_H,ble_gatt_srv_def_t * Included_Srv_p)3863 uint16_t aci_gatt_srv_get_include_service_handle(uint16_t Serv_Attr_H,
3864                                                  ble_gatt_srv_def_t* Included_Srv_p)
3865 {
3866     return aci_gatt_srv_get_include_service_handle_api(Serv_Attr_H,
3867                                                        Included_Srv_p);
3868 }
3869 #endif /* (CONNECTION_ENABLED == 1) */
3870 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3871 
3872 #if (BLESTACK_CONTROLLER_ONLY == 0)
3873 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_add_char(ble_gatt_chr_def_t * Char_p,uint16_t Serv_Attr_H)3874 tBleStatus aci_gatt_srv_add_char(ble_gatt_chr_def_t* Char_p,
3875                                  uint16_t Serv_Attr_H)
3876 {
3877     return aci_gatt_srv_add_char_api(Char_p,
3878                                      Serv_Attr_H);
3879 }
3880 #endif /* (CONNECTION_ENABLED == 1) */
3881 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3882 
3883 #if (BLESTACK_CONTROLLER_ONLY == 0)
3884 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_rm_char(uint16_t Char_Decl_Attr_H)3885 tBleStatus aci_gatt_srv_rm_char(uint16_t Char_Decl_Attr_H)
3886 {
3887     return aci_gatt_srv_rm_char_api(Char_Decl_Attr_H);
3888 }
3889 #endif /* (CONNECTION_ENABLED == 1) */
3890 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3891 
3892 #if (BLESTACK_CONTROLLER_ONLY == 0)
3893 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_get_char_decl_handle(ble_gatt_chr_def_t * Char_p)3894 uint16_t aci_gatt_srv_get_char_decl_handle(ble_gatt_chr_def_t* Char_p)
3895 {
3896     return aci_gatt_srv_get_char_decl_handle_api(Char_p);
3897 }
3898 #endif /* (CONNECTION_ENABLED == 1) */
3899 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3900 
3901 #if (BLESTACK_CONTROLLER_ONLY == 0)
3902 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_add_char_desc(ble_gatt_descr_def_t * Descr_p,uint16_t Char_Attr_H)3903 tBleStatus aci_gatt_srv_add_char_desc(ble_gatt_descr_def_t* Descr_p,
3904                                       uint16_t Char_Attr_H)
3905 {
3906     return aci_gatt_srv_add_char_desc_api(Descr_p,
3907                                           Char_Attr_H);
3908 }
3909 #endif /* (CONNECTION_ENABLED == 1) */
3910 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3911 
3912 #if (BLESTACK_CONTROLLER_ONLY == 0)
3913 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_get_descriptor_handle(ble_gatt_descr_def_t * Descr_p)3914 uint16_t aci_gatt_srv_get_descriptor_handle(ble_gatt_descr_def_t* Descr_p)
3915 {
3916     return aci_gatt_srv_get_descriptor_handle_api(Descr_p);
3917 }
3918 #endif /* (CONNECTION_ENABLED == 1) */
3919 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3920 
3921 #if (BLESTACK_CONTROLLER_ONLY == 0)
3922 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_notify(uint16_t Connection_Handle,uint16_t CID,uint16_t Attr_Handle,uint8_t Flags,uint16_t Val_Length,uint8_t * Val_p)3923 tBleStatus aci_gatt_srv_notify(uint16_t Connection_Handle,
3924                                uint16_t CID,
3925                                uint16_t Attr_Handle,
3926                                uint8_t Flags,
3927                                uint16_t Val_Length,
3928                                uint8_t* Val_p)
3929 {
3930     return aci_gatt_srv_notify_api(Connection_Handle,
3931                                    CID,
3932                                    Attr_Handle,
3933                                    Flags,
3934                                    Val_Length,
3935                                    Val_p);
3936 }
3937 #endif /* (CONNECTION_ENABLED == 1) */
3938 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3939 
3940 #if (BLESTACK_CONTROLLER_ONLY == 0)
3941 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_multi_notify(uint16_t Connection_Handle,uint16_t CID,uint8_t Flags,uint8_t Num_Of_Attr,Gatt_Srv_Notify_Attr_t * Gatt_Srv_Notify_Attr)3942 tBleStatus aci_gatt_srv_multi_notify(uint16_t Connection_Handle,
3943                                      uint16_t CID,
3944                                      uint8_t Flags,
3945                                      uint8_t Num_Of_Attr,
3946                                      Gatt_Srv_Notify_Attr_t* Gatt_Srv_Notify_Attr)
3947 {
3948     return aci_gatt_srv_multi_notify_api(Connection_Handle,
3949                                          CID,
3950                                          Flags,
3951                                          Num_Of_Attr,
3952                                          Gatt_Srv_Notify_Attr);
3953 }
3954 #endif /* (CONNECTION_ENABLED == 1) */
3955 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3956 
3957 #if (BLESTACK_CONTROLLER_ONLY == 0)
3958 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_resp(uint16_t Connection_Handle,uint16_t CID,uint16_t Attr_Handle,uint8_t Error_Code,uint16_t Data_Len,uint8_t * Data_p)3959 tBleStatus aci_gatt_srv_resp(uint16_t Connection_Handle,
3960                              uint16_t CID,
3961                              uint16_t Attr_Handle,
3962                              uint8_t Error_Code,
3963                              uint16_t Data_Len,
3964                              uint8_t* Data_p)
3965 {
3966     return aci_gatt_srv_resp_api(Connection_Handle,
3967                                  CID,
3968                                  Attr_Handle,
3969                                  Error_Code,
3970                                  Data_Len,
3971                                  Data_p);
3972 }
3973 #endif /* (CONNECTION_ENABLED == 1) */
3974 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3975 
3976 #if (BLESTACK_CONTROLLER_ONLY == 0)
3977 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_read_handle_value(uint16_t Attr_Handle,uint16_t * Val_Length_p,uint8_t ** Val_pp)3978 tBleStatus aci_gatt_srv_read_handle_value(uint16_t Attr_Handle,
3979                                           uint16_t* Val_Length_p,
3980                                           uint8_t** Val_pp)
3981 {
3982     return aci_gatt_srv_read_handle_value_api(Attr_Handle,
3983                                               Val_Length_p,
3984                                               Val_pp);
3985 }
3986 #endif /* (CONNECTION_ENABLED == 1) */
3987 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
3988 
3989 #if (BLESTACK_CONTROLLER_ONLY == 0)
3990 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_read_multiple_instance_handle_value(uint16_t Connection_Handle,uint16_t Attr_Handle,uint16_t * Val_Length_p,uint8_t ** Val_pp)3991 tBleStatus aci_gatt_srv_read_multiple_instance_handle_value(uint16_t Connection_Handle,
3992                                                             uint16_t Attr_Handle,
3993                                                             uint16_t* Val_Length_p,
3994                                                             uint8_t** Val_pp)
3995 {
3996     return aci_gatt_srv_read_multiple_instance_handle_value_api(Connection_Handle,
3997                                                                 Attr_Handle,
3998                                                                 Val_Length_p,
3999                                                                 Val_pp);
4000 }
4001 #endif /* (CONNECTION_ENABLED == 1) */
4002 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4003 
4004 #if (BLESTACK_CONTROLLER_ONLY == 0)
4005 #if (CONNECTION_ENABLED == 1)
aci_gatt_srv_write_multiple_instance_handle_value(uint16_t Connection_Handle,uint16_t Attr_Handle,uint16_t Char_Value_Length,uint8_t * Char_Value)4006 tBleStatus aci_gatt_srv_write_multiple_instance_handle_value(uint16_t Connection_Handle,
4007                                                              uint16_t Attr_Handle,
4008                                                              uint16_t Char_Value_Length,
4009                                                              uint8_t* Char_Value)
4010 {
4011     return aci_gatt_srv_write_multiple_instance_handle_value_api(Connection_Handle,
4012                                                                  Attr_Handle,
4013                                                                  Char_Value_Length,
4014                                                                  Char_Value);
4015 }
4016 #endif /* (CONNECTION_ENABLED == 1) */
4017 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4018 
4019 #if (BLESTACK_CONTROLLER_ONLY == 0)
4020 #if (CONNECTION_ENABLED == 1)
aci_gatt_set_event_mask(uint32_t GATT_Evt_Mask)4021 tBleStatus aci_gatt_set_event_mask(uint32_t GATT_Evt_Mask)
4022 {
4023     return aci_gatt_set_event_mask_api(GATT_Evt_Mask);
4024 }
4025 #endif /* (CONNECTION_ENABLED == 1) */
4026 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4027 
4028 #if (BLESTACK_CONTROLLER_ONLY == 0)
4029 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_exchange_config(uint16_t Connection_Handle)4030 tBleStatus aci_gatt_clt_exchange_config(uint16_t Connection_Handle)
4031 {
4032     return aci_gatt_clt_exchange_config_api(Connection_Handle);
4033 }
4034 #endif /* (CONNECTION_ENABLED == 1) */
4035 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4036 
4037 #if (BLESTACK_CONTROLLER_ONLY == 0)
4038 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_disc_all_primary_services(uint16_t Connection_Handle,uint16_t CID)4039 tBleStatus aci_gatt_clt_disc_all_primary_services(uint16_t Connection_Handle,
4040                                                   uint16_t CID)
4041 {
4042     return aci_gatt_clt_disc_all_primary_services_api(Connection_Handle,
4043                                                       CID);
4044 }
4045 #endif /* (CONNECTION_ENABLED == 1) */
4046 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4047 
4048 #if (BLESTACK_CONTROLLER_ONLY == 0)
4049 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_disc_primary_service_by_uuid(uint16_t Connection_Handle,uint16_t CID,uint8_t UUID_Type,UUID_t * UUID)4050 tBleStatus aci_gatt_clt_disc_primary_service_by_uuid(uint16_t Connection_Handle,
4051                                                      uint16_t CID,
4052                                                      uint8_t UUID_Type,
4053                                                      UUID_t* UUID)
4054 {
4055     return aci_gatt_clt_disc_primary_service_by_uuid_api(Connection_Handle,
4056                                                          CID,
4057                                                          UUID_Type,
4058                                                          UUID);
4059 }
4060 #endif /* (CONNECTION_ENABLED == 1) */
4061 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4062 
4063 #if (BLESTACK_CONTROLLER_ONLY == 0)
4064 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_disc_all_char_of_service(uint16_t Connection_Handle,uint16_t CID,uint16_t Start_Handle,uint16_t End_Handle)4065 tBleStatus aci_gatt_clt_disc_all_char_of_service(uint16_t Connection_Handle,
4066                                                  uint16_t CID,
4067                                                  uint16_t Start_Handle,
4068                                                  uint16_t End_Handle)
4069 {
4070     return aci_gatt_clt_disc_all_char_of_service_api(Connection_Handle,
4071                                                      CID,
4072                                                      Start_Handle,
4073                                                      End_Handle);
4074 }
4075 #endif /* (CONNECTION_ENABLED == 1) */
4076 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4077 
4078 #if (BLESTACK_CONTROLLER_ONLY == 0)
4079 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_disc_char_by_uuid(uint16_t Connection_Handle,uint16_t CID,uint16_t Start_Handle,uint16_t End_Handle,uint8_t UUID_Type,UUID_t * UUID)4080 tBleStatus aci_gatt_clt_disc_char_by_uuid(uint16_t Connection_Handle,
4081                                           uint16_t CID,
4082                                           uint16_t Start_Handle,
4083                                           uint16_t End_Handle,
4084                                           uint8_t UUID_Type,
4085                                           UUID_t* UUID)
4086 {
4087     return aci_gatt_clt_disc_char_by_uuid_api(Connection_Handle,
4088                                               CID,
4089                                               Start_Handle,
4090                                               End_Handle,
4091                                               UUID_Type,
4092                                               UUID);
4093 }
4094 #endif /* (CONNECTION_ENABLED == 1) */
4095 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4096 
4097 #if (BLESTACK_CONTROLLER_ONLY == 0)
4098 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_disc_all_char_desc(uint16_t Connection_Handle,uint16_t CID,uint16_t Char_Handle,uint16_t End_Handle)4099 tBleStatus aci_gatt_clt_disc_all_char_desc(uint16_t Connection_Handle,
4100                                            uint16_t CID,
4101                                            uint16_t Char_Handle,
4102                                            uint16_t End_Handle)
4103 {
4104     return aci_gatt_clt_disc_all_char_desc_api(Connection_Handle,
4105                                                CID,
4106                                                Char_Handle,
4107                                                End_Handle);
4108 }
4109 #endif /* (CONNECTION_ENABLED == 1) */
4110 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4111 
4112 #if (BLESTACK_CONTROLLER_ONLY == 0)
4113 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_find_included_services(uint16_t Connection_Handle,uint16_t CID,uint16_t Start_Handle,uint16_t End_Handle)4114 tBleStatus aci_gatt_clt_find_included_services(uint16_t Connection_Handle,
4115                                                uint16_t CID,
4116                                                uint16_t Start_Handle,
4117                                                uint16_t End_Handle)
4118 {
4119     return aci_gatt_clt_find_included_services_api(Connection_Handle,
4120                                                    CID,
4121                                                    Start_Handle,
4122                                                    End_Handle);
4123 }
4124 #endif /* (CONNECTION_ENABLED == 1) */
4125 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4126 
4127 #if (BLESTACK_CONTROLLER_ONLY == 0)
4128 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_read(uint16_t Connection_Handle,uint16_t CID,uint16_t Attr_Handle)4129 tBleStatus aci_gatt_clt_read(uint16_t Connection_Handle,
4130                              uint16_t CID,
4131                              uint16_t Attr_Handle)
4132 {
4133     return aci_gatt_clt_read_api(Connection_Handle,
4134                                  CID,
4135                                  Attr_Handle);
4136 }
4137 #endif /* (CONNECTION_ENABLED == 1) */
4138 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4139 
4140 #if (BLESTACK_CONTROLLER_ONLY == 0)
4141 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_read_long(uint16_t Connection_Handle,uint16_t CID,uint16_t Attr_Handle,uint16_t Val_Offset)4142 tBleStatus aci_gatt_clt_read_long(uint16_t Connection_Handle,
4143                                   uint16_t CID,
4144                                   uint16_t Attr_Handle,
4145                                   uint16_t Val_Offset)
4146 {
4147     return aci_gatt_clt_read_long_api(Connection_Handle,
4148                                       CID,
4149                                       Attr_Handle,
4150                                       Val_Offset);
4151 }
4152 #endif /* (CONNECTION_ENABLED == 1) */
4153 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4154 
4155 #if (BLESTACK_CONTROLLER_ONLY == 0)
4156 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_read_using_char_uuid(uint16_t Connection_Handle,uint16_t CID,uint16_t Start_Handle,uint16_t End_Handle,uint8_t UUID_Type,UUID_t * UUID)4157 tBleStatus aci_gatt_clt_read_using_char_uuid(uint16_t Connection_Handle,
4158                                              uint16_t CID,
4159                                              uint16_t Start_Handle,
4160                                              uint16_t End_Handle,
4161                                              uint8_t UUID_Type,
4162                                              UUID_t* UUID)
4163 {
4164     return aci_gatt_clt_read_using_char_uuid_api(Connection_Handle,
4165                                                  CID,
4166                                                  Start_Handle,
4167                                                  End_Handle,
4168                                                  UUID_Type,
4169                                                  UUID);
4170 }
4171 #endif /* (CONNECTION_ENABLED == 1) */
4172 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4173 
4174 #if (BLESTACK_CONTROLLER_ONLY == 0)
4175 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_read_multiple_char_value(uint16_t Connection_Handle,uint16_t CID,uint8_t Number_of_Handles,uint16_t * Handle_Entry)4176 tBleStatus aci_gatt_clt_read_multiple_char_value(uint16_t Connection_Handle,
4177                                                  uint16_t CID,
4178                                                  uint8_t Number_of_Handles,
4179                                                  uint16_t* Handle_Entry)
4180 {
4181     return aci_gatt_clt_read_multiple_char_value_api(Connection_Handle,
4182                                                      CID,
4183                                                      Number_of_Handles,
4184                                                      Handle_Entry);
4185 }
4186 #endif /* (CONNECTION_ENABLED == 1) */
4187 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4188 
4189 #if (BLESTACK_CONTROLLER_ONLY == 0)
4190 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_read_multiple_var_len_char_value(uint16_t Connection_Handle,uint16_t CID,uint8_t Number_of_Handles,uint16_t * Handle_Entry)4191 tBleStatus aci_gatt_clt_read_multiple_var_len_char_value(uint16_t Connection_Handle,
4192                                                          uint16_t CID,
4193                                                          uint8_t Number_of_Handles,
4194                                                          uint16_t* Handle_Entry)
4195 {
4196     return aci_gatt_clt_read_multiple_var_len_char_value_api(Connection_Handle,
4197                                                              CID,
4198                                                              Number_of_Handles,
4199                                                              Handle_Entry);
4200 }
4201 #endif /* (CONNECTION_ENABLED == 1) */
4202 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4203 
4204 #if (BLESTACK_CONTROLLER_ONLY == 0)
4205 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_write_without_resp(uint16_t Connection_Handle,uint16_t CID,uint16_t Attr_Handle,uint16_t Attribute_Val_Length,uint8_t * Attribute_Val)4206 tBleStatus aci_gatt_clt_write_without_resp(uint16_t Connection_Handle,
4207                                            uint16_t CID,
4208                                            uint16_t Attr_Handle,
4209                                            uint16_t Attribute_Val_Length,
4210                                            uint8_t* Attribute_Val)
4211 {
4212     return aci_gatt_clt_write_without_resp_api(Connection_Handle,
4213                                                CID,
4214                                                Attr_Handle,
4215                                                Attribute_Val_Length,
4216                                                Attribute_Val);
4217 }
4218 #endif /* (CONNECTION_ENABLED == 1) */
4219 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4220 
4221 #if (BLESTACK_CONTROLLER_ONLY == 0)
4222 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_signed_write_without_resp(uint16_t Connection_Handle,uint16_t Attr_Handle,uint16_t Attribute_Val_Length,uint8_t * Attribute_Val)4223 tBleStatus aci_gatt_clt_signed_write_without_resp(uint16_t Connection_Handle,
4224                                                   uint16_t Attr_Handle,
4225                                                   uint16_t Attribute_Val_Length,
4226                                                   uint8_t* Attribute_Val)
4227 {
4228     return aci_gatt_clt_signed_write_without_resp_api(Connection_Handle,
4229                                                       Attr_Handle,
4230                                                       Attribute_Val_Length,
4231                                                       Attribute_Val);
4232 }
4233 #endif /* (CONNECTION_ENABLED == 1) */
4234 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4235 
4236 #if (BLESTACK_CONTROLLER_ONLY == 0)
4237 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_write(uint16_t Connection_Handle,uint16_t CID,uint16_t Attr_Handle,uint16_t Attribute_Val_Length,uint8_t * Attribute_Val)4238 tBleStatus aci_gatt_clt_write(uint16_t Connection_Handle,
4239                               uint16_t CID,
4240                               uint16_t Attr_Handle,
4241                               uint16_t Attribute_Val_Length,
4242                               uint8_t* Attribute_Val)
4243 {
4244     return aci_gatt_clt_write_api(Connection_Handle,
4245                                   CID,
4246                                   Attr_Handle,
4247                                   Attribute_Val_Length,
4248                                   Attribute_Val);
4249 }
4250 #endif /* (CONNECTION_ENABLED == 1) */
4251 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4252 
4253 #if (BLESTACK_CONTROLLER_ONLY == 0)
4254 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_write_long(uint16_t Connection_Handle,uint16_t CID,ble_gatt_clt_write_ops_t * Write_Ops_p)4255 tBleStatus aci_gatt_clt_write_long(uint16_t Connection_Handle,
4256                                    uint16_t CID,
4257                                    ble_gatt_clt_write_ops_t* Write_Ops_p)
4258 {
4259     return aci_gatt_clt_write_long_api(Connection_Handle,
4260                                        CID,
4261                                        Write_Ops_p);
4262 }
4263 #endif /* (CONNECTION_ENABLED == 1) */
4264 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4265 
4266 #if (BLESTACK_CONTROLLER_ONLY == 0)
4267 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_write_char_reliable(uint16_t Connection_Handle,uint16_t CID,uint8_t Num_Attrs,ble_gatt_clt_write_ops_t * Write_Ops_p)4268 tBleStatus aci_gatt_clt_write_char_reliable(uint16_t Connection_Handle,
4269                                             uint16_t CID,
4270                                             uint8_t Num_Attrs,
4271                                             ble_gatt_clt_write_ops_t* Write_Ops_p)
4272 {
4273     return aci_gatt_clt_write_char_reliable_api(Connection_Handle,
4274                                                 CID,
4275                                                 Num_Attrs,
4276                                                 Write_Ops_p);
4277 }
4278 #endif /* (CONNECTION_ENABLED == 1) */
4279 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4280 
4281 #if (BLESTACK_CONTROLLER_ONLY == 0)
4282 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_prepare_write_req(uint16_t Connection_Handle,uint16_t CID,uint16_t Attr_Handle,uint16_t Val_Offset,uint16_t Attribute_Val_Length,uint8_t * Attribute_Val)4283 tBleStatus aci_gatt_clt_prepare_write_req(uint16_t Connection_Handle,
4284                                           uint16_t CID,
4285                                           uint16_t Attr_Handle,
4286                                           uint16_t Val_Offset,
4287                                           uint16_t Attribute_Val_Length,
4288                                           uint8_t* Attribute_Val)
4289 {
4290     return aci_gatt_clt_prepare_write_req_api(Connection_Handle,
4291                                               CID,
4292                                               Attr_Handle,
4293                                               Val_Offset,
4294                                               Attribute_Val_Length,
4295                                               Attribute_Val);
4296 }
4297 #endif /* (CONNECTION_ENABLED == 1) */
4298 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4299 
4300 #if (BLESTACK_CONTROLLER_ONLY == 0)
4301 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_execute_write_req(uint16_t Connection_Handle,uint16_t CID,uint8_t Execute)4302 tBleStatus aci_gatt_clt_execute_write_req(uint16_t Connection_Handle,
4303                                           uint16_t CID,
4304                                           uint8_t Execute)
4305 {
4306     return aci_gatt_clt_execute_write_req_api(Connection_Handle,
4307                                               CID,
4308                                               Execute);
4309 }
4310 #endif /* (CONNECTION_ENABLED == 1) */
4311 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4312 
4313 #if (BLESTACK_CONTROLLER_ONLY == 0)
4314 #if (CONNECTION_ENABLED == 1)
aci_gatt_clt_confirm_indication(uint16_t Connection_Handle,uint16_t CID)4315 tBleStatus aci_gatt_clt_confirm_indication(uint16_t Connection_Handle,
4316                                            uint16_t CID)
4317 {
4318     return aci_gatt_clt_confirm_indication_api(Connection_Handle,
4319                                                CID);
4320 }
4321 #endif /* (CONNECTION_ENABLED == 1) */
4322 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4323 
4324 #if (CONNECTION_ENABLED == 1)
aci_hal_peripheral_latency_enable(uint16_t Connection_Handle,uint8_t Enable)4325 tBleStatus aci_hal_peripheral_latency_enable(uint16_t Connection_Handle,
4326                                              uint8_t Enable)
4327 {
4328     return aci_hal_peripheral_latency_enable_api(Connection_Handle,
4329                                                  Enable);
4330 }
4331 #endif /* (CONNECTION_ENABLED == 1) */
4332 
4333 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
4334     (CONNECTION_ENABLED == 1))
aci_hal_set_le_power_control(uint8_t Enable,uint8_t PHY,int8_t RSSI_Target,uint8_t RSSI_Hysteresis,int8_t Initial_TX_Power,uint8_t RSSI_Filtering_Coefficient)4335 tBleStatus aci_hal_set_le_power_control(uint8_t Enable,
4336                                         uint8_t PHY,
4337                                         int8_t RSSI_Target,
4338                                         uint8_t RSSI_Hysteresis,
4339                                         int8_t Initial_TX_Power,
4340                                         uint8_t RSSI_Filtering_Coefficient)
4341 {
4342     return aci_hal_set_le_power_control_api(Enable,
4343                                             PHY,
4344                                             RSSI_Target,
4345                                             RSSI_Hysteresis,
4346                                             Initial_TX_Power,
4347                                             RSSI_Filtering_Coefficient);
4348 }
4349 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
4350           (CONNECTION_ENABLED == 1)) */
4351 
4352 #if (CONNECTION_ENABLED == 1)
aci_hal_get_anchor_point(uint16_t connection_handle,uint16_t * event_counter,uint32_t * anchor_point)4353 tBleStatus aci_hal_get_anchor_point(uint16_t connection_handle,
4354                                     uint16_t* event_counter,
4355                                     uint32_t* anchor_point)
4356 {
4357     return aci_hal_get_anchor_point_api(connection_handle,
4358                                         event_counter,
4359                                         anchor_point);
4360 }
4361 #endif /* (CONNECTION_ENABLED == 1) */
4362 
4363 #if (BLESTACK_CONTROLLER_ONLY == 0)
4364 #if (CONNECTION_ENABLED == 1)
aci_l2cap_connection_parameter_update_req(uint16_t Connection_Handle,uint16_t Connection_Interval_Min,uint16_t Connection_Interval_Max,uint16_t Peripheral_Latency,uint16_t Timeout_Multiplier)4365 tBleStatus aci_l2cap_connection_parameter_update_req(uint16_t Connection_Handle,
4366                                                      uint16_t Connection_Interval_Min,
4367                                                      uint16_t Connection_Interval_Max,
4368                                                      uint16_t Peripheral_Latency,
4369                                                      uint16_t Timeout_Multiplier)
4370 {
4371     return aci_l2cap_connection_parameter_update_req_api(Connection_Handle,
4372                                                          Connection_Interval_Min,
4373                                                          Connection_Interval_Max,
4374                                                          Peripheral_Latency,
4375                                                          Timeout_Multiplier);
4376 }
4377 #endif /* (CONNECTION_ENABLED == 1) */
4378 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4379 
4380 #if (BLESTACK_CONTROLLER_ONLY == 0)
4381 #if (\
4382      (CONNECTION_ENABLED == 1)\
4383      &&\
4384      (\
4385       (CONTROLLER_SCAN_ENABLED == 1)\
4386       ||\
4387       (\
4388        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4389        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4390        (CONNECTION_ENABLED == 1) &&\
4391        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
4392       )\
4393      )\
4394     )
aci_l2cap_connection_parameter_update_resp(uint16_t Connection_Handle,uint16_t Connection_Interval_Min,uint16_t Connection_Interval_Max,uint16_t Peripheral_Latency,uint16_t Timeout_Multiplier,uint16_t Min_CE_Length,uint16_t Max_CE_Length,uint8_t Identifier,uint8_t Accept)4395 tBleStatus aci_l2cap_connection_parameter_update_resp(uint16_t Connection_Handle,
4396                                                       uint16_t Connection_Interval_Min,
4397                                                       uint16_t Connection_Interval_Max,
4398                                                       uint16_t Peripheral_Latency,
4399                                                       uint16_t Timeout_Multiplier,
4400                                                       uint16_t Min_CE_Length,
4401                                                       uint16_t Max_CE_Length,
4402                                                       uint8_t Identifier,
4403                                                       uint8_t Accept)
4404 {
4405     return aci_l2cap_connection_parameter_update_resp_api(Connection_Handle,
4406                                                           Connection_Interval_Min,
4407                                                           Connection_Interval_Max,
4408                                                           Peripheral_Latency,
4409                                                           Timeout_Multiplier,
4410                                                           Min_CE_Length,
4411                                                           Max_CE_Length,
4412                                                           Identifier,
4413                                                           Accept);
4414 }
4415 #endif
4416 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4417 
4418 #if (BLESTACK_CONTROLLER_ONLY == 0)
4419 #if ((L2CAP_COS_ENABLED == 1) &&\
4420     (CONNECTION_ENABLED == 1))
aci_l2cap_cos_connection_req(uint16_t connection_handle,uint16_t spsm,uint16_t mtu,uint16_t mps,uint8_t channel_type,uint8_t cid_count)4421 tBleStatus aci_l2cap_cos_connection_req(uint16_t connection_handle,
4422                                         uint16_t spsm,
4423                                         uint16_t mtu,
4424                                         uint16_t mps,
4425                                         uint8_t channel_type,
4426                                         uint8_t cid_count)
4427 {
4428     return aci_l2cap_cos_connection_req_api(connection_handle,
4429                                             spsm,
4430                                             mtu,
4431                                             mps,
4432                                             channel_type,
4433                                             cid_count);
4434 }
4435 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
4436           (CONNECTION_ENABLED == 1)) */
4437 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4438 
4439 #if (BLESTACK_CONTROLLER_ONLY == 0)
4440 #if ((L2CAP_COS_ENABLED == 1) &&\
4441     (CONNECTION_ENABLED == 1))
aci_l2cap_cos_connection_resp(uint16_t connection_handle,uint8_t identifier,uint16_t mtu,uint16_t mps,uint16_t result,uint8_t cid_count,uint16_t * local_cid)4442 tBleStatus aci_l2cap_cos_connection_resp(uint16_t connection_handle,
4443                                          uint8_t identifier,
4444                                          uint16_t mtu,
4445                                          uint16_t mps,
4446                                          uint16_t result,
4447                                          uint8_t cid_count,
4448                                          uint16_t* local_cid)
4449 {
4450     return aci_l2cap_cos_connection_resp_api(connection_handle,
4451                                              identifier,
4452                                              mtu,
4453                                              mps,
4454                                              result,
4455                                              cid_count,
4456                                              local_cid);
4457 }
4458 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
4459           (CONNECTION_ENABLED == 1)) */
4460 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4461 
4462 #if (BLESTACK_CONTROLLER_ONLY == 0)
4463 #if ((L2CAP_COS_ENABLED == 1) &&\
4464     (CONNECTION_ENABLED == 1))
aci_l2cap_cos_disconnect_req(uint16_t Connection_Handle,uint16_t CID)4465 tBleStatus aci_l2cap_cos_disconnect_req(uint16_t Connection_Handle,
4466                                         uint16_t CID)
4467 {
4468     return aci_l2cap_cos_disconnect_req_api(Connection_Handle,
4469                                             CID);
4470 }
4471 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
4472           (CONNECTION_ENABLED == 1)) */
4473 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4474 
4475 #if (BLESTACK_CONTROLLER_ONLY == 0)
4476 #if ((L2CAP_COS_ENABLED == 1) &&\
4477     (CONNECTION_ENABLED == 1))
aci_l2cap_cos_reconfigure_req(uint16_t connection_handle,uint16_t mtu,uint16_t mps,uint8_t cid_count,uint16_t * local_cid_array)4478 tBleStatus aci_l2cap_cos_reconfigure_req(uint16_t connection_handle,
4479                                          uint16_t mtu,
4480                                          uint16_t mps,
4481                                          uint8_t cid_count,
4482                                          uint16_t* local_cid_array)
4483 {
4484     return aci_l2cap_cos_reconfigure_req_api(connection_handle,
4485                                              mtu,
4486                                              mps,
4487                                              cid_count,
4488                                              local_cid_array);
4489 }
4490 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
4491           (CONNECTION_ENABLED == 1)) */
4492 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4493 
4494 #if (BLESTACK_CONTROLLER_ONLY == 0)
4495 #if ((L2CAP_COS_ENABLED == 1) &&\
4496     (CONNECTION_ENABLED == 1))
aci_l2cap_cos_reconfigure_resp(uint16_t connection_handle,uint8_t identifier,uint16_t result)4497 tBleStatus aci_l2cap_cos_reconfigure_resp(uint16_t connection_handle,
4498                                           uint8_t identifier,
4499                                           uint16_t result)
4500 {
4501     return aci_l2cap_cos_reconfigure_resp_api(connection_handle,
4502                                               identifier,
4503                                               result);
4504 }
4505 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
4506           (CONNECTION_ENABLED == 1)) */
4507 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4508 
4509 #if (BLESTACK_CONTROLLER_ONLY == 0)
4510 #if ((L2CAP_COS_ENABLED == 1) &&\
4511     (CONNECTION_ENABLED == 1))
aci_l2cap_cos_sdu_data_transmit(uint16_t Connection_Handle,uint16_t CID,uint16_t SDU_Length,uint8_t * SDU_Data)4512 tBleStatus aci_l2cap_cos_sdu_data_transmit(uint16_t Connection_Handle,
4513                                            uint16_t CID,
4514                                            uint16_t SDU_Length,
4515                                            uint8_t* SDU_Data)
4516 {
4517     return aci_l2cap_cos_sdu_data_transmit_api(Connection_Handle,
4518                                                CID,
4519                                                SDU_Length,
4520                                                SDU_Data);
4521 }
4522 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
4523           (CONNECTION_ENABLED == 1)) */
4524 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4525 
4526 #if (BLESTACK_CONTROLLER_ONLY == 0)
4527 #if ((L2CAP_COS_ENABLED == 1) &&\
4528     (CONNECTION_ENABLED == 1))
aci_l2cap_cos_sdu_data_extract(uint16_t Connection_Handle,uint16_t CID,uint16_t SDU_Data_Buffer_Size,void * SDU_Data_Buffer,uint16_t * SDU_Length)4529 tBleStatus aci_l2cap_cos_sdu_data_extract(uint16_t Connection_Handle,
4530                                           uint16_t CID,
4531                                           uint16_t SDU_Data_Buffer_Size,
4532                                           void* SDU_Data_Buffer,
4533                                           uint16_t* SDU_Length)
4534 {
4535     return aci_l2cap_cos_sdu_data_extract_api(Connection_Handle,
4536                                               CID,
4537                                               SDU_Data_Buffer_Size,
4538                                               SDU_Data_Buffer,
4539                                               SDU_Length);
4540 }
4541 #endif /* ((L2CAP_COS_ENABLED == 1) &&\
4542           (CONNECTION_ENABLED == 1)) */
4543 #endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
4544 
4545 #if (CONTROLLER_ISO_ENABLED == 1)
hci_le_read_buffer_size_v2(uint16_t * HC_LE_ACL_Data_Packet_Length,uint8_t * HC_Total_Num_LE_ACL_Data_Packets,uint16_t * HC_LE_ISO_Data_Packet_Length,uint8_t * HC_Total_Num_LE_ISO_Data_Packets)4546 tBleStatus hci_le_read_buffer_size_v2(uint16_t* HC_LE_ACL_Data_Packet_Length,
4547                                       uint8_t* HC_Total_Num_LE_ACL_Data_Packets,
4548                                       uint16_t* HC_LE_ISO_Data_Packet_Length,
4549                                       uint8_t* HC_Total_Num_LE_ISO_Data_Packets)
4550 {
4551     return hci_le_read_buffer_size_v2_api(HC_LE_ACL_Data_Packet_Length,
4552                                           HC_Total_Num_LE_ACL_Data_Packets,
4553                                           HC_LE_ISO_Data_Packet_Length,
4554                                           HC_Total_Num_LE_ISO_Data_Packets);
4555 }
4556 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
4557 
4558 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4559     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4560     (CONTROLLER_BIS_ENABLED == 1) &&\
4561     (CONTROLLER_ISO_ENABLED == 1))
hci_le_create_big_test(uint8_t big_handle,uint8_t advertising_handle,uint8_t num_bis,uint8_t * sdu_interval_us,uint16_t iso_interval_1_25ms,uint8_t nse,uint16_t max_sdu,uint16_t max_pdu,uint8_t phy,uint8_t packing_interleaved,uint8_t framing,uint8_t bn,uint8_t irc,uint8_t pto,uint8_t encryption,uint8_t * broadcast_code_ext)4562 tBleStatus hci_le_create_big_test(uint8_t big_handle,
4563                                   uint8_t advertising_handle,
4564                                   uint8_t num_bis,
4565                                   uint8_t* sdu_interval_us,
4566                                   uint16_t iso_interval_1_25ms,
4567                                   uint8_t nse,
4568                                   uint16_t max_sdu,
4569                                   uint16_t max_pdu,
4570                                   uint8_t phy,
4571                                   uint8_t packing_interleaved,
4572                                   uint8_t framing,
4573                                   uint8_t bn,
4574                                   uint8_t irc,
4575                                   uint8_t pto,
4576                                   uint8_t encryption,
4577                                   uint8_t* broadcast_code_ext)
4578 {
4579     return hci_le_create_big_test_api(big_handle,
4580                                       advertising_handle,
4581                                       num_bis,
4582                                       sdu_interval_us,
4583                                       iso_interval_1_25ms,
4584                                       nse,
4585                                       max_sdu,
4586                                       max_pdu,
4587                                       phy,
4588                                       packing_interleaved,
4589                                       framing,
4590                                       bn,
4591                                       irc,
4592                                       pto,
4593                                       encryption,
4594                                       broadcast_code_ext);
4595 }
4596 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4597           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4598           (CONTROLLER_BIS_ENABLED == 1) &&\
4599           (CONTROLLER_ISO_ENABLED == 1)) */
4600 
4601 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4602     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4603     (CONTROLLER_BIS_ENABLED == 1) &&\
4604     (CONTROLLER_ISO_ENABLED == 1)) &&\
4605     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_big_create_sync(uint8_t BIG_Handle,uint16_t Sync_Handle,uint8_t Encryption,uint8_t * Broadcast_Code,uint8_t MSE,uint16_t BIG_Sync_Timeout,uint8_t Num_BIS,uint8_t * BIS)4606 tBleStatus hci_le_big_create_sync(uint8_t BIG_Handle,
4607                                   uint16_t Sync_Handle,
4608                                   uint8_t Encryption,
4609                                   uint8_t* Broadcast_Code,
4610                                   uint8_t MSE,
4611                                   uint16_t BIG_Sync_Timeout,
4612                                   uint8_t Num_BIS,
4613                                   uint8_t* BIS)
4614 {
4615     return hci_le_big_create_sync_api(BIG_Handle,
4616                                       Sync_Handle,
4617                                       Encryption,
4618                                       Broadcast_Code,
4619                                       MSE,
4620                                       BIG_Sync_Timeout,
4621                                       Num_BIS,
4622                                       BIS);
4623 }
4624 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4625           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4626           (CONTROLLER_BIS_ENABLED == 1) &&\
4627           (CONTROLLER_ISO_ENABLED == 1)) &&\
4628           (CONTROLLER_SCAN_ENABLED == 1) */
4629 
4630 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4631     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4632     (CONTROLLER_BIS_ENABLED == 1) &&\
4633     (CONTROLLER_ISO_ENABLED == 1))
hci_le_terminate_big(uint8_t Terminate_Big,uint8_t Reason)4634 tBleStatus hci_le_terminate_big(uint8_t Terminate_Big,
4635                                 uint8_t Reason)
4636 {
4637     return hci_le_terminate_big_api(Terminate_Big,
4638                                     Reason);
4639 }
4640 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4641           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4642           (CONTROLLER_BIS_ENABLED == 1) &&\
4643           (CONTROLLER_ISO_ENABLED == 1)) */
4644 
4645 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4646     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4647     (CONTROLLER_BIS_ENABLED == 1) &&\
4648     (CONTROLLER_ISO_ENABLED == 1)) &&\
4649     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_big_terminate_sync(uint8_t Big_handle)4650 tBleStatus hci_le_big_terminate_sync(uint8_t Big_handle)
4651 {
4652     return hci_le_big_terminate_sync_api(Big_handle);
4653 }
4654 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4655           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4656           (CONTROLLER_BIS_ENABLED == 1) &&\
4657           (CONTROLLER_ISO_ENABLED == 1)) &&\
4658           (CONTROLLER_SCAN_ENABLED == 1) */
4659 
4660 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4661     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4662     (CONTROLLER_BIS_ENABLED == 1) &&\
4663     (CONTROLLER_ISO_ENABLED == 1))
hci_le_create_big(uint8_t big_handle,uint8_t advertising_handle,uint8_t num_bis,uint8_t * sdu_interval_us,uint16_t max_sdu,uint16_t Max_Transport_Latency,uint8_t RTN,uint8_t phy,uint8_t packing_interleaved,uint8_t framing,uint8_t encryption,uint8_t * broadcast_code_ext)4664 tBleStatus hci_le_create_big(uint8_t big_handle,
4665                              uint8_t advertising_handle,
4666                              uint8_t num_bis,
4667                              uint8_t* sdu_interval_us,
4668                              uint16_t max_sdu,
4669                              uint16_t Max_Transport_Latency,
4670                              uint8_t RTN,
4671                              uint8_t phy,
4672                              uint8_t packing_interleaved,
4673                              uint8_t framing,
4674                              uint8_t encryption,
4675                              uint8_t* broadcast_code_ext)
4676 {
4677     return hci_le_create_big_api(big_handle,
4678                                  advertising_handle,
4679                                  num_bis,
4680                                  sdu_interval_us,
4681                                  max_sdu,
4682                                  Max_Transport_Latency,
4683                                  RTN,
4684                                  phy,
4685                                  packing_interleaved,
4686                                  framing,
4687                                  encryption,
4688                                  broadcast_code_ext);
4689 }
4690 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4691           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4692           (CONTROLLER_BIS_ENABLED == 1) &&\
4693           (CONTROLLER_ISO_ENABLED == 1)) */
4694 
4695 #if ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
4696     (CONNECTION_ENABLED == 1))
hci_read_afh_channel_assessment_mode(uint8_t * AFH_Channel_Assessment_Mode)4697 tBleStatus hci_read_afh_channel_assessment_mode(uint8_t* AFH_Channel_Assessment_Mode)
4698 {
4699     return hci_read_afh_channel_assessment_mode_api(AFH_Channel_Assessment_Mode);
4700 }
4701 #endif /* ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
4702           (CONNECTION_ENABLED == 1)) */
4703 
4704 #if ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
4705     (CONNECTION_ENABLED == 1))
hci_write_afh_channel_assessment_mode(uint8_t AFH_Channel_Assessment_Mode)4706 tBleStatus hci_write_afh_channel_assessment_mode(uint8_t AFH_Channel_Assessment_Mode)
4707 {
4708     return hci_write_afh_channel_assessment_mode_api(AFH_Channel_Assessment_Mode);
4709 }
4710 #endif /* ((CONTROLLER_CHAN_CLASS_ENABLED == 1) &&\
4711           (CONNECTION_ENABLED == 1)) */
4712 
4713 #if (\
4714      (\
4715       (CONNECTION_ENABLED == 1)\
4716       &&\
4717       (\
4718        (CONTROLLER_SCAN_ENABLED == 1)\
4719        ||\
4720        (CONTROLLER_CHAN_CLASS_ENABLED == 1)\
4721       )\
4722      )\
4723      ||\
4724      (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)\
4725     )
hci_le_set_host_channel_classification(uint8_t Channel_Map[LLC_MIN_NUM_DATA_CHAN_MAP_BYTES])4726 tBleStatus hci_le_set_host_channel_classification(uint8_t Channel_Map[LLC_MIN_NUM_DATA_CHAN_MAP_BYTES])
4727 {
4728     return hci_le_set_host_channel_classification_api(Channel_Map);
4729 }
4730 #endif
4731 
4732 #if (\
4733      (CONNECTION_ENABLED == 1)\
4734      &&\
4735      (\
4736       (CONNECTION_ENABLED == 1) &&\
4737       (CONTROLLER_CIS_ENABLED == 1) &&\
4738       (CONTROLLER_ISO_ENABLED == 1)\
4739      )\
4740      &&\
4741      (\
4742       (CONTROLLER_SCAN_ENABLED == 1)\
4743       ||\
4744       (\
4745        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4746        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4747        (CONNECTION_ENABLED == 1) &&\
4748        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
4749       )\
4750      )\
4751     )
hci_le_set_cig_parameters(uint8_t CIG_ID,uint8_t SDU_Interval_C_To_P[3],uint8_t SDU_Interval_P_To_C[3],uint8_t Worst_Case_SCA,uint8_t Packing,uint8_t Framing,uint16_t Max_Transport_Latency_C_To_P,uint16_t Max_Transport_Latency_P_To_C,uint8_t CIS_Count,CIS_Param_t * CIS_params,uint16_t * CIS_Conn_Handles)4752 tBleStatus hci_le_set_cig_parameters(uint8_t CIG_ID,
4753                                      uint8_t SDU_Interval_C_To_P[3],
4754                                      uint8_t SDU_Interval_P_To_C[3],
4755                                      uint8_t Worst_Case_SCA,
4756                                      uint8_t Packing,
4757                                      uint8_t Framing,
4758                                      uint16_t Max_Transport_Latency_C_To_P,
4759                                      uint16_t Max_Transport_Latency_P_To_C,
4760                                      uint8_t CIS_Count,
4761                                      CIS_Param_t* CIS_params,
4762                                      uint16_t* CIS_Conn_Handles)
4763 {
4764     return hci_le_set_cig_parameters_api(CIG_ID,
4765                                          SDU_Interval_C_To_P,
4766                                          SDU_Interval_P_To_C,
4767                                          Worst_Case_SCA,
4768                                          Packing,
4769                                          Framing,
4770                                          Max_Transport_Latency_C_To_P,
4771                                          Max_Transport_Latency_P_To_C,
4772                                          CIS_Count,
4773                                          CIS_params,
4774                                          CIS_Conn_Handles);
4775 }
4776 #endif
4777 
4778 #if (\
4779      (CONNECTION_ENABLED == 1)\
4780      &&\
4781      (\
4782       (CONNECTION_ENABLED == 1) &&\
4783       (CONTROLLER_CIS_ENABLED == 1) &&\
4784       (CONTROLLER_ISO_ENABLED == 1)\
4785      )\
4786      &&\
4787      (\
4788       (CONTROLLER_SCAN_ENABLED == 1)\
4789       ||\
4790       (\
4791        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4792        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4793        (CONNECTION_ENABLED == 1) &&\
4794        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
4795       )\
4796      )\
4797     )
hci_le_set_cig_parameters_test(uint8_t CIG_ID,uint8_t SDU_Interval_C_To_P[3],uint8_t SDU_Interval_P_To_C[3],uint8_t FT_C_To_P,uint8_t FT_P_To_C,uint16_t ISO_Interval,uint8_t Worst_Case_SCA,uint8_t Packing,uint8_t Framing,uint8_t CIS_Count,CIS_Param_Test_t * CIS_Param_test,uint16_t * CIS_Conn_Handles)4798 tBleStatus hci_le_set_cig_parameters_test(uint8_t CIG_ID,
4799                                           uint8_t SDU_Interval_C_To_P[3],
4800                                           uint8_t SDU_Interval_P_To_C[3],
4801                                           uint8_t FT_C_To_P,
4802                                           uint8_t FT_P_To_C,
4803                                           uint16_t ISO_Interval,
4804                                           uint8_t Worst_Case_SCA,
4805                                           uint8_t Packing,
4806                                           uint8_t Framing,
4807                                           uint8_t CIS_Count,
4808                                           CIS_Param_Test_t* CIS_Param_test,
4809                                           uint16_t* CIS_Conn_Handles)
4810 {
4811     return hci_le_set_cig_parameters_test_api(CIG_ID,
4812                                               SDU_Interval_C_To_P,
4813                                               SDU_Interval_P_To_C,
4814                                               FT_C_To_P,
4815                                               FT_P_To_C,
4816                                               ISO_Interval,
4817                                               Worst_Case_SCA,
4818                                               Packing,
4819                                               Framing,
4820                                               CIS_Count,
4821                                               CIS_Param_test,
4822                                               CIS_Conn_Handles);
4823 }
4824 #endif
4825 
4826 #if (\
4827      (CONNECTION_ENABLED == 1)\
4828      &&\
4829      (\
4830       (CONNECTION_ENABLED == 1) &&\
4831       (CONTROLLER_CIS_ENABLED == 1) &&\
4832       (CONTROLLER_ISO_ENABLED == 1)\
4833      )\
4834      &&\
4835      (\
4836       (CONTROLLER_SCAN_ENABLED == 1)\
4837       ||\
4838       (\
4839        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4840        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4841        (CONNECTION_ENABLED == 1) &&\
4842        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
4843       )\
4844      )\
4845     )
hci_le_create_cis(uint8_t CIS_Count,CIS_Handles_t * create_cis_connection_params)4846 tBleStatus hci_le_create_cis(uint8_t CIS_Count,
4847                              CIS_Handles_t* create_cis_connection_params)
4848 {
4849     return hci_le_create_cis_api(CIS_Count,
4850                                  create_cis_connection_params);
4851 }
4852 #endif
4853 
4854 #if (\
4855      (CONNECTION_ENABLED == 1)\
4856      &&\
4857      (\
4858       (CONNECTION_ENABLED == 1) &&\
4859       (CONTROLLER_CIS_ENABLED == 1) &&\
4860       (CONTROLLER_ISO_ENABLED == 1)\
4861      )\
4862      &&\
4863      (\
4864       (CONTROLLER_SCAN_ENABLED == 1)\
4865       ||\
4866       (\
4867        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
4868        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
4869        (CONNECTION_ENABLED == 1) &&\
4870        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
4871       )\
4872      )\
4873     )
hci_le_remove_cig(uint8_t CIG_ID)4874 tBleStatus hci_le_remove_cig(uint8_t CIG_ID)
4875 {
4876     return hci_le_remove_cig_api(CIG_ID);
4877 }
4878 #endif
4879 
4880 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
4881     (CONNECTION_ENABLED == 1) &&\
4882     (CONTROLLER_ISO_ENABLED == 1))
hci_le_accept_cis_request(uint16_t Connection_Handle)4883 tBleStatus hci_le_accept_cis_request(uint16_t Connection_Handle)
4884 {
4885     return hci_le_accept_cis_request_api(Connection_Handle);
4886 }
4887 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
4888           (CONNECTION_ENABLED == 1) &&\
4889           (CONTROLLER_ISO_ENABLED == 1)) */
4890 
4891 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
4892     (CONNECTION_ENABLED == 1) &&\
4893     (CONTROLLER_ISO_ENABLED == 1))
hci_le_reject_cis_request(uint16_t Connection_Handle,uint8_t Reason)4894 tBleStatus hci_le_reject_cis_request(uint16_t Connection_Handle,
4895                                      uint8_t Reason)
4896 {
4897     return hci_le_reject_cis_request_api(Connection_Handle,
4898                                          Reason);
4899 }
4900 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
4901           (CONNECTION_ENABLED == 1) &&\
4902           (CONTROLLER_ISO_ENABLED == 1)) */
4903 
4904 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
4905     (CONNECTION_ENABLED == 1) &&\
4906     (CONTROLLER_ISO_ENABLED == 1))
hci_read_connection_accept_timeout(uint16_t * Connection_Accept_Timeout)4907 tBleStatus hci_read_connection_accept_timeout(uint16_t* Connection_Accept_Timeout)
4908 {
4909     return hci_read_connection_accept_timeout_api(Connection_Accept_Timeout);
4910 }
4911 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
4912           (CONNECTION_ENABLED == 1) &&\
4913           (CONTROLLER_ISO_ENABLED == 1)) */
4914 
4915 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
4916     (CONNECTION_ENABLED == 1) &&\
4917     (CONTROLLER_ISO_ENABLED == 1))
hci_write_connection_accept_timeout(uint16_t Connection_Accept_Timeout)4918 tBleStatus hci_write_connection_accept_timeout(uint16_t Connection_Accept_Timeout)
4919 {
4920     return hci_write_connection_accept_timeout_api(Connection_Accept_Timeout);
4921 }
4922 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
4923           (CONNECTION_ENABLED == 1) &&\
4924           (CONTROLLER_ISO_ENABLED == 1)) */
4925 
4926 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) ||\
4927     (CONNECTION_ENABLED == 1)
hci_le_set_host_feature(uint8_t Bit_Number,uint8_t Bit_Value)4928 tBleStatus hci_le_set_host_feature(uint8_t Bit_Number,
4929                                    uint8_t Bit_Value)
4930 {
4931     return hci_le_set_host_feature_api(Bit_Number,
4932                                        Bit_Value);
4933 }
4934 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) ||\
4935           (CONNECTION_ENABLED == 1) */
4936 
4937 #if (CONNECTION_ENABLED == 1)
hci_read_remote_version_information(uint16_t Connection_Handle)4938 tBleStatus hci_read_remote_version_information(uint16_t Connection_Handle)
4939 {
4940     return hci_read_remote_version_information_api(Connection_Handle);
4941 }
4942 #endif /* (CONNECTION_ENABLED == 1) */
4943 
4944 #if (CONNECTION_ENABLED == 1)
hci_le_read_remote_features(uint16_t Connection_Handle)4945 tBleStatus hci_le_read_remote_features(uint16_t Connection_Handle)
4946 {
4947     return hci_le_read_remote_features_api(Connection_Handle);
4948 }
4949 #endif /* (CONNECTION_ENABLED == 1) */
4950 
4951 #if (CONNECTION_ENABLED == 1)
hci_read_transmit_power_level(uint16_t Connection_Handle,uint8_t Type,int8_t * Transmit_Power_Level)4952 tBleStatus hci_read_transmit_power_level(uint16_t Connection_Handle,
4953                                          uint8_t Type,
4954                                          int8_t* Transmit_Power_Level)
4955 {
4956     return hci_read_transmit_power_level_api(Connection_Handle,
4957                                              Type,
4958                                              Transmit_Power_Level);
4959 }
4960 #endif /* (CONNECTION_ENABLED == 1) */
4961 
4962 #if (CONNECTION_ENABLED == 1)
hci_read_rssi(uint16_t Connection_Handle,int8_t * RSSI)4963 tBleStatus hci_read_rssi(uint16_t Connection_Handle,
4964                          int8_t* RSSI)
4965 {
4966     return hci_read_rssi_api(Connection_Handle,
4967                              RSSI);
4968 }
4969 #endif /* (CONNECTION_ENABLED == 1) */
4970 
4971 #if (CONNECTION_ENABLED == 1)
hci_le_read_channel_map(uint16_t Connection_Handle,uint8_t LE_Channel_Map[LLC_MIN_NUM_DATA_CHAN_MAP_BYTES])4972 tBleStatus hci_le_read_channel_map(uint16_t Connection_Handle,
4973                                    uint8_t LE_Channel_Map[LLC_MIN_NUM_DATA_CHAN_MAP_BYTES])
4974 {
4975     return hci_le_read_channel_map_api(Connection_Handle,
4976                                        LE_Channel_Map);
4977 }
4978 #endif /* (CONNECTION_ENABLED == 1) */
4979 
4980 #if (CONNECTION_ENABLED == 1)
hci_disconnect(uint16_t Connection_Handle,uint8_t Reason)4981 tBleStatus hci_disconnect(uint16_t Connection_Handle,
4982                           uint8_t Reason)
4983 {
4984     return hci_disconnect_api(Connection_Handle,
4985                               Reason);
4986 }
4987 #endif /* (CONNECTION_ENABLED == 1) */
4988 
4989 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
4990     (CONNECTION_ENABLED == 1)
hci_le_create_connection(uint16_t LE_Scan_Interval,uint16_t LE_Scan_Window,uint8_t Initiator_Filter_Policy,uint8_t Peer_Address_Type,uint8_t Peer_Address[6],uint8_t Own_Address_Type,uint16_t Connection_Interval_Min,uint16_t Connection_Interval_Max,uint16_t Max_Latency,uint16_t Supervision_Timeout,uint16_t Min_CE_Length,uint16_t Max_CE_Length)4991 tBleStatus hci_le_create_connection(uint16_t LE_Scan_Interval,
4992                                     uint16_t LE_Scan_Window,
4993                                     uint8_t Initiator_Filter_Policy,
4994                                     uint8_t Peer_Address_Type,
4995                                     uint8_t Peer_Address[6],
4996                                     uint8_t Own_Address_Type,
4997                                     uint16_t Connection_Interval_Min,
4998                                     uint16_t Connection_Interval_Max,
4999                                     uint16_t Max_Latency,
5000                                     uint16_t Supervision_Timeout,
5001                                     uint16_t Min_CE_Length,
5002                                     uint16_t Max_CE_Length)
5003 {
5004     return hci_le_create_connection_api(LE_Scan_Interval,
5005                                         LE_Scan_Window,
5006                                         Initiator_Filter_Policy,
5007                                         Peer_Address_Type,
5008                                         Peer_Address,
5009                                         Own_Address_Type,
5010                                         Connection_Interval_Min,
5011                                         Connection_Interval_Max,
5012                                         Max_Latency,
5013                                         Supervision_Timeout,
5014                                         Min_CE_Length,
5015                                         Max_CE_Length);
5016 }
5017 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
5018           (CONNECTION_ENABLED == 1) */
5019 
5020 #if (CONNECTION_ENABLED == 1)
hci_le_create_connection_cancel(void)5021 tBleStatus hci_le_create_connection_cancel(void)
5022 {
5023     return hci_le_create_connection_cancel_api();
5024 }
5025 #endif /* (CONNECTION_ENABLED == 1) */
5026 
5027 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
5028     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
5029     (CONNECTION_ENABLED == 1)
hci_le_extended_create_connection(uint8_t Initiator_Filter_Policy,uint8_t Own_Address_Type,uint8_t Peer_Address_Type,uint8_t Peer_Address[6],uint8_t Initiating_PHYs,Extended_Create_Connection_Parameters_t * Extended_Create_Connection_Parameters)5030 tBleStatus hci_le_extended_create_connection(uint8_t Initiator_Filter_Policy,
5031                                              uint8_t Own_Address_Type,
5032                                              uint8_t Peer_Address_Type,
5033                                              uint8_t Peer_Address[6],
5034                                              uint8_t Initiating_PHYs,
5035                                              Extended_Create_Connection_Parameters_t* Extended_Create_Connection_Parameters)
5036 {
5037     return hci_le_extended_create_connection_api(Initiator_Filter_Policy,
5038                                                  Own_Address_Type,
5039                                                  Peer_Address_Type,
5040                                                  Peer_Address,
5041                                                  Initiating_PHYs,
5042                                                  Extended_Create_Connection_Parameters);
5043 }
5044 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
5045           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
5046           (CONNECTION_ENABLED == 1) */
5047 
5048 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5049     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
5050     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
5051     (CONNECTION_ENABLED == 1)
hci_le_extended_create_connection_v2(uint8_t Advertising_Handle,uint8_t Subevent,uint8_t Initiator_Filter_Policy,uint8_t Own_Address_Type,uint8_t Peer_Address_Type,uint8_t Peer_Address[6],uint8_t Initiating_PHYs,Extended_Create_Connection_Parameters_t * Extended_Create_Connection_Parameters)5052 tBleStatus hci_le_extended_create_connection_v2(uint8_t Advertising_Handle,
5053                                                 uint8_t Subevent,
5054                                                 uint8_t Initiator_Filter_Policy,
5055                                                 uint8_t Own_Address_Type,
5056                                                 uint8_t Peer_Address_Type,
5057                                                 uint8_t Peer_Address[6],
5058                                                 uint8_t Initiating_PHYs,
5059                                                 Extended_Create_Connection_Parameters_t* Extended_Create_Connection_Parameters)
5060 {
5061     return hci_le_extended_create_connection_v2_api(Advertising_Handle,
5062                                                     Subevent,
5063                                                     Initiator_Filter_Policy,
5064                                                     Own_Address_Type,
5065                                                     Peer_Address_Type,
5066                                                     Peer_Address,
5067                                                     Initiating_PHYs,
5068                                                     Extended_Create_Connection_Parameters);
5069 }
5070 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5071           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
5072           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
5073           (CONNECTION_ENABLED == 1) */
5074 
5075 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5076     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5077     (CONTROLLER_CTE_ENABLED == 1)
hci_le_set_connectionless_cte_transmit_parameters(uint8_t Advertising_Handle,uint8_t CTE_Length,uint8_t CTE_Type,uint8_t CTE_Count,uint8_t Switching_Pattern_Length,uint8_t * Antenna_IDs)5078 tBleStatus hci_le_set_connectionless_cte_transmit_parameters(uint8_t Advertising_Handle,
5079                                                              uint8_t CTE_Length,
5080                                                              uint8_t CTE_Type,
5081                                                              uint8_t CTE_Count,
5082                                                              uint8_t Switching_Pattern_Length,
5083                                                              uint8_t* Antenna_IDs)
5084 {
5085     return hci_le_set_connectionless_cte_transmit_parameters_api(Advertising_Handle,
5086                                                                  CTE_Length,
5087                                                                  CTE_Type,
5088                                                                  CTE_Count,
5089                                                                  Switching_Pattern_Length,
5090                                                                  Antenna_IDs);
5091 }
5092 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5093           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5094           (CONTROLLER_CTE_ENABLED == 1) */
5095 
5096 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5097     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5098     (CONTROLLER_CTE_ENABLED == 1)
hci_le_set_connectionless_cte_transmit_enable(uint8_t Advertising_Handle,uint8_t CTE_Enable)5099 tBleStatus hci_le_set_connectionless_cte_transmit_enable(uint8_t Advertising_Handle,
5100                                                          uint8_t CTE_Enable)
5101 {
5102     return hci_le_set_connectionless_cte_transmit_enable_api(Advertising_Handle,
5103                                                              CTE_Enable);
5104 }
5105 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5106           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5107           (CONTROLLER_CTE_ENABLED == 1) */
5108 
5109 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5110     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5111     (CONTROLLER_CTE_ENABLED == 1)
hci_le_set_connectionless_iq_sampling_enable(uint16_t Sync_Handle,uint8_t Sampling_Enable,uint8_t Slot_Durations,uint8_t Max_Sampled_CTEs,uint8_t Switching_Pattern_Length,uint8_t * Antenna_IDs)5112 tBleStatus hci_le_set_connectionless_iq_sampling_enable(uint16_t Sync_Handle,
5113                                                         uint8_t Sampling_Enable,
5114                                                         uint8_t Slot_Durations,
5115                                                         uint8_t Max_Sampled_CTEs,
5116                                                         uint8_t Switching_Pattern_Length,
5117                                                         uint8_t* Antenna_IDs)
5118 {
5119     return hci_le_set_connectionless_iq_sampling_enable_api(Sync_Handle,
5120                                                             Sampling_Enable,
5121                                                             Slot_Durations,
5122                                                             Max_Sampled_CTEs,
5123                                                             Switching_Pattern_Length,
5124                                                             Antenna_IDs);
5125 }
5126 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5127           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5128           (CONTROLLER_CTE_ENABLED == 1) */
5129 
5130 #if (CONTROLLER_CTE_ENABLED == 1) &&\
5131     (CONNECTION_ENABLED == 1)
hci_le_set_connection_cte_receive_parameters(uint16_t Connection_Handle,uint8_t Sampling_Enable,uint8_t Slot_Durations,uint8_t Switching_Pattern_Length,uint8_t * Antenna_IDs)5132 tBleStatus hci_le_set_connection_cte_receive_parameters(uint16_t Connection_Handle,
5133                                                         uint8_t Sampling_Enable,
5134                                                         uint8_t Slot_Durations,
5135                                                         uint8_t Switching_Pattern_Length,
5136                                                         uint8_t* Antenna_IDs)
5137 {
5138     return hci_le_set_connection_cte_receive_parameters_api(Connection_Handle,
5139                                                             Sampling_Enable,
5140                                                             Slot_Durations,
5141                                                             Switching_Pattern_Length,
5142                                                             Antenna_IDs);
5143 }
5144 #endif /* (CONTROLLER_CTE_ENABLED == 1) &&\
5145           (CONNECTION_ENABLED == 1) */
5146 
5147 #if (CONTROLLER_CTE_ENABLED == 1) &&\
5148     (CONNECTION_ENABLED == 1)
hci_le_set_connection_cte_transmit_parameters(uint16_t Connection_Handle,uint8_t CTE_Type,uint8_t Switching_Pattern_Length,uint8_t * Antenna_IDs)5149 tBleStatus hci_le_set_connection_cte_transmit_parameters(uint16_t Connection_Handle,
5150                                                          uint8_t CTE_Type,
5151                                                          uint8_t Switching_Pattern_Length,
5152                                                          uint8_t* Antenna_IDs)
5153 {
5154     return hci_le_set_connection_cte_transmit_parameters_api(Connection_Handle,
5155                                                              CTE_Type,
5156                                                              Switching_Pattern_Length,
5157                                                              Antenna_IDs);
5158 }
5159 #endif /* (CONTROLLER_CTE_ENABLED == 1) &&\
5160           (CONNECTION_ENABLED == 1) */
5161 
5162 #if (CONTROLLER_CTE_ENABLED == 1) &&\
5163     (CONNECTION_ENABLED == 1)
hci_le_connection_cte_request_enable(uint16_t Connection_Handle,uint8_t Enable,uint16_t CTE_Request_Interval,uint8_t Requested_CTE_Length,uint8_t Requested_CTE_Type)5164 tBleStatus hci_le_connection_cte_request_enable(uint16_t Connection_Handle,
5165                                                 uint8_t Enable,
5166                                                 uint16_t CTE_Request_Interval,
5167                                                 uint8_t Requested_CTE_Length,
5168                                                 uint8_t Requested_CTE_Type)
5169 {
5170     return hci_le_connection_cte_request_enable_api(Connection_Handle,
5171                                                     Enable,
5172                                                     CTE_Request_Interval,
5173                                                     Requested_CTE_Length,
5174                                                     Requested_CTE_Type);
5175 }
5176 #endif /* (CONTROLLER_CTE_ENABLED == 1) &&\
5177           (CONNECTION_ENABLED == 1) */
5178 
5179 #if (CONTROLLER_CTE_ENABLED == 1) &&\
5180     (CONNECTION_ENABLED == 1)
hci_le_connection_cte_response_enable(uint16_t Connection_Handle,uint8_t Enable)5181 tBleStatus hci_le_connection_cte_response_enable(uint16_t Connection_Handle,
5182                                                  uint8_t Enable)
5183 {
5184     return hci_le_connection_cte_response_enable_api(Connection_Handle,
5185                                                      Enable);
5186 }
5187 #endif /* (CONTROLLER_CTE_ENABLED == 1) &&\
5188           (CONNECTION_ENABLED == 1) */
5189 
5190 #if (CONTROLLER_CTE_ENABLED == 1)
hci_le_read_antenna_information(uint8_t * Supported_Switching_Sampling_Rates,uint8_t * Num_Antennae,uint8_t * Max_Switching_Pattern_Length,uint8_t * Max_CTE_Length)5191 tBleStatus hci_le_read_antenna_information(uint8_t* Supported_Switching_Sampling_Rates,
5192                                            uint8_t* Num_Antennae,
5193                                            uint8_t* Max_Switching_Pattern_Length,
5194                                            uint8_t* Max_CTE_Length)
5195 {
5196     return hci_le_read_antenna_information_api(Supported_Switching_Sampling_Rates,
5197                                                Num_Antennae,
5198                                                Max_Switching_Pattern_Length,
5199                                                Max_CTE_Length);
5200 }
5201 #endif /* (CONTROLLER_CTE_ENABLED == 1) */
5202 
5203 #if (\
5204      (CONNECTION_ENABLED == 1)\
5205      &&\
5206      (\
5207       (CONTROLLER_SCAN_ENABLED == 1)\
5208       ||\
5209       (\
5210        (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
5211        (CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5212        (CONNECTION_ENABLED == 1) &&\
5213        (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)\
5214       )\
5215      )\
5216     )
hci_le_enable_encryption(uint16_t Connection_Handle,uint8_t Random_Number[8],uint16_t Encrypted_Diversifier,uint8_t Long_Term_Key[16])5217 tBleStatus hci_le_enable_encryption(uint16_t Connection_Handle,
5218                                     uint8_t Random_Number[8],
5219                                     uint16_t Encrypted_Diversifier,
5220                                     uint8_t Long_Term_Key[16])
5221 {
5222     return hci_le_enable_encryption_api(Connection_Handle,
5223                                         Random_Number,
5224                                         Encrypted_Diversifier,
5225                                         Long_Term_Key);
5226 }
5227 #endif
5228 
5229 #if (CONNECTION_ENABLED == 1)
hci_le_long_term_key_request_reply(uint16_t Connection_Handle,uint8_t Long_Term_Key[16])5230 tBleStatus hci_le_long_term_key_request_reply(uint16_t Connection_Handle,
5231                                               uint8_t Long_Term_Key[16])
5232 {
5233     return hci_le_long_term_key_request_reply_api(Connection_Handle,
5234                                                   Long_Term_Key);
5235 }
5236 #endif /* (CONNECTION_ENABLED == 1) */
5237 
5238 #if (CONNECTION_ENABLED == 1)
hci_le_long_term_key_request_negative_reply(uint16_t Connection_Handle)5239 tBleStatus hci_le_long_term_key_request_negative_reply(uint16_t Connection_Handle)
5240 {
5241     return hci_le_long_term_key_request_negative_reply_api(Connection_Handle);
5242 }
5243 #endif /* (CONNECTION_ENABLED == 1) */
5244 
5245 #if (CONNECTION_ENABLED == 1)
hci_le_read_local_p256_public_key(void)5246 tBleStatus hci_le_read_local_p256_public_key(void)
5247 {
5248     return hci_le_read_local_p256_public_key_api();
5249 }
5250 #endif /* (CONNECTION_ENABLED == 1) */
5251 
5252 #if (CONNECTION_ENABLED == 1)
hci_le_generate_dhkey(uint8_t Remote_P256_Public_Key[64])5253 tBleStatus hci_le_generate_dhkey(uint8_t Remote_P256_Public_Key[64])
5254 {
5255     return hci_le_generate_dhkey_api(Remote_P256_Public_Key);
5256 }
5257 #endif /* (CONNECTION_ENABLED == 1) */
5258 
5259 #if (CONNECTION_ENABLED == 1)
hci_read_authenticated_payload_timeout(uint16_t Connection_Handle,uint16_t * Authenticated_Payload_Timeout)5260 tBleStatus hci_read_authenticated_payload_timeout(uint16_t Connection_Handle,
5261                                                   uint16_t* Authenticated_Payload_Timeout)
5262 {
5263     return hci_read_authenticated_payload_timeout_api(Connection_Handle,
5264                                                       Authenticated_Payload_Timeout);
5265 }
5266 #endif /* (CONNECTION_ENABLED == 1) */
5267 
5268 #if (CONNECTION_ENABLED == 1)
hci_write_authenticated_payload_timeout(uint16_t Connection_Handle,uint16_t Authenticated_Payload_Timeout)5269 tBleStatus hci_write_authenticated_payload_timeout(uint16_t Connection_Handle,
5270                                                    uint16_t Authenticated_Payload_Timeout)
5271 {
5272     return hci_write_authenticated_payload_timeout_api(Connection_Handle,
5273                                                        Authenticated_Payload_Timeout);
5274 }
5275 #endif /* (CONNECTION_ENABLED == 1) */
5276 
5277 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_set_extended_advertising_parameters(uint8_t Advertising_Handle,uint16_t Advertising_Event_Properties,uint8_t Primary_Advertising_Interval_Min[3],uint8_t Primary_Advertising_Interval_Max[3],uint8_t Primary_Advertising_Channel_Map,uint8_t Own_Address_Type,uint8_t Peer_Address_Type,uint8_t Peer_Address[6],uint8_t Advertising_Filter_Policy,int8_t Advertising_Tx_Power,uint8_t Primary_Advertising_PHY,uint8_t Secondary_Advertising_Max_Skip,uint8_t Secondary_Advertising_PHY,uint8_t Advertising_SID,uint8_t Scan_Request_Notification_Enable,int8_t * Selected_Tx_Power)5278 tBleStatus hci_le_set_extended_advertising_parameters(uint8_t Advertising_Handle,
5279                                                       uint16_t Advertising_Event_Properties,
5280                                                       uint8_t Primary_Advertising_Interval_Min[3],
5281                                                       uint8_t Primary_Advertising_Interval_Max[3],
5282                                                       uint8_t Primary_Advertising_Channel_Map,
5283                                                       uint8_t Own_Address_Type,
5284                                                       uint8_t Peer_Address_Type,
5285                                                       uint8_t Peer_Address[6],
5286                                                       uint8_t Advertising_Filter_Policy,
5287                                                       int8_t Advertising_Tx_Power,
5288                                                       uint8_t Primary_Advertising_PHY,
5289                                                       uint8_t Secondary_Advertising_Max_Skip,
5290                                                       uint8_t Secondary_Advertising_PHY,
5291                                                       uint8_t Advertising_SID,
5292                                                       uint8_t Scan_Request_Notification_Enable,
5293                                                       int8_t* Selected_Tx_Power)
5294 {
5295     return hci_le_set_extended_advertising_parameters_api(Advertising_Handle,
5296                                                           Advertising_Event_Properties,
5297                                                           Primary_Advertising_Interval_Min,
5298                                                           Primary_Advertising_Interval_Max,
5299                                                           Primary_Advertising_Channel_Map,
5300                                                           Own_Address_Type,
5301                                                           Peer_Address_Type,
5302                                                           Peer_Address,
5303                                                           Advertising_Filter_Policy,
5304                                                           Advertising_Tx_Power,
5305                                                           Primary_Advertising_PHY,
5306                                                           Secondary_Advertising_Max_Skip,
5307                                                           Secondary_Advertising_PHY,
5308                                                           Advertising_SID,
5309                                                           Scan_Request_Notification_Enable,
5310                                                           Selected_Tx_Power);
5311 }
5312 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
5313 
5314 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_set_extended_advertising_parameters_v2(uint8_t Advertising_Handle,uint16_t Advertising_Event_Properties,uint8_t Primary_Advertising_Interval_Min[3],uint8_t Primary_Advertising_Interval_Max[3],uint8_t Primary_Advertising_Channel_Map,uint8_t Own_Address_Type,uint8_t Peer_Address_Type,uint8_t Peer_Address[6],uint8_t Advertising_Filter_Policy,int8_t Advertising_Tx_Power,uint8_t Primary_Advertising_PHY,uint8_t Secondary_Advertising_Max_Skip,uint8_t Secondary_Advertising_PHY,uint8_t Advertising_SID,uint8_t Scan_Request_Notification_Enable,uint8_t Primary_Advertising_PHY_Options,uint8_t Secondary_Advertising_PHY_Options,int8_t * Selected_Tx_Power)5315 tBleStatus hci_le_set_extended_advertising_parameters_v2(uint8_t Advertising_Handle,
5316                                                          uint16_t Advertising_Event_Properties,
5317                                                          uint8_t Primary_Advertising_Interval_Min[3],
5318                                                          uint8_t Primary_Advertising_Interval_Max[3],
5319                                                          uint8_t Primary_Advertising_Channel_Map,
5320                                                          uint8_t Own_Address_Type,
5321                                                          uint8_t Peer_Address_Type,
5322                                                          uint8_t Peer_Address[6],
5323                                                          uint8_t Advertising_Filter_Policy,
5324                                                          int8_t Advertising_Tx_Power,
5325                                                          uint8_t Primary_Advertising_PHY,
5326                                                          uint8_t Secondary_Advertising_Max_Skip,
5327                                                          uint8_t Secondary_Advertising_PHY,
5328                                                          uint8_t Advertising_SID,
5329                                                          uint8_t Scan_Request_Notification_Enable,
5330                                                          uint8_t Primary_Advertising_PHY_Options,
5331                                                          uint8_t Secondary_Advertising_PHY_Options,
5332                                                          int8_t* Selected_Tx_Power)
5333 {
5334     return hci_le_set_extended_advertising_parameters_v2_api(Advertising_Handle,
5335                                                              Advertising_Event_Properties,
5336                                                              Primary_Advertising_Interval_Min,
5337                                                              Primary_Advertising_Interval_Max,
5338                                                              Primary_Advertising_Channel_Map,
5339                                                              Own_Address_Type,
5340                                                              Peer_Address_Type,
5341                                                              Peer_Address,
5342                                                              Advertising_Filter_Policy,
5343                                                              Advertising_Tx_Power,
5344                                                              Primary_Advertising_PHY,
5345                                                              Secondary_Advertising_Max_Skip,
5346                                                              Secondary_Advertising_PHY,
5347                                                              Advertising_SID,
5348                                                              Scan_Request_Notification_Enable,
5349                                                              Primary_Advertising_PHY_Options,
5350                                                              Secondary_Advertising_PHY_Options,
5351                                                              Selected_Tx_Power);
5352 }
5353 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
5354 
5355 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_set_advertising_set_random_address(uint8_t Advertising_Handle,uint8_t Advertising_Random_Address[6])5356 tBleStatus hci_le_set_advertising_set_random_address(uint8_t Advertising_Handle,
5357                                                      uint8_t Advertising_Random_Address[6])
5358 {
5359     return hci_le_set_advertising_set_random_address_api(Advertising_Handle,
5360                                                          Advertising_Random_Address);
5361 }
5362 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
5363 
5364 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_set_extended_advertising_enable(uint8_t Enable,uint8_t Number_of_Sets,Advertising_Set_Parameters_t * Advertising_Set_Parameters)5365 tBleStatus hci_le_set_extended_advertising_enable(uint8_t Enable,
5366                                                   uint8_t Number_of_Sets,
5367                                                   Advertising_Set_Parameters_t* Advertising_Set_Parameters)
5368 {
5369     return hci_le_set_extended_advertising_enable_api(Enable,
5370                                                       Number_of_Sets,
5371                                                       Advertising_Set_Parameters);
5372 }
5373 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
5374 
5375 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_read_number_of_supported_advertising_sets(uint8_t * Num_Supported_Advertising_Sets)5376 tBleStatus hci_le_read_number_of_supported_advertising_sets(uint8_t* Num_Supported_Advertising_Sets)
5377 {
5378     return hci_le_read_number_of_supported_advertising_sets_api(Num_Supported_Advertising_Sets);
5379 }
5380 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
5381 
5382 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_remove_advertising_set(uint8_t Advertising_Handle)5383 tBleStatus hci_le_remove_advertising_set(uint8_t Advertising_Handle)
5384 {
5385     return hci_le_remove_advertising_set_api(Advertising_Handle);
5386 }
5387 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
5388 
5389 #if (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_clear_advertising_sets(void)5390 tBleStatus hci_le_clear_advertising_sets(void)
5391 {
5392     return hci_le_clear_advertising_sets_api();
5393 }
5394 #endif /* (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
5395 
5396 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5397     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5398     (CONTROLLER_SCAN_ENABLED == 1) &&\
5399     (CONNECTION_ENABLED == 1)
hci_le_set_default_periodic_advertising_sync_transfer_parameters(uint8_t Mode,uint16_t Skip,uint16_t Sync_Timeout,uint8_t CTE_Type)5400 tBleStatus hci_le_set_default_periodic_advertising_sync_transfer_parameters(uint8_t Mode,
5401                                                                             uint16_t Skip,
5402                                                                             uint16_t Sync_Timeout,
5403                                                                             uint8_t CTE_Type)
5404 {
5405     return hci_le_set_default_periodic_advertising_sync_transfer_parameters_api(Mode,
5406                                                                                 Skip,
5407                                                                                 Sync_Timeout,
5408                                                                                 CTE_Type);
5409 }
5410 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5411           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5412           (CONTROLLER_SCAN_ENABLED == 1) &&\
5413           (CONNECTION_ENABLED == 1) */
5414 
5415 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5416     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5417     (CONTROLLER_SCAN_ENABLED == 1) &&\
5418     (CONNECTION_ENABLED == 1)
hci_le_set_periodic_advertising_sync_transfer_parameters(uint16_t Connection_Handle,uint8_t Mode,uint16_t Skip,uint16_t Sync_Timeout,uint8_t CTE_Type)5419 tBleStatus hci_le_set_periodic_advertising_sync_transfer_parameters(uint16_t Connection_Handle,
5420                                                                     uint8_t Mode,
5421                                                                     uint16_t Skip,
5422                                                                     uint16_t Sync_Timeout,
5423                                                                     uint8_t CTE_Type)
5424 {
5425     return hci_le_set_periodic_advertising_sync_transfer_parameters_api(Connection_Handle,
5426                                                                         Mode,
5427                                                                         Skip,
5428                                                                         Sync_Timeout,
5429                                                                         CTE_Type);
5430 }
5431 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5432           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5433           (CONTROLLER_SCAN_ENABLED == 1) &&\
5434           (CONNECTION_ENABLED == 1) */
5435 
5436 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5437     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5438     (CONNECTION_ENABLED == 1)
hci_le_periodic_advertising_set_info_transfer(uint16_t Connection_Handle,uint16_t Service_Data,uint8_t Advertising_Handle)5439 tBleStatus hci_le_periodic_advertising_set_info_transfer(uint16_t Connection_Handle,
5440                                                          uint16_t Service_Data,
5441                                                          uint8_t Advertising_Handle)
5442 {
5443     return hci_le_periodic_advertising_set_info_transfer_api(Connection_Handle,
5444                                                              Service_Data,
5445                                                              Advertising_Handle);
5446 }
5447 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5448           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5449           (CONNECTION_ENABLED == 1) */
5450 
5451 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5452     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5453     (CONTROLLER_SCAN_ENABLED == 1) &&\
5454     (CONNECTION_ENABLED == 1)
hci_le_periodic_advertising_sync_transfer(uint16_t Connection_Handle,uint16_t Service_Data,uint16_t Sync_Handle)5455 tBleStatus hci_le_periodic_advertising_sync_transfer(uint16_t Connection_Handle,
5456                                                      uint16_t Service_Data,
5457                                                      uint16_t Sync_Handle)
5458 {
5459     return hci_le_periodic_advertising_sync_transfer_api(Connection_Handle,
5460                                                          Service_Data,
5461                                                          Sync_Handle);
5462 }
5463 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5464           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5465           (CONTROLLER_SCAN_ENABLED == 1) &&\
5466           (CONNECTION_ENABLED == 1) */
5467 
5468 #if (CONTROLLER_ISO_ENABLED == 1)
hci_le_iso_transmit_test(uint16_t Connection_Handle,uint8_t Payload_Type)5469 tBleStatus hci_le_iso_transmit_test(uint16_t Connection_Handle,
5470                                     uint8_t Payload_Type)
5471 {
5472     return hci_le_iso_transmit_test_api(Connection_Handle,
5473                                         Payload_Type);
5474 }
5475 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
5476 
5477 #if (CONTROLLER_ISO_ENABLED == 1)
hci_le_iso_receive_test(uint16_t Connection_Handle,uint8_t Payload_Type)5478 tBleStatus hci_le_iso_receive_test(uint16_t Connection_Handle,
5479                                    uint8_t Payload_Type)
5480 {
5481     return hci_le_iso_receive_test_api(Connection_Handle,
5482                                        Payload_Type);
5483 }
5484 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
5485 
5486 #if (CONTROLLER_ISO_ENABLED == 1)
hci_le_iso_read_test_counters(uint16_t Connection_Handle,uint32_t * Received_Packet_Count,uint32_t * Missed_Packet_Count,uint32_t * Failed_Packet_Count)5487 tBleStatus hci_le_iso_read_test_counters(uint16_t Connection_Handle,
5488                                          uint32_t* Received_Packet_Count,
5489                                          uint32_t* Missed_Packet_Count,
5490                                          uint32_t* Failed_Packet_Count)
5491 {
5492     return hci_le_iso_read_test_counters_api(Connection_Handle,
5493                                              Received_Packet_Count,
5494                                              Missed_Packet_Count,
5495                                              Failed_Packet_Count);
5496 }
5497 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
5498 
5499 #if (CONTROLLER_ISO_ENABLED == 1)
hci_le_iso_test_end(uint16_t Connection_Handle,uint32_t * Received_Packet_Count,uint32_t * Missed_Packet_Count,uint32_t * Failed_Packet_Count)5500 tBleStatus hci_le_iso_test_end(uint16_t Connection_Handle,
5501                                uint32_t* Received_Packet_Count,
5502                                uint32_t* Missed_Packet_Count,
5503                                uint32_t* Failed_Packet_Count)
5504 {
5505     return hci_le_iso_test_end_api(Connection_Handle,
5506                                    Received_Packet_Count,
5507                                    Missed_Packet_Count,
5508                                    Failed_Packet_Count);
5509 }
5510 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
5511 
5512 #if (CONTROLLER_ISO_ENABLED == 1)
hci_le_setup_iso_data_path(uint16_t Connection_Handle,uint8_t Data_Path_Direction,uint8_t Data_Path_ID,uint8_t * CODEC_ID,uint8_t * Controller_Delay,uint8_t Codec_Configuration_Length,uint8_t * Codec_Configuration)5513 tBleStatus hci_le_setup_iso_data_path(uint16_t Connection_Handle,
5514                                       uint8_t Data_Path_Direction,
5515                                       uint8_t Data_Path_ID,
5516                                       uint8_t* CODEC_ID,
5517                                       uint8_t* Controller_Delay,
5518                                       uint8_t Codec_Configuration_Length,
5519                                       uint8_t* Codec_Configuration)
5520 {
5521     return hci_le_setup_iso_data_path_api(Connection_Handle,
5522                                           Data_Path_Direction,
5523                                           Data_Path_ID,
5524                                           CODEC_ID,
5525                                           Controller_Delay,
5526                                           Codec_Configuration_Length,
5527                                           Codec_Configuration);
5528 }
5529 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
5530 
5531 #if (CONTROLLER_ISO_ENABLED == 1)
hci_le_remove_iso_data_path(uint16_t Connection_Handle,uint8_t Data_Path_Direction)5532 tBleStatus hci_le_remove_iso_data_path(uint16_t Connection_Handle,
5533                                        uint8_t Data_Path_Direction)
5534 {
5535     return hci_le_remove_iso_data_path_api(Connection_Handle,
5536                                            Data_Path_Direction);
5537 }
5538 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
5539 
5540 #if (CONTROLLER_ISO_ENABLED == 1)
hci_le_read_iso_link_quality(uint16_t connection_handle,uint32_t * tx_unacked_packets,uint32_t * tx_flushed_packets,uint32_t * tx_last_subevent_packets,uint32_t * retransmitted_packets,uint32_t * CRC_error_packets,uint32_t * rx_unreceived_packets,uint32_t * duplicate_packets)5541 tBleStatus hci_le_read_iso_link_quality(uint16_t connection_handle,
5542                                         uint32_t* tx_unacked_packets,
5543                                         uint32_t* tx_flushed_packets,
5544                                         uint32_t* tx_last_subevent_packets,
5545                                         uint32_t* retransmitted_packets,
5546                                         uint32_t* CRC_error_packets,
5547                                         uint32_t* rx_unreceived_packets,
5548                                         uint32_t* duplicate_packets)
5549 {
5550     return hci_le_read_iso_link_quality_api(connection_handle,
5551                                             tx_unacked_packets,
5552                                             tx_flushed_packets,
5553                                             tx_last_subevent_packets,
5554                                             retransmitted_packets,
5555                                             CRC_error_packets,
5556                                             rx_unreceived_packets,
5557                                             duplicate_packets);
5558 }
5559 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
5560 
5561 #if (CONTROLLER_ISO_ENABLED == 1)
hci_le_read_iso_tx_sync(uint16_t connection_handle,uint16_t * packet_sequence_number,uint32_t * timestamp,uint8_t * timeoffset)5562 tBleStatus hci_le_read_iso_tx_sync(uint16_t connection_handle,
5563                                    uint16_t* packet_sequence_number,
5564                                    uint32_t* timestamp,
5565                                    uint8_t* timeoffset)
5566 {
5567     return hci_le_read_iso_tx_sync_api(connection_handle,
5568                                        packet_sequence_number,
5569                                        timestamp,
5570                                        timeoffset);
5571 }
5572 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
5573 
5574 #if (CONTROLLER_ISO_ENABLED == 1)
hci_tx_iso_data(uint16_t connection_handle,uint8_t pb_flag,uint8_t ts_flag,uint16_t iso_data_load_len,uint8_t * iso_data_load_p)5575 tBleStatus hci_tx_iso_data(uint16_t connection_handle,
5576                            uint8_t pb_flag,
5577                            uint8_t ts_flag,
5578                            uint16_t iso_data_load_len,
5579                            uint8_t* iso_data_load_p)
5580 {
5581     return hci_tx_iso_data_api(connection_handle,
5582                                pb_flag,
5583                                ts_flag,
5584                                iso_data_load_len,
5585                                iso_data_load_p);
5586 }
5587 #endif /* (CONTROLLER_ISO_ENABLED == 1) */
5588 
5589 #if (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
5590     (CONNECTION_ENABLED == 1)
hci_le_set_data_length(uint16_t Connection_Handle,uint16_t Tx_Octets,uint16_t Tx_Time)5591 tBleStatus hci_le_set_data_length(uint16_t Connection_Handle,
5592                                   uint16_t Tx_Octets,
5593                                   uint16_t Tx_Time)
5594 {
5595     return hci_le_set_data_length_api(Connection_Handle,
5596                                       Tx_Octets,
5597                                       Tx_Time);
5598 }
5599 #endif /* (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
5600           (CONNECTION_ENABLED == 1) */
5601 
5602 #if (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
5603     (CONNECTION_ENABLED == 1)
hci_le_read_suggested_default_data_length(uint16_t * Suggested_Max_Tx_Octets,uint16_t * Suggested_Max_Tx_Time)5604 tBleStatus hci_le_read_suggested_default_data_length(uint16_t* Suggested_Max_Tx_Octets,
5605                                                      uint16_t* Suggested_Max_Tx_Time)
5606 {
5607     return hci_le_read_suggested_default_data_length_api(Suggested_Max_Tx_Octets,
5608                                                          Suggested_Max_Tx_Time);
5609 }
5610 #endif /* (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
5611           (CONNECTION_ENABLED == 1) */
5612 
5613 #if (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
5614     (CONNECTION_ENABLED == 1)
hci_le_write_suggested_default_data_length(uint16_t Suggested_Max_Tx_Octets,uint16_t Suggested_Max_Tx_Time)5615 tBleStatus hci_le_write_suggested_default_data_length(uint16_t Suggested_Max_Tx_Octets,
5616                                                       uint16_t Suggested_Max_Tx_Time)
5617 {
5618     return hci_le_write_suggested_default_data_length_api(Suggested_Max_Tx_Octets,
5619                                                           Suggested_Max_Tx_Time);
5620 }
5621 #endif /* (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
5622           (CONNECTION_ENABLED == 1) */
5623 
5624 #if (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
5625     (CONNECTION_ENABLED == 1)
hci_le_read_maximum_data_length(uint16_t * Supported_Max_Tx_Octets,uint16_t * Supported_Max_Tx_Time,uint16_t * Supported_Max_Rx_Octets,uint16_t * Supported_Max_Rx_Time)5626 tBleStatus hci_le_read_maximum_data_length(uint16_t* Supported_Max_Tx_Octets,
5627                                            uint16_t* Supported_Max_Tx_Time,
5628                                            uint16_t* Supported_Max_Rx_Octets,
5629                                            uint16_t* Supported_Max_Rx_Time)
5630 {
5631     return hci_le_read_maximum_data_length_api(Supported_Max_Tx_Octets,
5632                                                Supported_Max_Tx_Time,
5633                                                Supported_Max_Rx_Octets,
5634                                                Supported_Max_Rx_Time);
5635 }
5636 #endif /* (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) &&\
5637           (CONNECTION_ENABLED == 1) */
5638 
5639 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5640     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
hci_le_set_periodic_advertising_parameters(uint8_t Advertising_Handle,uint16_t Periodic_Advertising_Interval_Min,uint16_t Periodic_Advertising_Interval_Max,uint16_t Periodic_Advertising_Properties)5641 tBleStatus hci_le_set_periodic_advertising_parameters(uint8_t Advertising_Handle,
5642                                                       uint16_t Periodic_Advertising_Interval_Min,
5643                                                       uint16_t Periodic_Advertising_Interval_Max,
5644                                                       uint16_t Periodic_Advertising_Properties)
5645 {
5646     return hci_le_set_periodic_advertising_parameters_api(Advertising_Handle,
5647                                                           Periodic_Advertising_Interval_Min,
5648                                                           Periodic_Advertising_Interval_Max,
5649                                                           Periodic_Advertising_Properties);
5650 }
5651 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5652           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
5653 
5654 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5655     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1))
hci_le_set_periodic_advertising_enable(uint8_t Enable,uint8_t Advertising_Handle)5656 tBleStatus hci_le_set_periodic_advertising_enable(uint8_t Enable,
5657                                                   uint8_t Advertising_Handle)
5658 {
5659     return hci_le_set_periodic_advertising_enable_api(Enable,
5660                                                       Advertising_Handle);
5661 }
5662 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5663           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) */
5664 
5665 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5666     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
5667     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
5668     (CONNECTION_ENABLED == 1)
hci_le_set_periodic_advertising_parameters_v2(uint8_t Advertising_Handle,uint16_t Periodic_Advertising_Interval_Min,uint16_t Periodic_Advertising_Interval_Max,uint16_t Periodic_Advertising_Properties,uint8_t Num_Subevents,uint8_t Subevent_Interval,uint8_t Response_Slot_Delay,uint8_t Response_Slot_Spacing,uint8_t Num_Response_Slots)5669 tBleStatus hci_le_set_periodic_advertising_parameters_v2(uint8_t Advertising_Handle,
5670                                                          uint16_t Periodic_Advertising_Interval_Min,
5671                                                          uint16_t Periodic_Advertising_Interval_Max,
5672                                                          uint16_t Periodic_Advertising_Properties,
5673                                                          uint8_t Num_Subevents,
5674                                                          uint8_t Subevent_Interval,
5675                                                          uint8_t Response_Slot_Delay,
5676                                                          uint8_t Response_Slot_Spacing,
5677                                                          uint8_t Num_Response_Slots)
5678 {
5679     return hci_le_set_periodic_advertising_parameters_v2_api(Advertising_Handle,
5680                                                              Periodic_Advertising_Interval_Min,
5681                                                              Periodic_Advertising_Interval_Max,
5682                                                              Periodic_Advertising_Properties,
5683                                                              Num_Subevents,
5684                                                              Subevent_Interval,
5685                                                              Response_Slot_Delay,
5686                                                              Response_Slot_Spacing,
5687                                                              Num_Response_Slots);
5688 }
5689 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5690           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
5691           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
5692           (CONNECTION_ENABLED == 1) */
5693 
5694 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
5695     (CONNECTION_ENABLED == 1))
hci_le_enhanced_read_transmit_power_level(uint16_t Connection_Handle,uint8_t PHY,int8_t * Current_TX_Power_Level,int8_t * Max_TX_Power_Level)5696 tBleStatus hci_le_enhanced_read_transmit_power_level(uint16_t Connection_Handle,
5697                                                      uint8_t PHY,
5698                                                      int8_t* Current_TX_Power_Level,
5699                                                      int8_t* Max_TX_Power_Level)
5700 {
5701     return hci_le_enhanced_read_transmit_power_level_api(Connection_Handle,
5702                                                          PHY,
5703                                                          Current_TX_Power_Level,
5704                                                          Max_TX_Power_Level);
5705 }
5706 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
5707           (CONNECTION_ENABLED == 1)) */
5708 
5709 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
5710     (CONNECTION_ENABLED == 1))
hci_le_read_remote_transmit_power_level(uint16_t Connection_Handle,uint8_t PHY)5711 tBleStatus hci_le_read_remote_transmit_power_level(uint16_t Connection_Handle,
5712                                                    uint8_t PHY)
5713 {
5714     return hci_le_read_remote_transmit_power_level_api(Connection_Handle,
5715                                                        PHY);
5716 }
5717 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
5718           (CONNECTION_ENABLED == 1)) */
5719 
5720 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
5721     (CONNECTION_ENABLED == 1))
hci_le_set_path_loss_reporting_parameters(uint16_t Connection_Handle,uint8_t High_Threshold,uint8_t High_Hysteresis,uint8_t Low_Threshold,uint8_t Low_Hysteresis,uint16_t Min_Time_Spent)5722 tBleStatus hci_le_set_path_loss_reporting_parameters(uint16_t Connection_Handle,
5723                                                      uint8_t High_Threshold,
5724                                                      uint8_t High_Hysteresis,
5725                                                      uint8_t Low_Threshold,
5726                                                      uint8_t Low_Hysteresis,
5727                                                      uint16_t Min_Time_Spent)
5728 {
5729     return hci_le_set_path_loss_reporting_parameters_api(Connection_Handle,
5730                                                          High_Threshold,
5731                                                          High_Hysteresis,
5732                                                          Low_Threshold,
5733                                                          Low_Hysteresis,
5734                                                          Min_Time_Spent);
5735 }
5736 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
5737           (CONNECTION_ENABLED == 1)) */
5738 
5739 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
5740     (CONNECTION_ENABLED == 1))
hci_le_set_path_loss_reporting_enable(uint16_t Connection_Handle,uint8_t Enable)5741 tBleStatus hci_le_set_path_loss_reporting_enable(uint16_t Connection_Handle,
5742                                                  uint8_t Enable)
5743 {
5744     return hci_le_set_path_loss_reporting_enable_api(Connection_Handle,
5745                                                      Enable);
5746 }
5747 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
5748           (CONNECTION_ENABLED == 1)) */
5749 
5750 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
5751     (CONNECTION_ENABLED == 1))
hci_le_set_transmit_power_reporting_enable(uint16_t Connection_Handle,uint8_t Local_Enable,uint8_t Remote_Enable)5752 tBleStatus hci_le_set_transmit_power_reporting_enable(uint16_t Connection_Handle,
5753                                                       uint8_t Local_Enable,
5754                                                       uint8_t Remote_Enable)
5755 {
5756     return hci_le_set_transmit_power_reporting_enable_api(Connection_Handle,
5757                                                           Local_Enable,
5758                                                           Remote_Enable);
5759 }
5760 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1) &&\
5761           (CONNECTION_ENABLED == 1)) */
5762 
5763 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
5764     (CONNECTION_ENABLED == 1)
hci_le_read_phy(uint16_t Connection_Handle,uint8_t * TX_PHY,uint8_t * RX_PHY)5765 tBleStatus hci_le_read_phy(uint16_t Connection_Handle,
5766                            uint8_t* TX_PHY,
5767                            uint8_t* RX_PHY)
5768 {
5769     return hci_le_read_phy_api(Connection_Handle,
5770                                TX_PHY,
5771                                RX_PHY);
5772 }
5773 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
5774           (CONNECTION_ENABLED == 1) */
5775 
5776 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1)
hci_le_set_default_phy(uint8_t ALL_PHYS,uint8_t TX_PHYS,uint8_t RX_PHYS)5777 tBleStatus hci_le_set_default_phy(uint8_t ALL_PHYS,
5778                                   uint8_t TX_PHYS,
5779                                   uint8_t RX_PHYS)
5780 {
5781     return hci_le_set_default_phy_api(ALL_PHYS,
5782                                       TX_PHYS,
5783                                       RX_PHYS);
5784 }
5785 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) */
5786 
5787 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
5788     (CONNECTION_ENABLED == 1)
hci_le_set_phy(uint16_t Connection_Handle,uint8_t ALL_PHYS,uint8_t TX_PHYS,uint8_t RX_PHYS,uint16_t PHY_options)5789 tBleStatus hci_le_set_phy(uint16_t Connection_Handle,
5790                           uint8_t ALL_PHYS,
5791                           uint8_t TX_PHYS,
5792                           uint8_t RX_PHYS,
5793                           uint16_t PHY_options)
5794 {
5795     return hci_le_set_phy_api(Connection_Handle,
5796                               ALL_PHYS,
5797                               TX_PHYS,
5798                               RX_PHYS,
5799                               PHY_options);
5800 }
5801 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) &&\
5802           (CONNECTION_ENABLED == 1) */
5803 
5804 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_add_device_to_resolving_list(uint8_t Peer_Identity_Address_Type,uint8_t Peer_Identity_Address[6],uint8_t Peer_IRK[16],uint8_t Local_IRK[16])5805 tBleStatus hci_le_add_device_to_resolving_list(uint8_t Peer_Identity_Address_Type,
5806                                                uint8_t Peer_Identity_Address[6],
5807                                                uint8_t Peer_IRK[16],
5808                                                uint8_t Local_IRK[16])
5809 {
5810     return hci_le_add_device_to_resolving_list_api(Peer_Identity_Address_Type,
5811                                                    Peer_Identity_Address,
5812                                                    Peer_IRK,
5813                                                    Local_IRK);
5814 }
5815 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
5816 
5817 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_remove_device_from_resolving_list(uint8_t Peer_Identity_Address_Type,uint8_t Peer_Identity_Address[6])5818 tBleStatus hci_le_remove_device_from_resolving_list(uint8_t Peer_Identity_Address_Type,
5819                                                     uint8_t Peer_Identity_Address[6])
5820 {
5821     return hci_le_remove_device_from_resolving_list_api(Peer_Identity_Address_Type,
5822                                                         Peer_Identity_Address);
5823 }
5824 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
5825 
5826 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_clear_resolving_list(void)5827 tBleStatus hci_le_clear_resolving_list(void)
5828 {
5829     return hci_le_clear_resolving_list_api();
5830 }
5831 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
5832 
5833 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_read_resolving_list_size(uint8_t * Resolving_List_Size)5834 tBleStatus hci_le_read_resolving_list_size(uint8_t* Resolving_List_Size)
5835 {
5836     return hci_le_read_resolving_list_size_api(Resolving_List_Size);
5837 }
5838 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
5839 
5840 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_read_peer_resolvable_address(uint8_t Peer_Identity_Address_Type,uint8_t Peer_Identity_Address[6],uint8_t Peer_Resolvable_Address[6])5841 tBleStatus hci_le_read_peer_resolvable_address(uint8_t Peer_Identity_Address_Type,
5842                                                uint8_t Peer_Identity_Address[6],
5843                                                uint8_t Peer_Resolvable_Address[6])
5844 {
5845     return hci_le_read_peer_resolvable_address_api(Peer_Identity_Address_Type,
5846                                                    Peer_Identity_Address,
5847                                                    Peer_Resolvable_Address);
5848 }
5849 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
5850 
5851 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_read_local_resolvable_address(uint8_t Peer_Identity_Address_Type,uint8_t Peer_Identity_Address[6],uint8_t Local_Resolvable_Address[6])5852 tBleStatus hci_le_read_local_resolvable_address(uint8_t Peer_Identity_Address_Type,
5853                                                 uint8_t Peer_Identity_Address[6],
5854                                                 uint8_t Local_Resolvable_Address[6])
5855 {
5856     return hci_le_read_local_resolvable_address_api(Peer_Identity_Address_Type,
5857                                                     Peer_Identity_Address,
5858                                                     Local_Resolvable_Address);
5859 }
5860 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
5861 
5862 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_set_address_resolution_enable(uint8_t Address_Resolution_Enable)5863 tBleStatus hci_le_set_address_resolution_enable(uint8_t Address_Resolution_Enable)
5864 {
5865     return hci_le_set_address_resolution_enable_api(Address_Resolution_Enable);
5866 }
5867 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
5868 
5869 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_set_resolvable_private_address_timeout(uint16_t RPA_Timeout)5870 tBleStatus hci_le_set_resolvable_private_address_timeout(uint16_t RPA_Timeout)
5871 {
5872     return hci_le_set_resolvable_private_address_timeout_api(RPA_Timeout);
5873 }
5874 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
5875 
5876 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_set_privacy_mode(uint8_t Peer_Identity_Address_Type,uint8_t Peer_Identity_Address[6],uint8_t Privacy_Mode)5877 tBleStatus hci_le_set_privacy_mode(uint8_t Peer_Identity_Address_Type,
5878                                    uint8_t Peer_Identity_Address[6],
5879                                    uint8_t Privacy_Mode)
5880 {
5881     return hci_le_set_privacy_mode_api(Peer_Identity_Address_Type,
5882                                        Peer_Identity_Address,
5883                                        Privacy_Mode);
5884 }
5885 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
5886 
5887 #if (CONTROLLER_PRIVACY_ENABLED == 1)
hci_le_set_data_related_address_changes(uint8_t Advertising_Handle,uint8_t Change_Reasons)5888 tBleStatus hci_le_set_data_related_address_changes(uint8_t Advertising_Handle,
5889                                                    uint8_t Change_Reasons)
5890 {
5891     return hci_le_set_data_related_address_changes_api(Advertising_Handle,
5892                                                        Change_Reasons);
5893 }
5894 #endif /* (CONTROLLER_PRIVACY_ENABLED == 1) */
5895 
5896 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5897     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5898     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_add_device_to_periodic_advertiser_list(uint8_t Advertiser_Address_Type,uint8_t Advertiser_Address[6],uint8_t Advertising_SID)5899 tBleStatus hci_le_add_device_to_periodic_advertiser_list(uint8_t Advertiser_Address_Type,
5900                                                          uint8_t Advertiser_Address[6],
5901                                                          uint8_t Advertising_SID)
5902 {
5903     return hci_le_add_device_to_periodic_advertiser_list_api(Advertiser_Address_Type,
5904                                                              Advertiser_Address,
5905                                                              Advertising_SID);
5906 }
5907 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5908           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5909           (CONTROLLER_SCAN_ENABLED == 1) */
5910 
5911 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5912     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5913     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_clear_periodic_advertiser_list(void)5914 tBleStatus hci_le_clear_periodic_advertiser_list(void)
5915 {
5916     return hci_le_clear_periodic_advertiser_list_api();
5917 }
5918 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5919           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5920           (CONTROLLER_SCAN_ENABLED == 1) */
5921 
5922 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5923     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5924     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_periodic_advertising_create_sync(uint8_t Options,uint8_t Advertising_SID,uint8_t Advertising_Address_Type,uint8_t Advertiser_Address[6],uint16_t Skip,uint16_t Sync_Timeout,uint8_t Sync_CTE_Type)5925 tBleStatus hci_le_periodic_advertising_create_sync(uint8_t Options,
5926                                                    uint8_t Advertising_SID,
5927                                                    uint8_t Advertising_Address_Type,
5928                                                    uint8_t Advertiser_Address[6],
5929                                                    uint16_t Skip,
5930                                                    uint16_t Sync_Timeout,
5931                                                    uint8_t Sync_CTE_Type)
5932 {
5933     return hci_le_periodic_advertising_create_sync_api(Options,
5934                                                        Advertising_SID,
5935                                                        Advertising_Address_Type,
5936                                                        Advertiser_Address,
5937                                                        Skip,
5938                                                        Sync_Timeout,
5939                                                        Sync_CTE_Type);
5940 }
5941 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5942           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5943           (CONTROLLER_SCAN_ENABLED == 1) */
5944 
5945 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5946     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5947     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_periodic_advertising_create_sync_cancel(void)5948 tBleStatus hci_le_periodic_advertising_create_sync_cancel(void)
5949 {
5950     return hci_le_periodic_advertising_create_sync_cancel_api();
5951 }
5952 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5953           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5954           (CONTROLLER_SCAN_ENABLED == 1) */
5955 
5956 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5957     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5958     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_periodic_advertising_terminate_sync(uint16_t Sync_Handle)5959 tBleStatus hci_le_periodic_advertising_terminate_sync(uint16_t Sync_Handle)
5960 {
5961     return hci_le_periodic_advertising_terminate_sync_api(Sync_Handle);
5962 }
5963 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5964           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5965           (CONTROLLER_SCAN_ENABLED == 1) */
5966 
5967 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5968     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5969     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_read_periodic_advertiser_list_size(uint8_t * Periodic_Advertiser_List_Size)5970 tBleStatus hci_le_read_periodic_advertiser_list_size(uint8_t* Periodic_Advertiser_List_Size)
5971 {
5972     return hci_le_read_periodic_advertiser_list_size_api(Periodic_Advertiser_List_Size);
5973 }
5974 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5975           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5976           (CONTROLLER_SCAN_ENABLED == 1) */
5977 
5978 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5979     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5980     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_remove_device_from_periodic_advertiser_list(uint8_t Advertiser_Address_Type,uint8_t Advertiser_Address[6],uint8_t Advertising_SID)5981 tBleStatus hci_le_remove_device_from_periodic_advertiser_list(uint8_t Advertiser_Address_Type,
5982                                                               uint8_t Advertiser_Address[6],
5983                                                               uint8_t Advertising_SID)
5984 {
5985     return hci_le_remove_device_from_periodic_advertiser_list_api(Advertiser_Address_Type,
5986                                                                   Advertiser_Address,
5987                                                                   Advertising_SID);
5988 }
5989 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5990           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5991           (CONTROLLER_SCAN_ENABLED == 1) */
5992 
5993 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
5994     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
5995     (CONTROLLER_SCAN_ENABLED == 1)
hci_le_set_periodic_advertising_receive_enable(uint16_t Sync_Handle,uint8_t Enable)5996 tBleStatus hci_le_set_periodic_advertising_receive_enable(uint16_t Sync_Handle,
5997                                                           uint8_t Enable)
5998 {
5999     return hci_le_set_periodic_advertising_receive_enable_api(Sync_Handle,
6000                                                               Enable);
6001 }
6002 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
6003           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)) &&\
6004           (CONTROLLER_SCAN_ENABLED == 1) */
6005 
6006 #if ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
6007     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
6008     (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
6009     (CONTROLLER_SCAN_ENABLED == 1) &&\
6010     (CONNECTION_ENABLED == 1)
hci_le_set_periodic_sync_subevent(uint16_t Sync_Handle,uint16_t Periodic_Advertising_Properties,uint8_t Num_Subevents,uint8_t * Subevent)6011 tBleStatus hci_le_set_periodic_sync_subevent(uint16_t Sync_Handle,
6012                                              uint16_t Periodic_Advertising_Properties,
6013                                              uint8_t Num_Subevents,
6014                                              uint8_t* Subevent)
6015 {
6016     return hci_le_set_periodic_sync_subevent_api(Sync_Handle,
6017                                                  Periodic_Advertising_Properties,
6018                                                  Num_Subevents,
6019                                                  Subevent);
6020 }
6021 #endif /* ((CONTROLLER_PERIODIC_ADV_ENABLED == 1) &&\
6022           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) &&\
6023           (CONTROLLER_PERIODIC_ADV_WR_ENABLED == 1)) &&\
6024           (CONTROLLER_SCAN_ENABLED == 1) &&\
6025           (CONNECTION_ENABLED == 1) */
6026 
6027 #if ((CONTROLLER_CIS_ENABLED == 1) &&\
6028     (CONNECTION_ENABLED == 1) &&\
6029     (CONTROLLER_ISO_ENABLED == 1))
hci_le_request_peer_sca(uint16_t Connection_Handle)6030 tBleStatus hci_le_request_peer_sca(uint16_t Connection_Handle)
6031 {
6032     return hci_le_request_peer_sca_api(Connection_Handle);
6033 }
6034 #endif /* ((CONTROLLER_CIS_ENABLED == 1) &&\
6035           (CONNECTION_ENABLED == 1) &&\
6036           (CONTROLLER_ISO_ENABLED == 1)) */
6037 
6038 #if (CONTROLLER_SCAN_ENABLED == 1)
hci_le_set_scan_parameters(uint8_t LE_Scan_Type,uint16_t LE_Scan_Interval,uint16_t LE_Scan_Window,uint8_t Own_Address_Type,uint8_t Scanning_Filter_Policy)6039 tBleStatus hci_le_set_scan_parameters(uint8_t LE_Scan_Type,
6040                                       uint16_t LE_Scan_Interval,
6041                                       uint16_t LE_Scan_Window,
6042                                       uint8_t Own_Address_Type,
6043                                       uint8_t Scanning_Filter_Policy)
6044 {
6045     return hci_le_set_scan_parameters_api(LE_Scan_Type,
6046                                           LE_Scan_Interval,
6047                                           LE_Scan_Window,
6048                                           Own_Address_Type,
6049                                           Scanning_Filter_Policy);
6050 }
6051 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
6052 
6053 #if (CONTROLLER_SCAN_ENABLED == 1)
hci_le_set_scan_enable(uint8_t LE_Scan_Enable,uint8_t Filter_Duplicates)6054 tBleStatus hci_le_set_scan_enable(uint8_t LE_Scan_Enable,
6055                                   uint8_t Filter_Duplicates)
6056 {
6057     return hci_le_set_scan_enable_api(LE_Scan_Enable,
6058                                       Filter_Duplicates);
6059 }
6060 #endif /* (CONTROLLER_SCAN_ENABLED == 1) */
6061 
6062 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
6063     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_set_extended_scan_parameters(uint8_t Own_Address_Type,uint8_t Scanning_Filter_Policy,uint8_t Scanning_PHYs,Extended_Scan_Parameters_t * Extended_Scan_Parameters)6064 tBleStatus hci_le_set_extended_scan_parameters(uint8_t Own_Address_Type,
6065                                                uint8_t Scanning_Filter_Policy,
6066                                                uint8_t Scanning_PHYs,
6067                                                Extended_Scan_Parameters_t* Extended_Scan_Parameters)
6068 {
6069     return hci_le_set_extended_scan_parameters_api(Own_Address_Type,
6070                                                    Scanning_Filter_Policy,
6071                                                    Scanning_PHYs,
6072                                                    Extended_Scan_Parameters);
6073 }
6074 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
6075           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
6076 
6077 #if (CONTROLLER_SCAN_ENABLED == 1) &&\
6078     (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1)
hci_le_set_extended_scan_enable(uint8_t Enable,uint8_t Filter_Duplicates,uint16_t Duration,uint16_t Period)6079 tBleStatus hci_le_set_extended_scan_enable(uint8_t Enable,
6080                                            uint8_t Filter_Duplicates,
6081                                            uint16_t Duration,
6082                                            uint16_t Period)
6083 {
6084     return hci_le_set_extended_scan_enable_api(Enable,
6085                                                Filter_Duplicates,
6086                                                Duration,
6087                                                Period);
6088 }
6089 #endif /* (CONTROLLER_SCAN_ENABLED == 1) &&\
6090           (CONTROLLER_EXT_ADV_SCAN_ENABLED == 1) */
6091 
6092 #if (CONNECTION_ENABLED == 1)
hci_le_connection_update(uint16_t Connection_Handle,uint16_t Connection_Interval_Min,uint16_t Connection_Interval_Max,uint16_t Max_Latency,uint16_t Supervision_Timeout,uint16_t Min_CE_Length,uint16_t Max_CE_Length)6093 tBleStatus hci_le_connection_update(uint16_t Connection_Handle,
6094                                     uint16_t Connection_Interval_Min,
6095                                     uint16_t Connection_Interval_Max,
6096                                     uint16_t Max_Latency,
6097                                     uint16_t Supervision_Timeout,
6098                                     uint16_t Min_CE_Length,
6099                                     uint16_t Max_CE_Length)
6100 {
6101     return hci_le_connection_update_api(Connection_Handle,
6102                                         Connection_Interval_Min,
6103                                         Connection_Interval_Max,
6104                                         Max_Latency,
6105                                         Supervision_Timeout,
6106                                         Min_CE_Length,
6107                                         Max_CE_Length);
6108 }
6109 #endif /* (CONNECTION_ENABLED == 1) */
6110 
6111 #if ((CONNECTION_SUBRATING_ENABLED == 1) &&\
6112     (CONNECTION_ENABLED == 1))
hci_le_set_default_subrate(uint16_t Subrate_Min,uint16_t Subrate_Max,uint16_t Max_Latency,uint16_t Continuation_Number,uint16_t Supervision_Timeout)6113 tBleStatus hci_le_set_default_subrate(uint16_t Subrate_Min,
6114                                       uint16_t Subrate_Max,
6115                                       uint16_t Max_Latency,
6116                                       uint16_t Continuation_Number,
6117                                       uint16_t Supervision_Timeout)
6118 {
6119     return hci_le_set_default_subrate_api(Subrate_Min,
6120                                           Subrate_Max,
6121                                           Max_Latency,
6122                                           Continuation_Number,
6123                                           Supervision_Timeout);
6124 }
6125 #endif /* ((CONNECTION_SUBRATING_ENABLED == 1) &&\
6126           (CONNECTION_ENABLED == 1)) */
6127 
6128 #if ((CONNECTION_SUBRATING_ENABLED == 1) &&\
6129     (CONNECTION_ENABLED == 1))
hci_le_subrate_request(uint16_t Connection_Handle,uint16_t Subrate_Min,uint16_t Subrate_Max,uint16_t Max_Latency,uint16_t Continuation_Number,uint16_t Supervision_Timeout)6130 tBleStatus hci_le_subrate_request(uint16_t Connection_Handle,
6131                                   uint16_t Subrate_Min,
6132                                   uint16_t Subrate_Max,
6133                                   uint16_t Max_Latency,
6134                                   uint16_t Continuation_Number,
6135                                   uint16_t Supervision_Timeout)
6136 {
6137     return hci_le_subrate_request_api(Connection_Handle,
6138                                       Subrate_Min,
6139                                       Subrate_Max,
6140                                       Max_Latency,
6141                                       Continuation_Number,
6142                                       Supervision_Timeout);
6143 }
6144 #endif /* ((CONNECTION_SUBRATING_ENABLED == 1) &&\
6145           (CONNECTION_ENABLED == 1)) */
6146 
6147 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1)
hci_le_receiver_test_v2(uint8_t RX_Frequency,uint8_t Phy,uint8_t Modulation_index)6148 tBleStatus hci_le_receiver_test_v2(uint8_t RX_Frequency,
6149                                    uint8_t Phy,
6150                                    uint8_t Modulation_index)
6151 {
6152     return hci_le_receiver_test_v2_api(RX_Frequency,
6153                                        Phy,
6154                                        Modulation_index);
6155 }
6156 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) */
6157 
6158 #if (CONTROLLER_CTE_ENABLED == 1)
hci_le_receiver_test_v3(uint8_t RX_Channel,uint8_t PHY,uint8_t Modulation_Index,uint8_t Expected_CTE_Length,uint8_t Expected_CTE_Type,uint8_t Slot_Durations,uint8_t Switching_Pattern_Length,uint8_t * Antenna_IDs)6159 tBleStatus hci_le_receiver_test_v3(uint8_t RX_Channel,
6160                                    uint8_t PHY,
6161                                    uint8_t Modulation_Index,
6162                                    uint8_t Expected_CTE_Length,
6163                                    uint8_t Expected_CTE_Type,
6164                                    uint8_t Slot_Durations,
6165                                    uint8_t Switching_Pattern_Length,
6166                                    uint8_t* Antenna_IDs)
6167 {
6168     return hci_le_receiver_test_v3_api(RX_Channel,
6169                                        PHY,
6170                                        Modulation_Index,
6171                                        Expected_CTE_Length,
6172                                        Expected_CTE_Type,
6173                                        Slot_Durations,
6174                                        Switching_Pattern_Length,
6175                                        Antenna_IDs);
6176 }
6177 #endif /* (CONTROLLER_CTE_ENABLED == 1) */
6178 
6179 #if (CONTROLLER_2M_CODED_PHY_ENABLED == 1)
hci_le_transmitter_test_v2(uint8_t TX_Frequency,uint8_t Length_Of_Test_Data,uint8_t Packet_Payload,uint8_t Phy)6180 tBleStatus hci_le_transmitter_test_v2(uint8_t TX_Frequency,
6181                                       uint8_t Length_Of_Test_Data,
6182                                       uint8_t Packet_Payload,
6183                                       uint8_t Phy)
6184 {
6185     return hci_le_transmitter_test_v2_api(TX_Frequency,
6186                                           Length_Of_Test_Data,
6187                                           Packet_Payload,
6188                                           Phy);
6189 }
6190 #endif /* (CONTROLLER_2M_CODED_PHY_ENABLED == 1) */
6191 
6192 #if (CONTROLLER_CTE_ENABLED == 1)
hci_le_transmitter_test_v3(uint8_t TX_Channel,uint8_t Test_Data_Length,uint8_t Packet_Payload,uint8_t PHY,uint8_t CTE_Length,uint8_t CTE_Type,uint8_t Switching_Pattern_Length,uint8_t * Antenna_IDs)6193 tBleStatus hci_le_transmitter_test_v3(uint8_t TX_Channel,
6194                                       uint8_t Test_Data_Length,
6195                                       uint8_t Packet_Payload,
6196                                       uint8_t PHY,
6197                                       uint8_t CTE_Length,
6198                                       uint8_t CTE_Type,
6199                                       uint8_t Switching_Pattern_Length,
6200                                       uint8_t* Antenna_IDs)
6201 {
6202     return hci_le_transmitter_test_v3_api(TX_Channel,
6203                                           Test_Data_Length,
6204                                           Packet_Payload,
6205                                           PHY,
6206                                           CTE_Length,
6207                                           CTE_Type,
6208                                           Switching_Pattern_Length,
6209                                           Antenna_IDs);
6210 }
6211 #endif /* (CONTROLLER_CTE_ENABLED == 1) */
6212 
6213 #if ((CONTROLLER_POWER_CONTROL_ENABLED == 1)) ||\
6214     (CONTROLLER_CTE_ENABLED == 1)
hci_le_transmitter_test_v4(uint8_t TX_Channel,uint8_t Test_Data_Length,uint8_t Packet_Payload,uint8_t PHY,uint8_t CTE_Length,uint8_t CTE_Type,uint8_t Switching_Pattern_Length,uint8_t * Antenna_IDs,int8_t Transmit_Power_Level)6215 tBleStatus hci_le_transmitter_test_v4(uint8_t TX_Channel,
6216                                       uint8_t Test_Data_Length,
6217                                       uint8_t Packet_Payload,
6218                                       uint8_t PHY,
6219                                       uint8_t CTE_Length,
6220                                       uint8_t CTE_Type,
6221                                       uint8_t Switching_Pattern_Length,
6222                                       uint8_t* Antenna_IDs,
6223                                       int8_t Transmit_Power_Level)
6224 {
6225     return hci_le_transmitter_test_v4_api(TX_Channel,
6226                                           Test_Data_Length,
6227                                           Packet_Payload,
6228                                           PHY,
6229                                           CTE_Length,
6230                                           CTE_Type,
6231                                           Switching_Pattern_Length,
6232                                           Antenna_IDs,
6233                                           Transmit_Power_Level);
6234 }
6235 #endif /* ((CONTROLLER_POWER_CONTROL_ENABLED == 1)) ||\
6236           (CONTROLLER_CTE_ENABLED == 1) */
6237 
6238