Home
last modified time | relevance | path

Searched refs:protocol_mode (Results 1 – 21 of 21) sorted by relevance

/hal_espressif-3.5.0/components/esp_hid/test/
Dtest_esp_hid.c35 TEST_ASSERT(report_map->reports[0].protocol_mode == ESP_HID_PROTOCOL_MODE_REPORT);
40 TEST_ASSERT(report_map->reports[1].protocol_mode == ESP_HID_PROTOCOL_MODE_BOOT);
45 TEST_ASSERT(report_map->reports[2].protocol_mode == ESP_HID_PROTOCOL_MODE_REPORT);
50 TEST_ASSERT(report_map->reports[3].protocol_mode == ESP_HID_PROTOCOL_MODE_BOOT);
55 TEST_ASSERT(report_map->reports[4].protocol_mode == ESP_HID_PROTOCOL_MODE_REPORT);
60 TEST_ASSERT(report_map->reports[5].protocol_mode == ESP_HID_PROTOCOL_MODE_BOOT);
65 TEST_ASSERT(report_map->reports[6].protocol_mode == ESP_HID_PROTOCOL_MODE_REPORT);
70 TEST_ASSERT(report_map->reports[7].protocol_mode == ESP_HID_PROTOCOL_MODE_REPORT);
85 TEST_ASSERT(report_map->reports[0].protocol_mode == ESP_HID_PROTOCOL_MODE_REPORT);
90 TEST_ASSERT(report_map->reports[1].protocol_mode == ESP_HID_PROTOCOL_MODE_BOOT);
[all …]
DREADME.md14 …rt_map->reports[%u].protocol_mode == ESP_HID_PROTOCOL_MODE_%s);\n", i, esp_hid_protocol_mode_str(r…
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/classic_bt/bt_hid_mouse_device/main/
Dmain.c22 uint8_t protocol_mode; member
39 if (s_local_param.protocol_mode == ESP_HIDD_BOOT_MODE) { in check_report_id_type()
53 if (s_local_param.protocol_mode == ESP_HIDD_BOOT_MODE) { in check_report_id_type()
67 if (s_local_param.protocol_mode == ESP_HIDD_REPORT_MODE) { in send_mouse()
73 } else if (s_local_param.protocol_mode == ESP_HIDD_BOOT_MODE) { in send_mouse()
304 if (s_local_param.protocol_mode == ESP_HIDD_REPORT_MODE) { in esp_bt_hidd_cb()
306 } else if (s_local_param.protocol_mode == ESP_HIDD_BOOT_MODE) { in esp_bt_hidd_cb()
319 if (param->set_protocol.protocol_mode == ESP_HIDD_BOOT_MODE) { in esp_bt_hidd_cb()
324 } else if (param->set_protocol.protocol_mode == ESP_HIDD_REPORT_MODE) { in esp_bt_hidd_cb()
328 s_local_param.protocol_mode = param->set_protocol.protocol_mode; in esp_bt_hidd_cb()
[all …]
/hal_espressif-3.5.0/components/esp_hid/private/
Desp_hidh_private.h41 uint8_t protocol_mode; //boot or report member
63 uint8_t protocol_mode; //device protocol mode member
87 esp_err_t (*set_protocol) (esp_hidh_dev_t *dev, uint8_t protocol_mode);
127 …o(esp_hidh_dev_t *dev, size_t map_index, size_t report_id, int report_type, uint8_t protocol_mode);
129 …esp_hidh_dev_get_input_report_by_len_and_proto(esp_hidh_dev_t *dev, size_t len, int protocol_mode);
130 …idh_dev_get_input_report_by_id_and_proto(esp_hidh_dev_t *dev, size_t report_id, int protocol_mode);
131 …v_report_t *esp_hidh_dev_get_input_report_by_proto_and_data(esp_hidh_dev_t *dev, int protocol_mode,
Desp_hidd_private.h38 uint8_t protocol_mode; // boot or report member
/hal_espressif-3.5.0/components/esp_hid/src/
Desp_hidh.c325 esp_err_t esp_hidh_dev_set_protocol(esp_hidh_dev_t *dev, uint8_t protocol_mode) in esp_hidh_dev_set_protocol() argument
331 ret = dev->set_protocol(dev, protocol_mode); in esp_hidh_dev_set_protocol()
480 r[i].protocol_mode = dr->protocol_mode; in esp_hidh_dev_reports_get()
557 …to(esp_hidh_dev_t *dev, size_t map_index, size_t report_id, int report_type, uint8_t protocol_mode) in esp_hidh_dev_get_report_by_id_type_proto() argument
562 r->protocol_mode == protocol_mode) { in esp_hidh_dev_get_report_by_id_type_proto()
574 …x && r->report_id == report_id && r->report_type == report_type && r->protocol_mode == ESP_HID_PRO… in esp_hidh_dev_get_report_by_id_and_type()
582 …hidh_dev_get_input_report_by_id_and_proto(esp_hidh_dev_t *dev, size_t report_id, int protocol_mode) in esp_hidh_dev_get_input_report_by_id_and_proto() argument
586 …= report_id && (r->report_type & ESP_HID_REPORT_TYPE_INPUT) && r->protocol_mode == protocol_mode) { in esp_hidh_dev_get_input_report_by_id_and_proto()
594 …*esp_hidh_dev_get_input_report_by_len_and_proto(esp_hidh_dev_t *dev, size_t len, int protocol_mode) in esp_hidh_dev_get_input_report_by_len_and_proto() argument
598 …_len == len && (r->report_type & ESP_HID_REPORT_TYPE_INPUT) && r->protocol_mode == protocol_mode) { in esp_hidh_dev_get_input_report_by_len_and_proto()
[all …]
Dbt_hidd.c50 uint8_t protocol_mode; // 0x00 boot, 0x01 report member
142 dev->devices[d].reports[r].protocol_mode = rmap->reports[r].protocol_mode; in bt_hidd_init_config()
164 …if (rpt->report_id == id && rpt->report_type == type && rpt->protocol_mode == dev->protocol_mode) { in get_report_by_idx_id_type()
177 …if (rpt->report_id == id && rpt->report_type == type && rpt->protocol_mode == dev->protocol_mode) { in get_report_by_id_and_type()
270 … get_value_len_by_type_protocol(esp_bt_hidd_dev_t *dev, uint8_t report_type, uint8_t protocol_mode) in get_value_len_by_type_protocol() argument
277 if (rpt->report_type == report_type && rpt->protocol_mode == dev->protocol_mode) { in get_value_len_by_type_protocol()
300 …len_by_type_protocol(s_hidd_param.dev, ESP_HID_REPORT_TYPE_INPUT, s_hidd_param.dev->protocol_mode); in bt_hidd_init_qos()
304 …len_by_type_protocol(s_hidd_param.dev, ESP_HID_REPORT_TYPE_INPUT, s_hidd_param.dev->protocol_mode); in bt_hidd_init_qos()
727 if (param->set_protocol.protocol_mode != ESP_HIDD_UNSUPPORTED_MODE) { in bt_hidd_cb()
728 if (s_hidd_param.dev->protocol_mode == param->set_protocol.protocol_mode) { in bt_hidd_cb()
[all …]
Desp_hid_common.c98 .protocol_mode = ESP_HID_PROTOCOL_MODE_REPORT, in handle_report()
105 item.protocol_mode = ESP_HID_PROTOCOL_MODE_BOOT; in handle_report()
116 .protocol_mode = ESP_HID_PROTOCOL_MODE_REPORT, in handle_report()
123 item.protocol_mode = ESP_HID_PROTOCOL_MODE_BOOT; in handle_report()
137 .protocol_mode = ESP_HID_PROTOCOL_MODE_REPORT, in handle_report()
144 item.protocol_mode = ESP_HID_PROTOCOL_MODE_BOOT; in handle_report()
176 .protocol_mode = ESP_HID_PROTOCOL_MODE_REPORT, in handle_report()
Dble_hidh.c191 report->protocol_mode = ESP_HID_PROTOCOL_MODE_BOOT; in read_device_services()
196 report->protocol_mode = ESP_HID_PROTOCOL_MODE_BOOT; in read_device_services()
201 report->protocol_mode = ESP_HID_PROTOCOL_MODE_BOOT; in read_device_services()
206 report->protocol_mode = ESP_HID_PROTOCOL_MODE_REPORT; in read_device_services()
264 if (report->protocol_mode == ESP_HID_PROTOCOL_MODE_BOOT in read_device_services()
265 && report->protocol_mode == r->protocol_mode in read_device_services()
270 } else if (report->protocol_mode == r->protocol_mode in read_device_services()
320 …if ((report->permissions & ESP_GATT_CHAR_PROP_BIT_NOTIFY) != 0 && report->protocol_mode == ESP_HID… in attach_report_listeners()
616 …e), esp_hid_report_type_str(report->report_type), esp_hid_protocol_mode_str(report->protocol_mode), in esp_ble_hidh_dev_dump()
Dbt_hidh.c373 report->protocol_mode = r->protocol_mode; in esp_hh_cb()
620 dev->protocol_mode = param->get_proto.proto_mode; // update the device protocol mode in esp_hh_cb()
772 …p_hidh_dev_get_report_by_id_type_proto(dev, map_index, report_id, report_type, dev->protocol_mode); in esp_bt_hidh_dev_report_write()
774 … ESP_LOGE(TAG, "mode:%s report:%s id:%d not found", get_protocol_mode(dev->protocol_mode), in esp_bt_hidh_dev_report_write()
823 …p_hidh_dev_get_report_by_id_type_proto(dev, map_index, report_id, report_type, dev->protocol_mode); in esp_bt_hidh_dev_set_report()
825 … ESP_LOGE(TAG, "mode:%s report:%s id:%d not found", get_protocol_mode(dev->protocol_mode), in esp_bt_hidh_dev_set_report()
867 …p_hidh_dev_get_report_by_id_type_proto(dev, map_index, report_id, report_type, dev->protocol_mode); in esp_bt_hidh_dev_report_read()
869 … ESP_LOGE(TAG, "mode:%s report:%s id:%d not found", get_protocol_mode(dev->protocol_mode), in esp_bt_hidh_dev_report_read()
953 static esp_err_t esp_bt_hidh_dev_set_protocol(esp_hidh_dev_t *dev, uint8_t protocol_mode) in esp_bt_hidh_dev_set_protocol() argument
968 ret = esp_bt_hid_host_set_protocol(dev->bda, protocol_mode); in esp_bt_hidh_dev_set_protocol()
[all …]
Dble_hidd.c267 if (dev->devices[device_index].reports[i].protocol_mode == ESP_HID_PROTOCOL_MODE_REPORT) { in create_hid_db()
298 if (report->protocol_mode == ESP_HID_PROTOCOL_MODE_REPORT) { in create_hid_db()
373 …if (rpt->report_id == id && rpt->report_type == type && rpt->protocol_mode == ESP_HID_PROTOCOL_MOD… in get_report_by_id_and_type()
507 …hid_report_type_str(map->report_type), esp_hid_protocol_mode_str(map->protocol_mode), map->report_… in hid_event_handler()
525 cb_param.protocol_mode.dev = dev->dev; in hid_event_handler()
526 cb_param.protocol_mode.protocol_mode = dev->protocol; in hid_event_handler()
527 cb_param.protocol_mode.map_index = device_index; in hid_event_handler()
534 …hid_report_type_str(map->report_type), esp_hid_protocol_mode_str(map->protocol_mode), map->report_… in hid_event_handler()
536 …hid_report_type_str(map->report_type), esp_hid_protocol_mode_str(map->protocol_mode), map->report_… in hid_event_handler()
585 …hid_report_type_str(map->report_type), esp_hid_protocol_mode_str(map->protocol_mode), map->report_… in hid_event_handler()
[all …]
/hal_espressif-3.5.0/examples/bluetooth/esp_hid_device/main/
Desp_hid_device_main.c38 uint8_t protocol_mode; member
350 …ESP_LOGI(TAG, "PROTOCOL MODE[%u]: %s", param->protocol_mode.map_index, param->protocol_mode.protoc… in ble_hidd_event_callback()
538 …ESP_LOGI(TAG, "PROTOCOL MODE[%u]: %s", param->protocol_mode.map_index, param->protocol_mode.protoc… in bt_hidd_event_callback()
/hal_espressif-3.5.0/components/esp_hid/include/
Desp_hidd.h120 uint8_t protocol_mode; /*!< HID Protocol Mode */ member
122 …} protocol_mode; /*!< HID callback param of ESP_HIDD_PROTOCOL_MODE_EVEN… member
Desp_hid_common.h151 uint8_t protocol_mode; /*!< HID protocol mode */ member
236 const char *esp_hid_protocol_mode_str(uint8_t protocol_mode);
Desp_hidh.h279 esp_err_t esp_hidh_dev_set_protocol(esp_hidh_dev_t *dev, uint8_t protocol_mode);
/hal_espressif-3.5.0/components/bt/host/bluedroid/api/
Desp_hidh_api.c146 …p_err_t esp_bt_hid_host_set_protocol(esp_bd_addr_t bd_addr, esp_hidh_protocol_mode_t protocol_mode) in esp_bt_hid_host_set_protocol() argument
157 arg.set_protocol.protocol_mode = protocol_mode; in esp_bt_hid_host_set_protocol()
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/std/hid/
Dbtc_hh.c83 … inline tBTA_HH_PROTO_MODE proto_mode_change_to_lower_layer(esp_hidh_protocol_mode_t protocol_mode) in proto_mode_change_to_lower_layer() argument
87 switch (protocol_mode) { in proto_mode_change_to_lower_layer()
111 esp_hidh_protocol_mode_t protocol_mode = ESP_HIDH_UNSUPPORTED_MODE; in proto_mode_change_to_upper_layer() local
115 protocol_mode = ESP_HIDH_REPORT_MODE; in proto_mode_change_to_upper_layer()
118 protocol_mode = ESP_HIDH_BOOT_MODE; in proto_mode_change_to_upper_layer()
124 return protocol_mode; in proto_mode_change_to_upper_layer()
821 …} else if (arg->set_protocol.protocol_mode != ESP_HIDH_REPORT_MODE && arg->set_protocol.protocol_m… in btc_hh_set_protocol()
822 … BTC_TRACE_ERROR("%s: Error, device proto_mode = %d.", __func__, arg->set_protocol.protocol_mode); in btc_hh_set_protocol()
826 …SetProtoMode(p_dev->dev_handle, proto_mode_change_to_lower_layer(arg->set_protocol.protocol_mode)); in btc_hh_set_protocol()
Dbtc_hd.c759 param.set_protocol.protocol_mode = ESP_HIDD_BOOT_MODE; in btc_hd_cb_handler()
762 param.set_protocol.protocol_mode = ESP_HIDD_REPORT_MODE; in btc_hd_cb_handler()
765 param.set_protocol.protocol_mode = ESP_HIDD_UNSUPPORTED_MODE; in btc_hd_cb_handler()
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/std/include/
Dbtc_hh.h134 esp_hidh_protocol_mode_t protocol_mode; member
/hal_espressif-3.5.0/components/bt/host/bluedroid/api/include/api/
Desp_hidd_api.h233 esp_hidd_protocol_mode_t protocol_mode; /*!< protocol mode */ member
Desp_hidh_api.h392 …_err_t esp_bt_hid_host_set_protocol(esp_bd_addr_t bd_addr, esp_hidh_protocol_mode_t protocol_mode);