/AliOS-Things-master/components/ble_host/bt_host/aos/ |
A D | ble.c | 153 event_data.err = 0; in connected() 184 event_data.accept = 1; in le_param_req_cb() 210 event_data.err = err; in security_changed_cb() 230 ble_stack_event_callback(EVENT_GAP_DEV_FIND, &event_data, sizeof(event_data)); in scan_cb() 276 ble_stack_event_callback(EVENT_SMP_CANCEL, &event_data, sizeof(event_data)); in auth_cancel() 297 event_data.err = 0; in auth_pairing_complete() 636 if (event_data.data && event_data.len > 0) { in gatt_read_handle() 653 event_data.len = len; in gatt_write_handle() 941 } event_data; in discover_func() local 951 ble_stack_event_callback(event, &event_data, sizeof(event_data)); in discover_func() [all …]
|
/AliOS-Things-master/components/ble_netconfig/ |
A D | blecfg_stack.c | 268 BleCfg_event_conn_change(event, event_data); in BleCfg_event_callback() 271 BleCfg_event_conn_param_update(event, event_data); in BleCfg_event_callback() 277 BleCfg_event_smp_complete(event, event_data); in BleCfg_event_callback() 280 BleCfg_event_smp_pairing_confirm(event, event_data); in BleCfg_event_callback() 283 BleCfg_event_smp_cancel(event, event_data); in BleCfg_event_callback() 286 BleCfg_event_conn_security_change(event, event_data); in BleCfg_event_callback() 289 BleCfg_event_mtu_exchange(event, event_data); in BleCfg_event_callback() 292 BleCfg_event_adv_timeout(event, event_data); in BleCfg_event_callback() 295 BleCfg_event_char_read(event, event_data); in BleCfg_event_callback() 298 BleCfg_event_char_write(event, event_data); in BleCfg_event_callback() [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/aos/ |
A D | mesh.c | 54 event_data.action = act; in mesh_output_number_cb() 55 event_data.num = num; in mesh_output_number_cb() 57 ble_stack_event_callback(EVENT_MESH_OOB_OUTPUT, &event_data, sizeof(event_data)); in mesh_output_number_cb() 66 event_data.str = str; in mesh_output_string_cb() 68 ble_stack_event_callback(EVENT_MESH_OOB_OUTPUT, &event_data, sizeof(event_data)); in mesh_output_string_cb() 77 event_data.action = act; in mesh_input_cb() 78 event_data.size = size; in mesh_input_cb() 80 ble_stack_event_callback(EVENT_MESH_OOB_INPUT, &event_data, sizeof(event_data)); in mesh_input_cb() 90 ble_stack_event_callback(EVENT_MESH_PROV_START, &event_data, sizeof(event_data)); in mesh_link_open_cb() 98 ble_stack_event_callback(EVENT_MESH_PROV_END, &event_data, sizeof(event_data)); in mesh_link_close_cb() [all …]
|
/AliOS-Things-master/components/ble_host/ble_profiles/ |
A D | uart_server.c | 50 static void conn_change(ble_event_en event, void *event_data) in conn_change() argument 66 node->uart_event_callback(event, event_data); in conn_change() 71 static void mtu_exchange(ble_event_en event, void *event_data) in mtu_exchange() argument 95 node->uart_event_callback(event, event_data); in mtu_exchange() 99 static void event_char_ccc_change(ble_event_en event, void *event_data) in event_char_ccc_change() argument 116 static void event_char_write(ble_event_en event, void *event_data) in event_char_write() argument 148 static int uart_event_callback(ble_event_en event, void *event_data) in uart_event_callback() argument 153 conn_change(event, event_data); in uart_event_callback() 157 mtu_exchange(event, event_data); in uart_event_callback() 161 event_char_ccc_change(event, event_data); in uart_event_callback() [all …]
|
A D | bas.c | 44 static void event_char_read(ble_event_en event, void *event_data) in event_char_read() argument 46 evt_data_gatt_char_read_t *e = (evt_data_gatt_char_read_t *)event_data; in event_char_read() 58 static void conn_change(ble_event_en event, void *event_data) in conn_change() argument 60 evt_data_gap_conn_change_t *e = (evt_data_gap_conn_change_t *)event_data; in conn_change() 73 static void event_char_ccc_change(ble_event_en event, void *event_data) in event_char_ccc_change() argument 75 evt_data_gatt_char_ccc_change_t *e = (evt_data_gatt_char_ccc_change_t *)event_data; in event_char_ccc_change() 85 static int bas_event_callback(ble_event_en event, void *event_data) in bas_event_callback() argument 89 conn_change(event, event_data); in bas_event_callback() 93 event_char_read(event, event_data); in bas_event_callback() 97 event_char_ccc_change(event, event_data); in bas_event_callback()
|
A D | hrs.c | 59 static void event_char_read(ble_event_en event, void *event_data) in event_char_read() argument 61 evt_data_gatt_char_read_t *e = (evt_data_gatt_char_read_t *)event_data; in event_char_read() 77 static void conn_change(ble_event_en event, void *event_data) in conn_change() argument 79 evt_data_gap_conn_change_t *e = (evt_data_gap_conn_change_t *)event_data; in conn_change() 94 static void event_char_ccc_change(ble_event_en event, void *event_data) in event_char_ccc_change() argument 96 evt_data_gatt_char_ccc_change_t *e = (evt_data_gatt_char_ccc_change_t *)event_data; in event_char_ccc_change() 108 static int hrs_event_callback(ble_event_en event, void *event_data) in hrs_event_callback() argument 112 conn_change(event, event_data); in hrs_event_callback() 116 event_char_read(event, event_data); in hrs_event_callback() 120 event_char_ccc_change(event, event_data); in hrs_event_callback()
|
A D | uart_client.c | 51 static void conn_change(ble_event_en event, void *event_data) in conn_change() argument 77 node->uart_event_callback(event, event_data); in conn_change() 83 static void mtu_exchange(ble_event_en event, void *event_data) in mtu_exchange() argument 116 node->uart_event_callback(event, event_data); in mtu_exchange() 347 evt_data_gatt_discovery_svc_t *e = event_data; in service_discovery() 357 evt_data_gatt_discovery_char_t *e = event_data; in service_discovery() 390 conn_change(event, event_data); in uart_event_callback() 394 mtu_exchange(event, event_data); in uart_event_callback() 398 device_find(event, event_data); in uart_event_callback() 405 service_discovery(event, event_data); in uart_event_callback() [all …]
|
A D | hids.c | 145 static void event_char_read(ble_event_en event, void *event_data) in event_char_read() argument 203 int execute_hids_call_func(int32_t idx, void *event_data) in execute_hids_call_func() argument 210 hids_event_arr[idx].cb(idx, event_data); in execute_hids_call_func() 216 static void event_char_write(ble_event_en event, void *event_data) in event_char_write() argument 259 static void event_char_ccc_change(ble_event_en event, void *event_data) in event_char_ccc_change() argument 280 static void conn_change(ble_event_en event, void *event_data) in conn_change() argument 291 static int hids_event_callback(ble_event_en event, void *event_data) in hids_event_callback() argument 295 event_char_read(event, event_data); in hids_event_callback() 299 event_char_write(event, event_data); in hids_event_callback() 303 conn_change(event, event_data); in hids_event_callback() [all …]
|
A D | ota_server.c | 176 static void conn_change(ble_event_en event, void *event_data) in conn_change() argument 226 void event_char_write(ble_event_en event, void *event_data) in event_char_write() argument 326 void event_char_read(ble_event_en event, void *event_data) in event_char_read() argument 360 void event_char_ccc_change(ble_event_en event, void *event_data) in event_char_ccc_change() argument 373 static void mtu_exchange(ble_event_en event, void *event_data) in mtu_exchange() argument 384 static int event_callback(ble_event_en event, void *event_data) in event_callback() argument 388 conn_change(event, event_data); in event_callback() 392 event_char_read(event, event_data); in event_callback() 396 event_char_write(event, event_data); in event_callback() 400 event_char_ccc_change(event, event_data); in event_callback() [all …]
|
A D | dis.c | 101 static void event_char_read(ble_event_en event, void *event_data) in event_char_read() argument 103 evt_data_gatt_char_read_t *e = (evt_data_gatt_char_read_t *)event_data; in event_char_read() 171 static void conn_change(ble_event_en event, void *event_data) in conn_change() argument 173 evt_data_gap_conn_change_t *e = (evt_data_gap_conn_change_t *)event_data; in conn_change() 182 static int dis_event_callback(ble_event_en event, void *event_data) in dis_event_callback() argument 186 conn_change(event, event_data); in dis_event_callback() 190 event_char_read(event, event_data); in dis_event_callback()
|
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/ |
A D | gatt.c | 68 evt_data_gatt_mtu_exchange_t *e = event_data; in event_gatt_mtu_exchange() 143 e = event_data; in event_gatt_discovery() 245 evt_data_gatt_read_cb_t *e = event_data; in event_gatt_read_cb() 338 evt_data_gatt_write_cb_t *e = event_data; in event_gatt_write_cb() 449 evt_data_gatt_notify_t *e = event_data; in event_gatt_notify() 983 conn_change(event, event_data); in test_event_callback() 987 event_char_read(event, event_data); in test_event_callback() 991 event_char_write(event, event_data); in test_event_callback() 1442 evt_data_gatt_notify_t *e = event_data; in event3_notify() 1485 event3_write_cb(event, event_data); in test3_event_callback() [all …]
|
A D | bt.c | 357 conn_change(event, event_data); in event_callback() 365 device_find(event, event_data); in event_callback() 369 conn_param_req(event, event_data); in event_callback() 373 conn_param_update(event, event_data); in event_callback() 383 smp_event(event, event_data); in event_callback() 1321 smp_passkey_display(event_data); in smp_event() 1325 smp_passkey_confirm(event_data); in smp_event() 1329 smp_passkey_entry(event_data); in smp_event() 1333 smp_pairing_confirm(event_data); in smp_event() 1337 smp_pairing_complete(event_data); in smp_event() [all …]
|
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/test/ |
A D | gatt.c | 68 evt_data_gatt_mtu_exchange_t *e = event_data; in event_gatt_mtu_exchange() 171 e = event_data; in event_gatt_discovery() 301 evt_data_gatt_read_cb_t *e = event_data; in event_gatt_read_cb() 405 evt_data_gatt_write_cb_t *e = event_data; in event_gatt_write_cb() 548 evt_data_gatt_notify_t *e = event_data; in event_gatt_notify() 943 evt_data_gatt_indicate_cb_t *e = event_data; in event_gatt_indicate_confirm() 1005 conn_change(event, event_data); in test_event_callback() 1009 event_char_read(event, event_data); in test_event_callback() 1013 event_char_write(event, event_data); in test_event_callback() 1036 event_gatt_notify(event, event_data); in test_event_callback() [all …]
|
A D | bt.c | 457 conn_change(event, event_data); in event_callback() 477 device_find(event, event_data); in event_callback() 481 conn_param_req(event, event_data); in event_callback() 495 smp_event(event, event_data); in event_callback() 917 evt_data_gap_dev_find_t *e = event_data; in device_find() 2237 smp_passkey_display(event_data); in smp_event() 2241 smp_passkey_confirm(event_data); in smp_event() 2245 smp_passkey_entry(event_data); in smp_event() 2249 smp_pairing_confirm(event_data); in smp_event() 2253 smp_pairing_complete(event_data); in smp_event() [all …]
|
/AliOS-Things-master/hardware/board/haaseduk1/board_test/ |
A D | ble_test.c | 48 static void device_find(ble_event_en event, void *event_data) in device_find() argument 55 memcpy(&ee, event_data, sizeof(evt_data_gap_dev_find_t)); in device_find() 69 static int event_callback(ble_event_en event, void *event_data) in event_callback() argument 73 device_find(event, event_data); in event_callback()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/example/ble_peripheral/ |
A D | peripheral_app.c | 450 p_param->event_data.service_reg_result); in app_profile_callback() 455 p_param->event_data.send_data_result.conn_id, in app_profile_callback() 456 p_param->event_data.send_data_result.cause, in app_profile_callback() 457 p_param->event_data.send_data_result.service_id, in app_profile_callback() 458 p_param->event_data.send_data_result.attrib_idx, in app_profile_callback() 459 p_param->event_data.send_data_result.credits); in app_profile_callback() 460 if (p_param->event_data.send_data_result.cause == GAP_SUCCESS) in app_profile_callback()
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/wireless/bt_host/ |
A D | bt_host_adapter.c | 33 static int bt_host_adapter_event_callback(ble_event_en event, void *event_data); 34 extern int bt_gatts_adapter_event_callback(ble_event_en event, void *event_data); 101 static int bt_host_adapter_event_callback(ble_event_en event, void *event_data) in bt_host_adapter_event_callback() argument 107 evt_data_gap_conn_change_t *e = (evt_data_gap_conn_change_t *)event_data; in bt_host_adapter_event_callback() 122 evt_data_gap_dev_find_t *e = (evt_data_gap_dev_find_t *)event_data; in bt_host_adapter_event_callback() 134 bt_gatts_adapter_event_callback(event, event_data); in bt_host_adapter_event_callback()
|
A D | bt_gatts_adapter.c | 265 int bt_gatts_adapter_event_callback(ble_event_en event, void *event_data) { in bt_gatts_adapter_event_callback() argument 269 evt_data_gatt_char_read_t *read_data = (evt_data_gatt_char_read_t *)event_data; in bt_gatts_adapter_event_callback() 292 evt_data_gatt_char_write_t *write_data = (evt_data_gatt_char_write_t *)event_data; in bt_gatts_adapter_event_callback() 309 … evt_data_gatt_char_ccc_change_t *data = (evt_data_gatt_char_ccc_change_t *)event_data; in bt_gatts_adapter_event_callback()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/wireless/bt_host/ |
A D | bt_host_adapter.c | 30 static int bt_host_adapter_event_callback(ble_event_en event, void *event_data); 32 void *event_data); 115 static int bt_host_adapter_event_callback(ble_event_en event, void *event_data) in bt_host_adapter_event_callback() argument 122 (evt_data_gap_conn_change_t *)event_data; in bt_host_adapter_event_callback() 137 evt_data_gap_dev_find_t *e = (evt_data_gap_dev_find_t *)event_data; in bt_host_adapter_event_callback() 150 bt_gatts_adapter_event_callback(event, event_data); in bt_host_adapter_event_callback()
|
A D | bt_gatts_adapter.c | 296 int bt_gatts_adapter_event_callback(ble_event_en event, void *event_data) { in bt_gatts_adapter_event_callback() argument 300 evt_data_gatt_char_read_t *read_data = (evt_data_gatt_char_read_t *)event_data; in bt_gatts_adapter_event_callback() 323 evt_data_gatt_char_write_t *write_data = (evt_data_gatt_char_write_t *)event_data; in bt_gatts_adapter_event_callback() 340 … evt_data_gatt_char_ccc_change_t *data = (evt_data_gatt_char_ccc_change_t *)event_data; in bt_gatts_adapter_event_callback()
|
/AliOS-Things-master/components/py_engine/modules/ble/ |
A D | bt_host_adapter.c | 24 static int bt_host_adapter_event_callback(ble_event_en event, void *event_data); 26 void *event_data); 113 static int bt_host_adapter_event_callback(ble_event_en event, void *event_data) in bt_host_adapter_event_callback() argument 120 (evt_data_gap_conn_change_t *)event_data; in bt_host_adapter_event_callback() 137 bt_gatts_adapter_event_callback(event, event_data); in bt_host_adapter_event_callback()
|
A D | bt_gatts_adapter.c | 341 int bt_gatts_adapter_event_callback(ble_event_en event, void *event_data) in bt_gatts_adapter_event_callback() argument 347 (evt_data_gatt_char_read_t *)event_data; in bt_gatts_adapter_event_callback() 378 (evt_data_gatt_char_write_t *)event_data; in bt_gatts_adapter_event_callback() 403 (evt_data_gatt_char_ccc_change_t *)event_data; in bt_gatts_adapter_event_callback()
|
/AliOS-Things-master/components/ble_netconfig/example/ |
A D | netcfg_example.c | 13 int ble_netcfg_callback(BLECFG_EVENT event, BLECFG_STATE state, void *event_data) in ble_netcfg_callback() argument
|
/AliOS-Things-master/components/ble_host/ble_profiles/include/yoc/ |
A D | hids.h | 44 typedef void (*hids_event_cb)(hids_event_e event, void *event_data); //Event call back.
|
/AliOS-Things-master/components/linkkit/dev_model/ |
A D | dm_shadow.c | 503 _OU_ dm_shw_data_t **event_data, in _dm_shw_event_output_search() argument 515 res = _dm_shw_data_search(outputdata, key, key_len, event_data, index); in _dm_shw_event_output_search() 709 dm_shw_data_t *event_data = NULL; in dm_shw_get_event_output_data() local 732 strlen(pos), &event_data, &array_index); in dm_shw_get_event_output_data() 738 *data = (void *)event_data; in dm_shw_get_event_output_data() 1549 dm_shw_data_t *event_data = NULL; in dm_shw_set_event_output_value() local 1577 if (event_data->data_value.type == DM_SHW_DATA_TYPE_ARRAY) { in dm_shw_set_event_output_value() 1584 res = _dm_shw_data_set(&event_data->data_value, value, value_len); in dm_shw_set_event_output_value() 1600 dm_shw_data_t *event_data = NULL; in dm_shw_get_event_output_value() local 1628 if (event_data->data_value.type == DM_SHW_DATA_TYPE_ARRAY) { in dm_shw_get_event_output_value() [all …]
|