patch_tab.h
Go to the documentation of this file.
1 #ifndef __PATCH_TAB_H_
2 #define __PATCH_TAB_H_
3
4 // WEAK Functions for platform init & code size optimization
5 __WEAK void ble_con_env_init(void){};
6 __WEAK void ble_adv_env_init(void){};
7 __WEAK void ble_per_adv_env_init(void){};
8 __WEAK void ble_scan_env_init(void){};
9 __WEAK void ble_sync_env_init(void){};
10 __WEAK void ble_adv_param_init(uint8_t max_connections){};
11
12 typedef uint16_t ke_task_id_t;
13 typedef uint16_t ke_msg_id_t;
14
15 typedef int (*ke_msg_func_t)(ke_msg_id_t const msgid, void const *param,
16 ke_task_id_t const dest_id, ke_task_id_t const src_id);
17
18 typedef int (*llm_hci_cmd_hdl_func_t)(void const *param, uint16_t opcode);
19
20 typedef int (*gapm_hci_evt_hdl_func_t)(uint16_t opcode, void const *param);
21
22 typedef struct
23 {
24 ke_msg_func_t ori_func_addr;
25 ke_msg_func_t new_func_addr;
26 } msg_tab_item_t;
27
28 typedef struct
29 {
30 llm_hci_cmd_hdl_func_t ori_func_addr;
31 llm_hci_cmd_hdl_func_t new_func_addr;
32 } hci_cmd_tab_item_t;
33
34 typedef struct
35 {
36 gapm_hci_evt_hdl_func_t ori_func_addr;
37 gapm_hci_evt_hdl_func_t new_func_addr;
38 } gapm_hci_evt_tab_item_t;
39
40 // ble sdk task
41 extern int host_to_sdk_msg_handler_patch(ke_msg_id_t const msgid, void *param,
42 ke_task_id_t const dest_id, ke_task_id_t const src_id);
43
44 // ble sdk gapm for common
45 extern int gap_activity_stopped_ind_handler_patch(ke_msg_id_t const msgid, void const *p_param,
46 ke_task_id_t const dest_id, ke_task_id_t const src_id);
47 extern int gapm_cmp_evt_handler_patch(ke_msg_id_t const msgid, void const *param,
48 ke_task_id_t const dest_id, ke_task_id_t const src_id);
49 extern int gap_dev_bdaddr_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
50 ke_task_id_t const dest_id, ke_task_id_t const src_id);
51
52 // llm task for common
53 extern int llm_hci_command_handler_patch(ke_msg_id_t const msgid, void const *param,
54 ke_task_id_t const dest_id,ke_task_id_t const src_id);
55 extern int llc_hci_command_handler_patch(ke_msg_id_t const msgid, void const *param,
56 ke_task_id_t const dest_id,ke_task_id_t const src_id);
57
58 #if CFG_MUL_LINK_WITH_SAME_DEV
59 extern int lld_adv_end_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
60 ke_task_id_t const dest_id, ke_task_id_t const src_id);
61 extern int hci_le_set_ext_adv_en_cmd_handler_patch(void const *param, uint16_t opcode);
62 #endif
63
64 // hci cmd for common
65 extern int hci_le_add_dev_to_wlst_cmd_handler_patch(void const *param, uint16_t opcode);
66 extern int hci_le_rmv_dev_from_wlst_cmd_handler_patch(void const *param, uint16_t opcode);
67 extern int hci_le_clear_wlst_cmd_handler_patch(void const *param, uint16_t opcode);
68 extern int hci_le_clear_rslv_list_cmd_handler_patch(void const *param, uint16_t opcode);
69 extern int hci_le_add_dev_to_rslv_list_cmd_handler_patch(void const *param, uint16_t opcode);
70 extern int hci_le_set_priv_mode_cmd_handler_patch(void const *param, uint16_t opcode);
71 extern int hci_le_set_addr_resol_en_cmd_handler_patch(void *param, uint16_t opcode);
72
73 extern int hci_dbg_ble_reg_wr_cmd_handler_patch(void const *param, uint16_t opcode);
74 extern int hci_dbg_ble_reg_rd_cmd_handler_patch(void const *param, uint16_t opcode);
75
76 #if CFG_MAX_CONNECTIONS
77 // gattc task
78 extern int l2cc_pdu_recv_ind_handler_patch(ke_msg_id_t const msgid, void *param,
79 ke_task_id_t const dest_id, ke_task_id_t const src_id);
80 extern int gattc_cmp_evt_handler_patch(ke_msg_id_t const msgid, void *param,
81 ke_task_id_t const dest_id, ke_task_id_t const src_id);
82 // llc task
83 extern int llc_loc_llcp_rsp_to_handler_patch(ke_msg_id_t const msgid, void const *param,
84 ke_task_id_t const dest_id, ke_task_id_t const src_id);
85 extern int llc_rem_llcp_rsp_to_handler_patch(ke_msg_id_t const msgid, void const *param,
86 ke_task_id_t const dest_id,ke_task_id_t const src_id);
87 extern int lld_acl_rx_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
88 ke_task_id_t const dest_id, ke_task_id_t const src_id);
89 extern int lld_con_offset_upd_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
90 ke_task_id_t const dest_id, ke_task_id_t const src_id);
91 extern int lld_con_param_upd_cfm_handler_patch(ke_msg_id_t const msgid, void const *param,
92 ke_task_id_t const dest_id, ke_task_id_t const src_id);
93 extern int lld_llcp_rx_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
94 ke_task_id_t const dest_id, ke_task_id_t const src_id);
95 extern int lld_llcp_tx_cfm_handler_patch(ke_msg_id_t const msgid, void const *param,
96 ke_task_id_t const dest_id, ke_task_id_t const src_id);
97 extern int lld_ch_map_upd_cfm_handler_patch(ke_msg_id_t const msgid, void const *param,
98 ke_task_id_t const dest_id, ke_task_id_t const src_id);
99 extern int lld_phy_upd_cfm_handler_patch(ke_msg_id_t const msgid, void const*param,
100 ke_task_id_t const dest_id, ke_task_id_t const src_id);
101 extern int llc_auth_payl_nearly_to_handler_patch(ke_msg_id_t const msgid, void const *param,
102 ke_task_id_t const dest_id, ke_task_id_t const src_id);
103 extern int llc_auth_payl_real_to_handler_patch(ke_msg_id_t const msgid, void const *param,
104 ke_task_id_t const dest_id, ke_task_id_t const src_id);
105 extern int llc_op_dl_upd_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
106 ke_task_id_t const dest_id, ke_task_id_t const src_id);
107
108 // l2cc task
109 extern int hci_nb_cmp_pkts_evt_handler_patch(ke_msg_id_t const msgid, void const *event,
110 ke_task_id_t const dest_id, ke_task_id_t const src_id);
111
112 // gapc task
113 extern int gapc_hci_handler_patch(ke_msg_id_t const msgid, void const* event,
114 ke_task_id_t dest_id, ke_task_id_t src_id);
115
116 #if CFG_MUL_LINK_WITH_SAME_DEV
117 int gapc_bond_cfm_handler_patch(ke_msg_id_t const msgid, void *cfm,
118 ke_task_id_t const dest_id, ke_task_id_t const src_id);
119 #endif
120
121 // ble sdk task for gapc
122 extern int gap_connection_req_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
123 ke_task_id_t const dest_id, ke_task_id_t const src_id);
124 extern int gap_disconnect_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
125 ke_task_id_t const dest_id, ke_task_id_t const src_id);
126 extern int gap_cmp_evt_handler_patch(ke_msg_id_t const msgid, void const *param,
127 ke_task_id_t const dest_id, ke_task_id_t const src_id);
128 extern int sec_rcv_sec_req_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
129 ke_task_id_t const dest_id, ke_task_id_t const src_id);
130 extern int sec_rcv_encrypt_req_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
131 ke_task_id_t const dest_id, ke_task_id_t const src_id);
132
133 #if CFG_MUL_LINK_WITH_SAME_DEV
134 extern int sec_rcv_bond_req_ind_handler_patch(ke_msg_id_t const msgid, void *param,
135 ke_task_id_t const dest_id, ke_task_id_t const src_id);
136 #endif
137
138 // ble sdk task for gatt
139 extern int ble_sdk_gatts_svc_changed_cfg_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
140 ke_task_id_t const dest_id, ke_task_id_t const src_id);
141 extern int ble_sdk_gattc_event_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
142 ke_task_id_t const dest_id, ke_task_id_t const src_id);
143 extern int ble_sdk_gatt_mtu_changed_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
144 ke_task_id_t const dest_id, ke_task_id_t const src_id);
145 #endif
146
147 #if CFG_MAX_SCAN
148 // gapm task for scan
149 extern int gapm_activity_create_cmd_handler_patch(ke_msg_id_t const msgid, void const *param,
150 ke_task_id_t const dest_id, ke_task_id_t const src_id);
151
152 // hci cmd for scan
153 extern int hci_le_ext_create_con_cmd_handler_patch(void *param, uint16_t opcode);
154 extern int hci_le_set_ext_scan_param_cmd_handler_patch(void const *param, uint16_t opcode);
155 extern int hci_le_set_ext_scan_en_cmd_handler_patch(void const *param, uint16_t opcode);
156
157 // gapm hci evt for scan
158 extern int hci_le_cmd_cmp_evt_init_handler_patch(uint16_t opcode, void const *p_event);
159 #endif
160
161 // gapm hci evt for scan or support 31 bytes adv data
162 #if (CFG_MAX_SCAN) || (CFG_MAX_ADVS && CFG_MAX_ADV_DATA_LEN_SUPPORT) || (CFG_MUL_LINK_WITH_SAME_DEV)
163 extern int gapm_hci_handler_patch(ke_msg_id_t const msgid, void const* event,
164 ke_task_id_t dest_id, ke_task_id_t opcode);
165 #endif
166
167 // gapm task for support 31 bytes adv data
168 #if (CFG_MAX_ADVS && CFG_MAX_ADV_DATA_LEN_SUPPORT)
169 extern int gapm_set_adv_data_cmd_handler_patch(ke_msg_id_t const msgid, void const *p_param,
170 ke_task_id_t const dest_id, ke_task_id_t const src_id);
171 extern int hci_le_cmd_cmp_evt_adv_handler_patch(uint16_t opcode, void const *p_event);
172 #endif
173
174 //gapm scan
175 #if (CFG_MAX_SCAN)
176 extern int hci_le_cmd_cmp_evt_scan_handler_patch(uint16_t opcode, void const *p_event);
177 #endif
178
179 #if CFG_MUL_LINK_WITH_SAME_DEV
180 extern int hci_le_adv_set_term_evt_handler_patch(uint16_t opcode, void const *p_event);
181 #endif
182
183 // gapm cfg
184 extern int gapm_set_dev_config_cmd_handler_patch(ke_msg_id_t const msgid, void *param,
185 ke_task_id_t const dest_id, ke_task_id_t const src_id);
186
187 //llm init
188 extern int lld_init_end_ind_handler_patch(ke_msg_id_t const msgid, void const*param,
189 ke_task_id_t const dest_id, ke_task_id_t const src_id);
190 extern int llm_ch_map_to_handler_patch(ke_msg_id_t const msgid, void const*param,
191 ke_task_id_t const dest_id, ke_task_id_t const src_id);
192
193 // ble sdk gattc
194 extern int ble_sdk_gattc_prf_cmp_evt_handler_patch(ke_msg_id_t const msgid, void const *param,
195 ke_task_id_t const dest_id, ke_task_id_t const src_id);
196 extern int ble_sdk_gattc_prf_event_ind_handler_patch(ke_msg_id_t const msgid, void *param,
197 ke_task_id_t const dest_id, ke_task_id_t const src_id);
198 extern int ble_sdk_gattc_prf_sdp_srvc_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
199 ke_task_id_t const dest_id, ke_task_id_t const src_id);
200
201 msg_tab_item_t msg_tab[] =
202 {
203 // ble sdk gapm for common
204 {(ke_msg_func_t)0x00074235, (ke_msg_func_t)gapm_cmp_evt_handler_patch},
205 {(ke_msg_func_t)0x000709e1, (ke_msg_func_t)gap_activity_stopped_ind_handler_patch},
206 {(ke_msg_func_t)0x00071f6d, (ke_msg_func_t)gap_dev_bdaddr_ind_handler_patch},
207
208 // llm task for common
209 {(ke_msg_func_t)0x00051d09, (ke_msg_func_t)llm_hci_command_handler_patch},
210
211 #if CFG_MUL_LINK_WITH_SAME_DEV
212 // llm task for slave
213 {(ke_msg_func_t)0x0003b639, (ke_msg_func_t)lld_adv_end_ind_handler_patch},
214 #endif
215
216 // llc task for common
217 {(ke_msg_func_t)0x00023231, (ke_msg_func_t)llc_hci_command_handler_patch},
218 // ble sdk task for common
219 {(ke_msg_func_t)0x000761a9, (ke_msg_func_t)host_to_sdk_msg_handler_patch},
220
221 #if (CFG_MAX_ADVS && CFG_MAX_ADV_DATA_LEN_SUPPORT)
222 {(ke_msg_func_t)0x00013f09, (ke_msg_func_t)gapm_set_adv_data_cmd_handler_patch},
223 #endif
224
225 #if CFG_MAX_CONNECTIONS
226 // gattc task for conn
227 {(ke_msg_func_t)0x00032e7d, (ke_msg_func_t)l2cc_pdu_recv_ind_handler_patch},
228 {(ke_msg_func_t)0x0001493d, (ke_msg_func_t)gattc_cmp_evt_handler_patch},
229 // llc task for conn
230 {(ke_msg_func_t)0x000391b5, (ke_msg_func_t)llc_loc_llcp_rsp_to_handler_patch},
231 {(ke_msg_func_t)0x0003a795, (ke_msg_func_t)llc_rem_llcp_rsp_to_handler_patch},
232 {(ke_msg_func_t)0x00049a6d, (ke_msg_func_t)lld_llcp_rx_ind_handler_patch},
233 {(ke_msg_func_t)0x00049c95, (ke_msg_func_t)lld_llcp_tx_cfm_handler_patch},
234 {(ke_msg_func_t)0x0003aed9, (ke_msg_func_t)lld_acl_rx_ind_handler_patch},
235 {(ke_msg_func_t)0x00045e6d, (ke_msg_func_t)lld_con_param_upd_cfm_handler_patch},
236 {(ke_msg_func_t)0x000418c9, (ke_msg_func_t)lld_ch_map_upd_cfm_handler_patch},
237 {(ke_msg_func_t)0x0004b67d, (ke_msg_func_t)lld_phy_upd_cfm_handler_patch},
238 {(ke_msg_func_t)0x00045da1, (ke_msg_func_t)lld_con_offset_upd_ind_handler_patch},
239 {(ke_msg_func_t)0x0003679d, (ke_msg_func_t)llc_auth_payl_nearly_to_handler_patch},
240 {(ke_msg_func_t)0x00036801, (ke_msg_func_t)llc_auth_payl_real_to_handler_patch},
241 {(ke_msg_func_t)0x000398a1, (ke_msg_func_t)llc_op_dl_upd_ind_handler_patch},
242
243 //llm init for conn
244 {(ke_msg_func_t)0x00047ca1, (ke_msg_func_t)lld_init_end_ind_handler_patch},
245 {(ke_msg_func_t)0x0005199f, (ke_msg_func_t)llm_ch_map_to_handler_patch},
246
247 // l2cc task for conn
248 {(ke_msg_func_t)0x0002b281, (ke_msg_func_t)hci_nb_cmp_pkts_evt_handler_patch},
249 // gapc task for conn
250 {(ke_msg_func_t)0x0000f751, (ke_msg_func_t)gapc_hci_handler_patch},
251 // ble sdk gapc for conn
252 {(ke_msg_func_t)0x00071781, (ke_msg_func_t)gap_connection_req_ind_handler_patch},
253 {(ke_msg_func_t)0x00072229, (ke_msg_func_t)gap_disconnect_ind_handler_patch},
254 {(ke_msg_func_t)0x0007ac89, (ke_msg_func_t)sec_rcv_sec_req_ind_handler_patch},
255 {(ke_msg_func_t)0x00071519, (ke_msg_func_t)gap_cmp_evt_handler_patch},
256 {(ke_msg_func_t)0x0007ab15, (ke_msg_func_t)sec_rcv_encrypt_req_ind_handler_patch},
257
258 #if CFG_MUL_LINK_WITH_SAME_DEV
259 {(ke_msg_func_t)0x0007a881, (ke_msg_func_t)sec_rcv_bond_req_ind_handler_patch},
260 #endif
261
262 // ble sdk gatt for conn
263 {(ke_msg_func_t)0x0006d0d5, (ke_msg_func_t)ble_sdk_gattc_event_ind_handler_patch},
264 {(ke_msg_func_t)0x0006db75, (ke_msg_func_t)ble_sdk_gatts_svc_changed_cfg_ind_handler_patch},
265 {(ke_msg_func_t)0x0006cd41, (ke_msg_func_t)ble_sdk_gatt_mtu_changed_ind_handler_patch},
266 #endif
267
268 #if CFG_MAX_SCAN
269 // gapm task for scan
270 {(ke_msg_func_t)0x00010d2d, (ke_msg_func_t)gapm_activity_create_cmd_handler_patch},
271 #endif
272
273 #if (CFG_MAX_SCAN) || (CFG_MAX_ADVS && CFG_MAX_ADV_DATA_LEN_SUPPORT) || (CFG_MUL_LINK_WITH_SAME_DEV)
274 {(ke_msg_func_t)0x00012751, (ke_msg_func_t)gapm_hci_handler_patch},
275 #endif
276
277 {(ke_msg_func_t)0x00013fe9, (ke_msg_func_t)gapm_set_dev_config_cmd_handler_patch},
278
279 #if CFG_MUL_LINK_WITH_SAME_DEV
280 {(ke_msg_func_t)0x0000e99d, (ke_msg_func_t)gapc_bond_cfm_handler_patch},
281 #endif
282 };
283
284 hci_cmd_tab_item_t hci_cmd_tab[] =
285 {
286 // hci cmd for common
287 {(llm_hci_cmd_hdl_func_t)0x00024711, (llm_hci_cmd_hdl_func_t)hci_le_add_dev_to_wlst_cmd_handler_patch},
288 {(llm_hci_cmd_hdl_func_t)0x000281f5, (llm_hci_cmd_hdl_func_t)hci_le_rmv_dev_from_wlst_cmd_handler_patch},
289 {(llm_hci_cmd_hdl_func_t)0x00024fa1, (llm_hci_cmd_hdl_func_t)hci_le_clear_wlst_cmd_handler_patch},
290 {(llm_hci_cmd_hdl_func_t)0x000283b5, (llm_hci_cmd_hdl_func_t)hci_le_set_addr_resol_en_cmd_handler_patch},
291 {(llm_hci_cmd_hdl_func_t)0x00024f75, (llm_hci_cmd_hdl_func_t)hci_le_clear_rslv_list_cmd_handler_patch},
292 {(llm_hci_cmd_hdl_func_t)0x00024681, (llm_hci_cmd_hdl_func_t)hci_le_add_dev_to_rslv_list_cmd_handler_patch},
293 {(llm_hci_cmd_hdl_func_t)0x0002a99d, (llm_hci_cmd_hdl_func_t)hci_le_set_priv_mode_cmd_handler_patch},
294
295 #if CFG_MAX_SCAN
296 {(llm_hci_cmd_hdl_func_t)0x0002677d, (llm_hci_cmd_hdl_func_t)hci_le_ext_create_con_cmd_handler_patch},
297 {(llm_hci_cmd_hdl_func_t)0x0002a081, (llm_hci_cmd_hdl_func_t)hci_le_set_ext_scan_param_cmd_handler_patch},
298 {(llm_hci_cmd_hdl_func_t)0x00029e5d, (llm_hci_cmd_hdl_func_t)hci_le_set_ext_scan_en_cmd_handler_patch},
299 #endif
300
301 #if CFG_MUL_LINK_WITH_SAME_DEV
302 {(llm_hci_cmd_hdl_func_t)0x00029731, (llm_hci_cmd_hdl_func_t)hci_le_set_ext_adv_en_cmd_handler_patch},
303 #endif
304
305 #if DTM_TEST_ENABLE
306 {(llm_hci_cmd_hdl_func_t)0x000233f7, (llm_hci_cmd_hdl_func_t)hci_dbg_ble_reg_wr_cmd_handler_patch},
307 {(llm_hci_cmd_hdl_func_t)0x000233c9, (llm_hci_cmd_hdl_func_t)hci_dbg_ble_reg_rd_cmd_handler_patch},
308 #endif
309 };
310
311 gapm_hci_evt_tab_item_t gapm_hci_evt_tab[] =
312 {
313 {NULL, NULL},
314
315 #if CFG_MAX_SCAN
316 {(gapm_hci_evt_hdl_func_t)0x00025121, (gapm_hci_evt_hdl_func_t)hci_le_cmd_cmp_evt_init_handler_patch},
317 #endif
318
319 #if (CFG_MAX_ADVS && CFG_MAX_ADV_DATA_LEN_SUPPORT)
320 {(gapm_hci_evt_hdl_func_t)0x00025031, (gapm_hci_evt_hdl_func_t)hci_le_cmd_cmp_evt_adv_handler_patch},
321 #endif
322
323 #if (CFG_MAX_SCAN)
324 {(gapm_hci_evt_hdl_func_t)0x00025229, (gapm_hci_evt_hdl_func_t)hci_le_cmd_cmp_evt_scan_handler_patch},
325 #endif
326
327 #if CFG_MUL_LINK_WITH_SAME_DEV
328 {(gapm_hci_evt_hdl_func_t)0x000248cd, (gapm_hci_evt_hdl_func_t)hci_le_adv_set_term_evt_handler_patch},
329 #endif
330 };
331
332 extern void reg_hci_cmd_patch_tab(hci_cmd_tab_item_t *hci_cmd_tab, uint16_t hci_cmd_cnt);
333 extern void reg_msg_patch_tab(msg_tab_item_t *msg_tab, uint16_t msg_cnt);
334 extern void reg_gapm_hci_evt_patch_tab(gapm_hci_evt_tab_item_t *gapm_hci_evt_tab, uint16_t gapm_hci_evt_cnt);
335
336 #endif
gap_dev_bdaddr_ind_handler_patch
int gap_dev_bdaddr_ind_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
msg_tab
msg_tab_item_t msg_tab[]
Definition: patch_tab.h:201
reg_msg_patch_tab
void reg_msg_patch_tab(msg_tab_item_t *msg_tab, uint16_t msg_cnt)
hci_dbg_ble_reg_wr_cmd_handler_patch
int hci_dbg_ble_reg_wr_cmd_handler_patch(void const *param, uint16_t opcode)
hci_cmd_tab
hci_cmd_tab_item_t hci_cmd_tab[]
Definition: patch_tab.h:284
ble_sync_env_init
__WEAK void ble_sync_env_init(void)
Definition: patch_tab.h:9
ble_sdk_gattc_prf_sdp_srvc_ind_handler_patch
int ble_sdk_gattc_prf_sdp_srvc_ind_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
reg_gapm_hci_evt_patch_tab
void reg_gapm_hci_evt_patch_tab(gapm_hci_evt_tab_item_t *gapm_hci_evt_tab, uint16_t gapm_hci_evt_cnt)
hci_le_clear_wlst_cmd_handler_patch
int hci_le_clear_wlst_cmd_handler_patch(void const *param, uint16_t opcode)
msg_tab_item_t::new_func_addr
ke_msg_func_t new_func_addr
Definition: patch_tab.h:25
reg_hci_cmd_patch_tab
void reg_hci_cmd_patch_tab(hci_cmd_tab_item_t *hci_cmd_tab, uint16_t hci_cmd_cnt)
gapm_hci_evt_tab_item_t::ori_func_addr
gapm_hci_evt_hdl_func_t ori_func_addr
Definition: patch_tab.h:36
hci_le_rmv_dev_from_wlst_cmd_handler_patch
int hci_le_rmv_dev_from_wlst_cmd_handler_patch(void const *param, uint16_t opcode)
lld_init_end_ind_handler_patch
int lld_init_end_ind_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
hci_cmd_tab_item_t::ori_func_addr
llm_hci_cmd_hdl_func_t ori_func_addr
Definition: patch_tab.h:30
gap_activity_stopped_ind_handler_patch
int gap_activity_stopped_ind_handler_patch(ke_msg_id_t const msgid, void const *p_param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
ble_scan_env_init
__WEAK void ble_scan_env_init(void)
Definition: patch_tab.h:8
ble_sdk_gattc_prf_event_ind_handler_patch
int ble_sdk_gattc_prf_event_ind_handler_patch(ke_msg_id_t const msgid, void *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
hci_dbg_ble_reg_rd_cmd_handler_patch
int hci_dbg_ble_reg_rd_cmd_handler_patch(void const *param, uint16_t opcode)
gapm_hci_evt_tab_item_t::new_func_addr
gapm_hci_evt_hdl_func_t new_func_addr
Definition: patch_tab.h:37
host_to_sdk_msg_handler_patch
int host_to_sdk_msg_handler_patch(ke_msg_id_t const msgid, void *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
gapm_hci_evt_tab_item_t
Definition: patch_tab.h:35
gapm_set_dev_config_cmd_handler_patch
int gapm_set_dev_config_cmd_handler_patch(ke_msg_id_t const msgid, void *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
hci_le_clear_rslv_list_cmd_handler_patch
int hci_le_clear_rslv_list_cmd_handler_patch(void const *param, uint16_t opcode)
ble_con_env_init
__WEAK void ble_con_env_init(void)
Definition: patch_tab.h:5
ke_task_id_t
uint16_t ke_task_id_t
Definition: patch_tab.h:10
hci_cmd_tab_item_t::new_func_addr
llm_hci_cmd_hdl_func_t new_func_addr
Definition: patch_tab.h:31
gapm_hci_evt_hdl_func_t
int(* gapm_hci_evt_hdl_func_t)(uint16_t opcode, void const *param)
Definition: patch_tab.h:20
ble_per_adv_env_init
__WEAK void ble_per_adv_env_init(void)
Definition: patch_tab.h:7
ble_adv_env_init
__WEAK void ble_adv_env_init(void)
Definition: patch_tab.h:6
hci_le_set_priv_mode_cmd_handler_patch
int hci_le_set_priv_mode_cmd_handler_patch(void const *param, uint16_t opcode)
gapm_hci_evt_tab
gapm_hci_evt_tab_item_t gapm_hci_evt_tab[]
Definition: patch_tab.h:311
llm_ch_map_to_handler_patch
int llm_ch_map_to_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
llc_hci_command_handler_patch
int llc_hci_command_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
ke_msg_id_t
uint16_t ke_msg_id_t
Definition: patch_tab.h:13
ble_sdk_gattc_prf_cmp_evt_handler_patch
int ble_sdk_gattc_prf_cmp_evt_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
hci_cmd_tab_item_t
Definition: patch_tab.h:29
msg_tab_item_t
Definition: patch_tab.h:23
ke_msg_func_t
int(* ke_msg_func_t)(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
Definition: patch_tab.h:15
msg_tab_item_t::ori_func_addr
ke_msg_func_t ori_func_addr
Definition: patch_tab.h:24
ble_adv_param_init
__WEAK void ble_adv_param_init(uint8_t max_connections)
Definition: patch_tab.h:10
llm_hci_cmd_hdl_func_t
int(* llm_hci_cmd_hdl_func_t)(void const *param, uint16_t opcode)
Definition: patch_tab.h:18
hci_le_set_addr_resol_en_cmd_handler_patch
int hci_le_set_addr_resol_en_cmd_handler_patch(void *param, uint16_t opcode)
llm_hci_command_handler_patch
int llm_hci_command_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
gapm_cmp_evt_handler_patch
int gapm_cmp_evt_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
hci_le_add_dev_to_wlst_cmd_handler_patch
int hci_le_add_dev_to_wlst_cmd_handler_patch(void const *param, uint16_t opcode)
hci_le_add_dev_to_rslv_list_cmd_handler_patch
int hci_le_add_dev_to_rslv_list_cmd_handler_patch(void const *param, uint16_t opcode)