Home
last modified time | relevance | path

Searched refs:cb_param (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.4.0/components/esp_hid/src/
Dbt_hidd.c539 esp_hidd_event_data_t cb_param = {0}; in bt_hidd_cb() local
558 cb_param.start.status = bt_hidd_get_status(param->init.status); in bt_hidd_cb()
559 …vent_post_to(s_hidd_param.dev->event_loop_handle, ESP_HIDD_EVENTS, ESP_HIDD_START_EVENT, &cb_param, in bt_hidd_cb()
567 cb_param.stop.status = bt_hidd_get_status(param->deinit.status); in bt_hidd_cb()
568 …event_post_to(s_hidd_param.dev->event_loop_handle, ESP_HIDD_EVENTS, ESP_HIDD_STOP_EVENT, &cb_param, in bt_hidd_cb()
589 cb_param.start.status = bt_hidd_get_status(param->init.status); in bt_hidd_cb()
590 …vent_post_to(s_hidd_param.dev->event_loop_handle, ESP_HIDD_EVENTS, ESP_HIDD_START_EVENT, &cb_param, in bt_hidd_cb()
615 cb_param.connect.status = bt_hidd_get_status(param->open.status); in bt_hidd_cb()
616 cb_param.connect.dev = s_hidd_param.dev->dev; in bt_hidd_cb()
617 …nt_post_to(s_hidd_param.dev->event_loop_handle, ESP_HIDD_EVENTS, ESP_HIDD_CONNECT_EVENT, &cb_param, in bt_hidd_cb()
[all …]
Dble_hidd.c486 esp_hidd_event_data_t cb_param = { in hid_event_handler() local
489 …st_to(dev->event_loop_handle, ESP_HIDD_EVENTS, ESP_HIDD_CONNECT_EVENT, &cb_param, sizeof(esp_hidd_… in hid_event_handler()
497 esp_hidd_event_data_t cb_param = {0}; in hid_event_handler() local
498 cb_param.disconnect.dev = dev->dev; in hid_event_handler()
499 cb_param.disconnect.reason = param->disconnect.reason; in hid_event_handler()
500 …to(dev->event_loop_handle, ESP_HIDD_EVENTS, ESP_HIDD_DISCONNECT_EVENT, &cb_param, sizeof(esp_hidd_… in hid_event_handler()
516 esp_hidd_event_data_t cb_param = {0}; in hid_event_handler() local
517 cb_param.control.dev = dev->dev; in hid_event_handler()
518 cb_param.control.control = dev->control; in hid_event_handler()
519 cb_param.control.map_index = device_index; in hid_event_handler()
[all …]
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/ble/ble_hid_device_demo/main/
Dhid_device_le_prf.c575 esp_hidd_cb_param_t cb_param = {0}; in esp_hidd_prf_cb_hdl() local
577 memcpy(cb_param.connect.remote_bda, param->connect.remote_bda, sizeof(esp_bd_addr_t)); in esp_hidd_prf_cb_hdl()
578 cb_param.connect.conn_id = param->connect.conn_id; in esp_hidd_prf_cb_hdl()
582 (hidd_le_env.hidd_cb)(ESP_HIDD_EVENT_BLE_CONNECT, &cb_param); in esp_hidd_prf_cb_hdl()
597 esp_hidd_cb_param_t cb_param = {0}; in esp_hidd_prf_cb_hdl() local
600 cb_param.vendor_write.conn_id = param->write.conn_id; in esp_hidd_prf_cb_hdl()
601 cb_param.vendor_write.report_id = HID_RPT_ID_VENDOR_OUT; in esp_hidd_prf_cb_hdl()
602 cb_param.vendor_write.length = param->write.len; in esp_hidd_prf_cb_hdl()
603 cb_param.vendor_write.data = param->write.value; in esp_hidd_prf_cb_hdl()
604 (hidd_le_env.hidd_cb)(ESP_HIDD_EVENT_BLE_VENDOR_REPORT_WRITE_EVT, &cb_param); in esp_hidd_prf_cb_hdl()