Searched refs:p_cb_param (Results 1 – 2 of 2) sorted by relevance
540 esp_hidd_event_data_t *p_cb_param = NULL; in bt_hidd_cb() local664 if ((p_cb_param = (esp_hidd_event_data_t *)malloc(event_data_size)) == NULL) { in bt_hidd_cb()668 memset(p_cb_param, 0, event_data_size); in bt_hidd_cb()669 p_cb_param->feature.dev = s_hidd_param.dev->dev; in bt_hidd_cb()670 p_cb_param->feature.trans_type = ESP_HID_TRANS_GET_REPORT; in bt_hidd_cb()671 p_cb_param->feature.report_type = param->get_report.report_type; in bt_hidd_cb()672 p_cb_param->feature.report_id = p_rpt->report_id; in bt_hidd_cb()673 p_cb_param->feature.usage = p_rpt->usage; in bt_hidd_cb()674 p_cb_param->feature.length = param->get_report.buffer_size ? 2 : 0; in bt_hidd_cb()675 p_cb_param->feature.data = ((uint8_t *)p_cb_param) + sizeof(esp_hidd_event_data_t); in bt_hidd_cb()[all …]
538 esp_hidd_event_data_t *p_cb_param = NULL; in hid_event_handler() local544 if ((p_cb_param = (esp_hidd_event_data_t *)malloc(event_data_size)) == NULL) { in hid_event_handler()548 memset(p_cb_param, 0, event_data_size); in hid_event_handler()550 … memcpy(((uint8_t *)p_cb_param) + sizeof(esp_hidd_event_data_t), param->write.value, in hid_event_handler()555 p_cb_param->output.dev = dev->dev; in hid_event_handler()556 p_cb_param->output.report_id = map->report_id; in hid_event_handler()557 p_cb_param->output.usage = map->usage; in hid_event_handler()558 p_cb_param->output.length = param->write.len; in hid_event_handler()559 …p_cb_param->output.data = param->write.value; /* move the data pointer in the wrapper loop handler… in hid_event_handler()560 p_cb_param->output.map_index = device_index; in hid_event_handler()[all …]