Home
last modified time | relevance | path

Searched refs:intf_desc (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/components/usb/test/usb_host/
Dtest_usb_helpers.c375 …const usb_intf_desc_t *intf_desc = usb_parse_interface_descriptor(config_desc, 0, 0, &offset_intf); in test_parse_intf_and_ep() local
376 TEST_ASSERT_NOT_EQUAL(NULL, intf_desc); in test_parse_intf_and_ep()
379 …const usb_ep_desc_t *ep_desc = usb_parse_endpoint_descriptor_by_index(intf_desc, 0, config_desc->w… in test_parse_intf_and_ep()
383 …ep_desc = usb_parse_endpoint_descriptor_by_index(intf_desc, 1, config_desc->wTotalLength, &offset_… in test_parse_intf_and_ep()
388 intf_desc = usb_parse_interface_descriptor(config_desc, 1, 0, &offset_intf); in test_parse_intf_and_ep()
389 TEST_ASSERT_NOT_EQUAL(NULL, intf_desc); in test_parse_intf_and_ep()
392 …ep_desc = usb_parse_endpoint_descriptor_by_index(intf_desc, 0, config_desc->wTotalLength, &offset_… in test_parse_intf_and_ep()
397 intf_desc = usb_parse_interface_descriptor(config_desc, 1, 1, &offset_intf); in test_parse_intf_and_ep()
398 TEST_ASSERT_NOT_EQUAL(NULL, intf_desc); in test_parse_intf_and_ep()
401 …ep_desc = usb_parse_endpoint_descriptor_by_index(intf_desc, 0, config_desc->wTotalLength, &offset_… in test_parse_intf_and_ep()
[all …]
/hal_espressif-3.6.0/components/usb/
Dusb_helpers.c116 const usb_ep_desc_t *usb_parse_endpoint_descriptor_by_index(const usb_intf_desc_t *intf_desc, int i… in usb_parse_endpoint_descriptor_by_index() argument
118 assert(intf_desc != NULL && offset != NULL); in usb_parse_endpoint_descriptor_by_index()
119 if (index >= intf_desc->bNumEndpoints) { in usb_parse_endpoint_descriptor_by_index()
125 const usb_standard_desc_t *next_desc = (const usb_standard_desc_t *)intf_desc; in usb_parse_endpoint_descriptor_by_index()
146 …const usb_intf_desc_t *intf_desc = usb_parse_interface_descriptor(config_desc, bInterfaceNumber, b… in usb_parse_endpoint_descriptor_by_address() local
147 if (intf_desc == NULL) { in usb_parse_endpoint_descriptor_by_address()
155 for (int index = 0; index < intf_desc->bNumEndpoints; index++) { in usb_parse_endpoint_descriptor_by_address()
157 …ep_desc = usb_parse_endpoint_descriptor_by_index(intf_desc, index, config_desc->wTotalLength, &off… in usb_parse_endpoint_descriptor_by_address()
208 static void usbh_print_intf_desc(const usb_intf_desc_t *intf_desc) in usbh_print_intf_desc() argument
211 printf("\tbLength %d\n", intf_desc->bLength); in usbh_print_intf_desc()
[all …]
Dusb_host.c82 const usb_intf_desc_t *intf_desc; member
961 …nterface_alloc(client_t *client_obj, usb_device_handle_t dev_hdl, const usb_intf_desc_t *intf_desc) in interface_alloc() argument
963 …obj = heap_caps_calloc(1, sizeof(interface_t) + (sizeof(endpoint_t *) * intf_desc->bNumEndpoints),… in interface_alloc()
967 intf_obj->constant.intf_desc = intf_desc; in interface_alloc()
978 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) { in interface_free()
990 …const usb_intf_desc_t *intf_desc = usb_parse_interface_descriptor(config_desc, bInterfaceNumber, b… in interface_claim() local
991 if (intf_desc == NULL) { in interface_claim()
996 interface_t *intf_obj = interface_alloc(client_obj, dev_hdl, intf_desc); in interface_claim()
1002 for (int i = 0; i < intf_desc->bNumEndpoints; i++) { in interface_claim()
1004 …const usb_ep_desc_t *ep_desc = usb_parse_endpoint_descriptor_by_index(intf_desc, i, config_desc->w… in interface_claim()
[all …]
/hal_espressif-3.6.0/examples/peripherals/usb/host/cdc/common/cdc_acm_host/
Dcdc_acm_host.c121 const usb_intf_desc_t *intf_desc; // Pointer to data interface descriptor member
127 …const usb_intf_desc_t *intf_desc; // Pointer to notification interface descriptor, can be NULL if … member
268 …laim(p_cdc_acm_obj->cdc_acm_client_hdl, cdc_dev->dev_hdl, cdc_dev->data.intf_desc->bInterfaceNumbe… in cdc_acm_start()
273 if (cdc_dev->notif.intf_desc != NULL) { in cdc_acm_start()
274 if (cdc_dev->notif.intf_desc != cdc_dev->data.intf_desc) { in cdc_acm_start()
276 … cdc_dev->notif.intf_desc->bInterfaceNumber, 0), err, TAG,); in cdc_acm_start()
289 …ease(p_cdc_acm_obj->cdc_acm_client_hdl, cdc_dev->dev_hdl, cdc_dev->data.intf_desc->bInterfaceNumbe… in cdc_acm_start()
290 if (cdc_dev->notif.intf_desc != NULL) { in cdc_acm_start()
291 …ase(p_cdc_acm_obj->cdc_acm_client_hdl, cdc_dev->dev_hdl, cdc_dev->notif.intf_desc->bInterfaceNumbe… in cdc_acm_start()
667 …cdc_dev->notif.intf_desc = usb_parse_interface_descriptor(config_desc, notif_intf_idx, 0, &desc_of… in cdc_acm_find_intf_and_ep_desc()
[all …]
/hal_espressif-3.6.0/components/usb/include/usb/
Dusb_helpers.h97 const usb_ep_desc_t *usb_parse_endpoint_descriptor_by_index(const usb_intf_desc_t *intf_desc, int i…