Searched refs:report_maps (Results 1 – 7 of 7) sorted by relevance
/hal_espressif-3.6.0/components/esp_hid/src/ |
D | bt_hidh.c | 335 dev->config.report_maps = in esp_hh_cb() 337 if (dev->config.report_maps == NULL) { in esp_hh_cb() 344 dev->config.report_maps[0].data = (uint8_t *)malloc(param->dscp.dl_len); in esp_hh_cb() 345 if (dev->config.report_maps[0].data == NULL) { in esp_hh_cb() 349 dev->config.report_maps[0].len = param->dscp.dl_len; in esp_hh_cb() 350 memcpy((uint8_t *)dev->config.report_maps[0].data, param->dscp.dsc_list, in esp_hh_cb() 351 dev->config.report_maps[0].len); in esp_hh_cb() 354 if (dev->config.report_maps[0].len && dev->config.report_maps[0].data) { in esp_hh_cb() 358 … map = esp_hid_parse_report_map(dev->config.report_maps[0].data, dev->config.report_maps[0].len); in esp_hh_cb() 982 fprintf(fp, "Report Map Length: %d\n", dev->config.report_maps[0].len); in esp_bt_hidh_dev_dump()
|
D | bt_hidd.c | 87 … if (config->report_maps == NULL || config->report_maps_len == 0 || config->report_maps_len > 1) { in bt_hidd_init_config() 116 uint8_t *map = (uint8_t *)malloc(config->report_maps[d].len); in bt_hidd_init_config() 118 ESP_LOGE(TAG, "report map malloc(%d) failed", config->report_maps[d].len); in bt_hidd_init_config() 121 memcpy(map, config->report_maps[d].data, config->report_maps[d].len); in bt_hidd_init_config() 124 dev->devices[d].reports_map.len = config->report_maps[d].len; in bt_hidd_init_config() 126 …d_report_map_t *rmap = esp_hid_parse_report_map(config->report_maps[d].data, config->report_maps[d… in bt_hidd_init_config() 128 ESP_LOGE(TAG, "hid_parse_report_map[%d](%d) failed", d, config->report_maps[d].len); in bt_hidd_init_config()
|
D | ble_hidh.c | 110 …dev->config.report_maps = (esp_hid_raw_report_map_t *)malloc(dev->config.report_maps_len * sizeof(… in read_device_services() 111 if (dev->config.report_maps == NULL) { in read_device_services() 173 dev->config.report_maps[hidindex].data = (const uint8_t *)rdata; in read_device_services() 174 dev->config.report_maps[hidindex].len = rlen; in read_device_services() 253 if (dev->reports_len && dev->config.report_maps[d].len) { in read_device_services() 254 … map = esp_hid_parse_report_map(dev->config.report_maps[d].data, dev->config.report_maps[d].len); in read_device_services() 611 fprintf(fp, " Report Map Length: %d\n", dev->config.report_maps[d].len); in esp_ble_hidh_dev_dump()
|
D | ble_hidd.c | 685 uint8_t *map = (uint8_t *)malloc(config->report_maps[d].len); in ble_hid_init_config() 687 ESP_LOGE(TAG, "report map malloc(%d) failed", config->report_maps[d].len); in ble_hid_init_config() 690 memcpy(map, config->report_maps[d].data, config->report_maps[d].len); in ble_hid_init_config() 693 dev->devices[d].reports_map.len = config->report_maps[d].len; in ble_hid_init_config() 695 …d_report_map_t *rmap = esp_hid_parse_report_map(config->report_maps[d].data, config->report_maps[d… in ble_hid_init_config() 697 ESP_LOGE(TAG, "hid_parse_report_map[%d](%d) failed", d, config->report_maps[d].len); in ble_hid_init_config()
|
D | esp_hidh.c | 504 *maps = dev->config.report_maps; in esp_hidh_dev_report_maps_get() 660 free((void *)dev->config.report_maps[d].data); in esp_hidh_dev_resources_free() 662 free((void *)dev->config.report_maps); in esp_hidh_dev_resources_free()
|
/hal_espressif-3.6.0/examples/bluetooth/esp_hid_device/main/ |
D | esp_hid_device_main.c | 144 .report_maps = ble_report_maps, 434 .report_maps = bt_report_maps,
|
/hal_espressif-3.6.0/components/esp_hid/include/ |
D | esp_hid_common.h | 184 esp_hid_raw_report_map_t *report_maps; /*!< Array of the raw HID report maps */ member
|