/hal_espressif-3.6.0/components/usb/test/usb_host/ |
D | test_usb_helpers.c | 344 static void test_walk_desc(const usb_config_desc_t *config_desc) in test_walk_desc() argument 347 const usb_standard_desc_t *cur_desc = (usb_standard_desc_t *)config_desc; in test_walk_desc() 349 …cur_desc = usb_parse_next_descriptor_of_type(cur_desc, config_desc->wTotalLength, USB_B_DESCRIPTOR… in test_walk_desc() 353 …cur_desc = usb_parse_next_descriptor_of_type(cur_desc, config_desc->wTotalLength, USB_B_DESCRIPTOR… in test_walk_desc() 360 static void test_alt_intf_desc_count(const usb_config_desc_t *config_desc) in test_alt_intf_desc_count() argument 363 TEST_ASSERT_EQUAL(0, usb_parse_interface_number_of_alternate(config_desc, 0)); in test_alt_intf_desc_count() 365 TEST_ASSERT_EQUAL(1, usb_parse_interface_number_of_alternate(config_desc, 1)); in test_alt_intf_desc_count() 367 TEST_ASSERT_EQUAL(-1, usb_parse_interface_number_of_alternate(config_desc, 2)); in test_alt_intf_desc_count() 370 static void test_parse_intf_and_ep(const usb_config_desc_t *config_desc) in test_parse_intf_and_ep() argument 375 …const usb_intf_desc_t *intf_desc = usb_parse_interface_descriptor(config_desc, 0, 0, &offset_intf); in test_parse_intf_and_ep() [all …]
|
D | msc_client_async_enum.c | 134 const usb_config_desc_t *config_desc; in msc_client_async_enum_task() local 136 … TEST_ASSERT_EQUAL(ESP_OK, usb_host_get_active_config_descriptor(msc_obj.dev_hdl, &config_desc)); in msc_client_async_enum_task() 137 TEST_ASSERT_EQUAL(config_desc_ref->wTotalLength, config_desc->wTotalLength); in msc_client_async_enum_task() 138 … TEST_ASSERT_EQUAL(0, memcmp(config_desc_ref, config_desc, config_desc_ref->wTotalLength)); in msc_client_async_enum_task()
|
/hal_espressif-3.6.0/components/usb/ |
D | usb_helpers.c | 54 int usb_parse_interface_number_of_alternate(const usb_config_desc_t *config_desc, uint8_t bInterfac… in usb_parse_interface_number_of_alternate() argument 56 assert(config_desc != NULL); in usb_parse_interface_number_of_alternate() 59 …const usb_intf_desc_t *first_intf_desc = usb_parse_interface_descriptor(config_desc, bInterfaceNum… in usb_parse_interface_number_of_alternate() 65 …_next_descriptor_of_type((const usb_standard_desc_t *)first_intf_desc, config_desc->wTotalLength, … in usb_parse_interface_number_of_alternate() 71 …e_next_descriptor_of_type((const usb_standard_desc_t *)next_intf_desc, config_desc->wTotalLength, … in usb_parse_interface_number_of_alternate() 76 const usb_intf_desc_t *usb_parse_interface_descriptor(const usb_config_desc_t *config_desc, uint8_t… in usb_parse_interface_descriptor() argument 78 assert(config_desc != NULL); in usb_parse_interface_descriptor() 79 if (bInterfaceNumber >= config_desc->bNumInterfaces) { in usb_parse_interface_descriptor() 85 …)usb_parse_next_descriptor_of_type((const usb_standard_desc_t *)config_desc, config_desc->wTotalLe… in usb_parse_interface_descriptor() 90 …e_next_descriptor_of_type((const usb_standard_desc_t *)next_intf_desc, config_desc->wTotalLength, … in usb_parse_interface_descriptor() [all …]
|
D | usbh.c | 71 const usb_config_desc_t *config_desc; member 175 if (dev_obj->constant.config_desc) { in device_free() 176 heap_caps_free((usb_config_desc_t *)dev_obj->constant.config_desc); in device_free() 670 assert(dev_obj->constant.config_desc); in usbh_dev_get_info() 671 dev_info->bConfigurationValue = dev_obj->constant.config_desc->bConfigurationValue; in usbh_dev_get_info() 708 assert(dev_obj->constant.config_desc); in usbh_dev_get_config_desc() 709 *config_desc_ret = dev_obj->constant.config_desc; in usbh_dev_get_config_desc() 991 …usb_config_desc_t *config_desc = heap_caps_malloc(config_desc_full->wTotalLength, MALLOC_CAP_DEFAU… in usbh_hub_enum_fill_config_desc() local 992 if (config_desc == NULL) { in usbh_hub_enum_fill_config_desc() 996 memcpy(config_desc, config_desc_full, config_desc_full->wTotalLength); in usbh_hub_enum_fill_config_desc() [all …]
|
D | usb_host.c | 908 …st_get_active_config_descriptor(usb_device_handle_t dev_hdl, const usb_config_desc_t **config_desc) in usb_host_get_active_config_descriptor() argument 910 HOST_CHECK(dev_hdl != NULL && config_desc != NULL, ESP_ERR_INVALID_ARG); in usb_host_get_active_config_descriptor() 911 return usbh_dev_get_config_desc(dev_hdl, config_desc); in usb_host_get_active_config_descriptor() 984 …t_t *client_obj, usb_device_handle_t dev_hdl, const usb_config_desc_t *config_desc, uint8_t bInter… in interface_claim() argument 990 …const usb_intf_desc_t *intf_desc = usb_parse_interface_descriptor(config_desc, bInterfaceNumber, b… in interface_claim() 1004 …desc_t *ep_desc = usb_parse_endpoint_descriptor_by_index(intf_desc, i, config_desc->wTotalLength, … in interface_claim() 1113 const usb_config_desc_t *config_desc; in usb_host_interface_claim() local 1114 ESP_ERROR_CHECK(usbh_dev_get_config_desc(dev_hdl, &config_desc)); in usb_host_interface_claim() 1117 …ret = interface_claim(client_obj, dev_hdl, config_desc, bInterfaceNumber, bAlternateSetting, &intf… in usb_host_interface_claim()
|
D | hub.c | 467 …const usb_config_desc_t *config_desc = (usb_config_desc_t *)(transfer->data_buffer + sizeof(usb_se… in enum_stage_transfer_check() local 469 if (config_desc->bDescriptorType != USB_B_DESCRIPTOR_TYPE_CONFIGURATION) { in enum_stage_transfer_check() 476 if (config_desc->wTotalLength > ENUM_CTRL_TRANSFER_MAX_DATA_LEN) { in enum_stage_transfer_check() 483 enum_ctrl->wTotalLength = config_desc->wTotalLength; in enum_stage_transfer_check() 489 …const usb_config_desc_t *config_desc = (usb_config_desc_t *)(transfer->data_buffer + sizeof(usb_se… in enum_stage_transfer_check() local 490 ESP_ERROR_CHECK(usbh_hub_enum_fill_config_desc(enum_ctrl->dev_hdl, config_desc)); in enum_stage_transfer_check()
|
/hal_espressif-3.6.0/components/usb/test/hcd/ |
D | test_hcd_ctrl.c | 80 …usb_config_desc_t *config_desc = (usb_config_desc_t *)(urb->transfer.data_buffer + sizeof(usb_setu… variable 81 TEST_ASSERT_EQUAL(USB_B_DESCRIPTOR_TYPE_CONFIGURATION , config_desc->bDescriptorType); 82 printf("Config Desc wTotalLength %d\n", config_desc->wTotalLength); 213 …usb_config_desc_t *config_desc = (usb_config_desc_t *)(urb->transfer.data_buffer + sizeof(usb_setu… variable 214 TEST_ASSERT_EQUAL(USB_B_DESCRIPTOR_TYPE_CONFIGURATION , config_desc->bDescriptorType); 215 printf("Config Desc wTotalLength %d\n", config_desc->wTotalLength); 288 …usb_config_desc_t *config_desc = (usb_config_desc_t *)(urb->transfer.data_buffer + sizeof(usb_setu… variable 289 TEST_ASSERT_EQUAL(USB_B_DESCRIPTOR_TYPE_CONFIGURATION , config_desc->bDescriptorType); 290 printf("Config Desc wTotalLength %d\n", config_desc->wTotalLength);
|
/hal_espressif-3.6.0/examples/peripherals/usb/host/msc/components/msc/src/ |
D | msc_host.c | 79 static const usb_intf_desc_t *find_msc_interface(const usb_config_desc_t *config_desc, size_t *offs… in find_msc_interface() argument 81 size_t total_length = config_desc->wTotalLength; in find_msc_interface() 82 const usb_standard_desc_t *next_desc = (const usb_standard_desc_t *)config_desc; in find_msc_interface() 201 const usb_config_desc_t *config_desc; in is_mass_storage_device() local 204 if ( usb_host_get_active_config_descriptor(device, &config_desc) == ESP_OK ) { in is_mass_storage_device() 205 if ( find_msc_interface(config_desc, &dummy) ) { in is_mass_storage_device() 344 const usb_config_desc_t *config_desc; in msc_host_install_device() local 359 MSC_GOTO_ON_ERROR( usb_host_get_active_config_descriptor(msc_device->handle, &config_desc) ); in msc_host_install_device() 360 MSC_GOTO_ON_ERROR( extract_config_from_descriptor(config_desc, &msc_device->config) ); in msc_host_install_device() 372 if (config_desc->wTotalLength != 32) { in msc_host_install_device() [all …]
|
/hal_espressif-3.6.0/components/usb/include/usb/ |
D | usb_helpers.h | 64 int usb_parse_interface_number_of_alternate(const usb_config_desc_t *config_desc, uint8_t bInterfac… 80 const usb_intf_desc_t *usb_parse_interface_descriptor(const usb_config_desc_t *config_desc, uint8_t… 112 const usb_ep_desc_t *usb_parse_endpoint_descriptor_by_address(const usb_config_desc_t *config_desc,…
|
D | usb_host.h | 345 …t_get_active_config_descriptor(usb_device_handle_t dev_hdl, const usb_config_desc_t **config_desc);
|
/hal_espressif-3.6.0/examples/peripherals/usb/host/cdc/common/cdc_acm_host/ |
D | cdc_acm_host.c | 626 const usb_config_desc_t *config_desc; in cdc_acm_find_intf_and_ep_desc() local 633 ESP_ERROR_CHECK(usb_host_get_active_config_descriptor(cdc_dev->dev_hdl, &config_desc)); in cdc_acm_find_intf_and_ep_desc() 638 const usb_standard_desc_t *this_desc = (const usb_standard_desc_t *)config_desc; in cdc_acm_find_intf_and_ep_desc() 641 … this_desc, config_desc->wTotalLength, USB_B_DESCRIPTOR_TYPE_INTERFACE_ASSOCIATION, &desc_offset); in cdc_acm_find_intf_and_ep_desc() 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() 675 cdc_desc = usb_parse_next_descriptor(cdc_desc, config_desc->wTotalLength, &desc_offset); in cdc_acm_find_intf_and_ep_desc() 684 …*notif_ep = usb_parse_endpoint_descriptor_by_index(cdc_dev->notif.intf_desc, 0, config_desc->wTota… in cdc_acm_find_intf_and_ep_desc() 688 …cdc_dev->data.intf_desc = usb_parse_interface_descriptor(config_desc, data_intf_idx, 0, &desc_offs… in cdc_acm_find_intf_and_ep_desc() 692 …p = usb_parse_endpoint_descriptor_by_index(cdc_dev->data.intf_desc, i, config_desc->wTotalLength, … in cdc_acm_find_intf_and_ep_desc() 770 const usb_config_desc_t *config_desc; in cdc_acm_host_open_vendor_specific() local [all …]
|
/hal_espressif-3.6.0/examples/peripherals/usb/host/usb_host_lib/main/ |
D | class_driver.c | 96 const usb_config_desc_t *config_desc; in action_get_config_desc() local 97 ESP_ERROR_CHECK(usb_host_get_active_config_descriptor(driver_obj->dev_hdl, &config_desc)); in action_get_config_desc() 98 usb_print_config_descriptor(config_desc, NULL); in action_get_config_desc()
|