Home
last modified time | relevance | path

Searched refs:bta_hh_cb (Results 1 – 6 of 6) sorted by relevance

/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/hh/
Dbta_hh_act.c77 memset(&bta_hh_cb, 0, sizeof(tBTA_HH_CB)); in bta_hh_api_enable()
84 bta_hh_cb.p_cback = p_data->api_enable.p_cback; in bta_hh_api_enable()
89 bta_hh_cb.kdev[xx].state = BTA_HH_IDLE_ST; in bta_hh_api_enable()
90 bta_hh_cb.kdev[xx].hid_handle = BTA_HH_INVALID_HANDLE; in bta_hh_api_enable()
91 bta_hh_cb.kdev[xx].index = xx; in bta_hh_api_enable()
96 bta_hh_cb.cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_api_enable()
107 (* bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, (tBTA_HH *)&status); in bta_hh_api_enable()
125 if (bta_hh_cb.p_cback == NULL) { in bta_hh_api_disable()
130 if (!bta_hh_cb.cnt_num) { in bta_hh_api_disable()
133 bta_hh_cb.w4_disable = TRUE; in bta_hh_api_disable()
[all …]
Dbta_hh_utils.c69 if ((!bdcmp (bda, bta_hh_cb.kdev[xx].addr) && in bta_hh_find_cb()
73 bta_hh_cb.kdev[xx].hid_handle) in bta_hh_find_cb()
80 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb()
81 bta_hh_cb.kdev[xx].hid_handle, in bta_hh_find_cb()
82 bta_hh_cb.kdev[xx].state); in bta_hh_find_cb()
89 if (!bta_hh_cb.kdev[xx].in_use) { in bta_hh_find_cb()
90 bdcpy(bta_hh_cb.kdev[xx].addr, bda); in bta_hh_find_cb()
124 bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(p_cb->hid_handle)] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev()
128 bta_hh_cb.cb_index[p_cb->hid_handle] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev()
258 tBTA_HH_KB_CB *p_kb = &bta_hh_cb.kb_cb; in bta_hh_parse_keybd_rpt()
[all …]
Dbta_hh_le.c212 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
215 bta_hh_cb.le_cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_le_enable()
242 bta_hh_cb.gatt_if = p_reg->client_if; in bta_hh_le_register_cmpl()
245 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_register_cmpl()
249 (* bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, (tBTA_HH *)&status); in bta_hh_le_register_cmpl()
264 return (bta_hh_cb.gatt_if == client_if); in bta_hh_le_is_hh_gatt_if()
279 BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); in bta_hh_le_deregister()
334 bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(p_cb->hid_handle)] = p_cb->index; in bta_hh_le_open_conn()
337 …BTA_GATTC_Open(bta_hh_cb.gatt_if, remote_bda, BLE_ADDR_UNKNOWN_TYPE, TRUE, BTA_GATT_TRANSPORT_LE, … in bta_hh_le_open_conn()
396 tBTA_HH_DEV_CB *p_dev_cb = &bta_hh_cb.kdev[0]; in bta_hh_le_find_dev_cb_by_conn_id()
[all …]
Dbta_hh_main.c248 tBTA_HH_CB bta_hh_cb; variable
286 if (bta_hh_cb.p_cback != NULL) { in bta_hh_sm_execute()
352 (* bta_hh_cb.p_cback)(cback_event, &cback_data); in bta_hh_sm_execute()
439 (bta_hh_cb.kdev[index].in_use == FALSE)) { in bta_hh_hdl_event()
451 p_cb = &bta_hh_cb.kdev[index]; in bta_hh_hdl_event()
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/hh/include/
Dbta_hh_int.h309 extern tBTA_HH_CB bta_hh_cb;
312 #define bta_hh_cb (*bta_hh_cb_ptr) macro
/hal_espressif-2.7.6/components/esp_hid/src/
Dbt_hidh.c44 static void bta_hh_cb(tBTA_HH_EVT event, tBTA_HH *p_data) in bta_hh_cb() function
337 BTA_HhEnable(0, bta_hh_cb); in esp_bt_hidh_init()