Searched refs:rmap (Results 1 – 2 of 2) sorted by relevance
126 …esp_hid_report_map_t *rmap = esp_hid_parse_report_map(config->report_maps[d].data, config->report_… in bt_hidd_init_config() local127 if (rmap == NULL) { in bt_hidd_init_config()131 dev->appearance = rmap->appearance; in bt_hidd_init_config()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()136 free(rmap); in bt_hidd_init_config()139 for (uint8_t r = 0; r < rmap->reports_len; r++) { in bt_hidd_init_config()141 dev->devices[d].reports[r].report_id = rmap->reports[r].report_id; in bt_hidd_init_config()142 dev->devices[d].reports[r].protocol_mode = rmap->reports[r].protocol_mode; in bt_hidd_init_config()[all …]
695 …esp_hid_report_map_t *rmap = esp_hid_parse_report_map(config->report_maps[d].data, config->report_… in ble_hid_init_config() local696 if (rmap == NULL) { in ble_hid_init_config()700 dev->appearance = rmap->appearance; in ble_hid_init_config()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()705 free(rmap); in ble_hid_init_config()708 for (uint8_t r = 0; r < rmap->reports_len; r++) { in ble_hid_init_config()710 dev->devices[d].reports[r].report_id = rmap->reports[r].report_id; in ble_hid_init_config()711 dev->devices[d].reports[r].protocol_mode = rmap->reports[r].protocol_mode; in ble_hid_init_config()[all …]