Home
last modified time | relevance | path

Searched refs:reports_len (Results 1 – 10 of 10) sorted by relevance

/hal_espressif-3.6.0/components/esp_hid/test/
Dtest_esp_hid.c32 TEST_ASSERT(report_map->reports_len == 8);
82 TEST_ASSERT(report_map->reports_len == 2);
102 TEST_ASSERT(report_map->reports_len == 2);
122 TEST_ASSERT(report_map->reports_len == 4);
152 TEST_ASSERT(report_map->reports_len == 1);
167 TEST_ASSERT(report_map->reports_len == 1);
182 TEST_ASSERT(report_map->reports_len == 1);
197 TEST_ASSERT(report_map->reports_len == 3);
DREADME.md10 printf(" TEST_ASSERT(report_map->reports_len == %u);\n", report_map->reports_len);
11 for(uint8_t i=0; i<report_map->reports_len; i++){
/hal_espressif-3.6.0/components/esp_hid/src/
Desp_hid_common.c27 uint8_t reports_len; member
67 if (map->reports_len >= 64) { in add_report()
71 memcpy(&(map->reports[map->reports_len]), item, sizeof(esp_hid_report_item_t)); in add_report()
72 map->reports_len++; in add_report()
376 …esp_hid_report_item_t *reports = (esp_hid_report_item_t *)calloc(1, map->reports_len * sizeof(esp_… in esp_hid_parse_report_map()
378 ESP_LOGE(TAG, "hid_report_items malloc failed! %u maps", map->reports_len); in esp_hid_parse_report_map()
404 out->reports_len = map->reports_len; in esp_hid_parse_report_map()
405 memcpy(reports, map->reports, map->reports_len * sizeof(esp_hid_report_item_t)); in esp_hid_parse_report_map()
Dbt_hidd.c36 uint8_t reports_len; member
132 dev->devices[d].reports_len = rmap->reports_len; in bt_hidd_init_config()
133 …dev->devices[d].reports = (hidd_report_item_t *)malloc(rmap->reports_len * sizeof(hidd_report_item… in bt_hidd_init_config()
135 … ESP_LOGE(TAG, "reports malloc(%d) failed", rmap->reports_len * sizeof(hidd_report_item_t)); in bt_hidd_init_config()
139 for (uint8_t r = 0; r < rmap->reports_len; r++) { in bt_hidd_init_config()
162 for (uint8_t i = 0; i < dev->devices[index].reports_len; i++) { in get_report_by_idx_id_type()
175 for (uint8_t i = 0; i < dev->devices[idx].reports_len; i++) { in get_report_by_id_and_type()
275 for (uint8_t i = 0; i < dev->devices[d].reports_len; i++) { in get_value_len_by_type_protocol()
Dble_hidd.c131 uint8_t reports_len; member
261 for (uint8_t i = 0; i < dev->devices[device_index].reports_len; i++) { in create_hid_db()
296 for (uint8_t i = 0; i < dev->devices[device_index].reports_len; i++) { in create_hid_db()
344 for (uint8_t i = 0; i < dev->reports_len; i++) { in link_report_handles()
357 for (uint8_t i = 0; i < dev->devices[d].reports_len; i++) { in get_report_by_handle()
371 for (uint8_t i = 0; i < dev->devices[d].reports_len; i++) { in get_report_by_id_and_type()
701 dev->devices[d].reports_len = rmap->reports_len; in ble_hid_init_config()
702 …dev->devices[d].reports = (hidd_le_report_item_t *)malloc(rmap->reports_len * sizeof(hidd_le_repor… in ble_hid_init_config()
704 … ESP_LOGE(TAG, "reports malloc(%d) failed", rmap->reports_len * sizeof(hidd_le_report_item_t)); in ble_hid_init_config()
708 for (uint8_t r = 0; r < rmap->reports_len; r++) { in ble_hid_init_config()
Desp_hidh.c465 r = (esp_hid_report_item_t *)malloc(sizeof(esp_hid_report_item_t) * dev->reports_len); in esp_hidh_dev_reports_get()
472 for (uint8_t i = 0; i < dev->reports_len; i++) { in esp_hidh_dev_reports_get()
489 *num_reports = dev->reports_len; in esp_hidh_dev_reports_get()
Dbt_hidh.c364 for (uint8_t i = 0; i < map->reports_len; i++) { in esp_hh_cb()
381 dev->reports_len = map->reports_len; in esp_hh_cb()
1061 dev->reports_len = 0; in hidh_dev_ctor()
Dble_hidh.c243 dev->reports_len++; in read_device_services()
253 if (dev->reports_len && dev->config.report_maps[d].len) { in read_device_services()
262 for (uint8_t i = 0; i < map->reports_len; i++) { in read_device_services()
/hal_espressif-3.6.0/components/esp_hid/include/
Desp_hid_common.h162 uint8_t reports_len; /*!< Number of reports discovered in the report map */ member
/hal_espressif-3.6.0/components/esp_hid/private/
Desp_hidh_private.h71 size_t reports_len; member