/hal_espressif-3.5.0/components/esp_hid/test/ |
D | test_esp_hid.c | 35 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 …]
|
D | README.md | 14 …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/ |
D | main.c | 22 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/ |
D | esp_hidh_private.h | 41 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,
|
D | esp_hidd_private.h | 38 uint8_t protocol_mode; // boot or report member
|
/hal_espressif-3.5.0/components/esp_hid/src/ |
D | esp_hidh.c | 325 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 …]
|
D | bt_hidd.c | 50 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 …]
|
D | esp_hid_common.c | 98 .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()
|
D | ble_hidh.c | 191 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()
|
D | bt_hidh.c | 373 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 …]
|
D | ble_hidd.c | 267 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/ |
D | esp_hid_device_main.c | 38 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/ |
D | esp_hidd.h | 120 uint8_t protocol_mode; /*!< HID Protocol Mode */ member 122 …} protocol_mode; /*!< HID callback param of ESP_HIDD_PROTOCOL_MODE_EVEN… member
|
D | esp_hid_common.h | 151 uint8_t protocol_mode; /*!< HID protocol mode */ member 236 const char *esp_hid_protocol_mode_str(uint8_t protocol_mode);
|
D | esp_hidh.h | 279 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/ |
D | esp_hidh_api.c | 146 …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/ |
D | btc_hh.c | 83 … 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()
|
D | btc_hd.c | 759 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/ |
D | btc_hh.h | 134 esp_hidh_protocol_mode_t protocol_mode; member
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/api/include/api/ |
D | esp_hidd_api.h | 233 esp_hidd_protocol_mode_t protocol_mode; /*!< protocol mode */ member
|
D | esp_hidh_api.h | 392 …_err_t esp_bt_hid_host_set_protocol(esp_bd_addr_t bd_addr, esp_hidh_protocol_mode_t protocol_mode);
|