Home
last modified time | relevance | path

Searched refs:str_desc (Results 1 – 7 of 7) sorted by relevance

/hal_espressif-3.4.0/components/usb/
Dhub.c503 …const usb_str_desc_t *str_desc = (usb_str_desc_t *)(transfer->data_buffer + sizeof(usb_setup_packe… in enum_stage_transfer_check() local
505 if (str_desc->bDescriptorType == 0) { in enum_stage_transfer_check()
509 } else if (str_desc->bDescriptorType != USB_B_DESCRIPTOR_TYPE_STRING) { in enum_stage_transfer_check()
516 if (str_desc->bLength > (uint32_t)ENUM_CTRL_TRANSFER_MAX_DATA_LEN) { in enum_stage_transfer_check()
523 enum_ctrl->str_desc_bLength = str_desc->bLength; in enum_stage_transfer_check()
531 …const usb_str_desc_t *str_desc = (usb_str_desc_t *)(transfer->data_buffer + sizeof(usb_setup_packe… in enum_stage_transfer_check() local
533 if (str_desc->bDescriptorType == 0) { in enum_stage_transfer_check()
537 } else if (str_desc->bDescriptorType != USB_B_DESCRIPTOR_TYPE_STRING) { in enum_stage_transfer_check()
545 …int langid_table_num_entries = (str_desc->bLength - sizeof(usb_str_desc_t))/2; //Each LANGID is… in enum_stage_transfer_check()
547 if (str_desc->wData[i] == ENUM_LANGID) { in enum_stage_transfer_check()
[all …]
Dusb_helpers.c289 void usb_print_string_descriptor(const usb_str_desc_t *str_desc) in usb_print_string_descriptor() argument
291 if (str_desc == NULL) { in usb_print_string_descriptor()
295 for (int i = 0; i < str_desc->bLength/2; i++) { in usb_print_string_descriptor()
300 if (str_desc->wData[i] > 0xFF) { in usb_print_string_descriptor()
303 printf("%c", (char)str_desc->wData[i]); in usb_print_string_descriptor()
Dusbh.c1003 esp_err_t usbh_hub_enum_fill_str_desc(usb_device_handle_t dev_hdl, const usb_str_desc_t *str_desc, … in usbh_hub_enum_fill_str_desc() argument
1005 …USBH_CHECK(dev_hdl != NULL && str_desc != NULL && (select >= 0 && select < 3), ESP_ERR_INVALID_ARG… in usbh_hub_enum_fill_str_desc()
1008 usb_str_desc_t *str_desc_fill = heap_caps_malloc(str_desc->bLength, MALLOC_CAP_DEFAULT); in usbh_hub_enum_fill_str_desc()
1013 memcpy(str_desc_fill, str_desc, str_desc->bLength); in usbh_hub_enum_fill_str_desc()
/hal_espressif-3.4.0/components/tinyusb/additions/src/
Ddescriptors_control.c133 void tusb_set_descriptor(tusb_desc_device_t *dev_desc, const char **str_desc) in tusb_set_descriptor() argument
168 if (str_desc != NULL) { in tusb_set_descriptor()
169 memcpy(s_str_descriptor, str_desc, in tusb_set_descriptor()
/hal_espressif-3.4.0/components/tinyusb/additions/include_private/
Ddescriptors_control.h64 void tusb_set_descriptor(tusb_desc_device_t *desc, const char **str_desc);
/hal_espressif-3.4.0/components/usb/include/usb/
Dusb_helpers.h150 void usb_print_string_descriptor(const usb_str_desc_t *str_desc);
/hal_espressif-3.4.0/components/usb/private_include/
Dusbh.h402 esp_err_t usbh_hub_enum_fill_str_desc(usb_device_handle_t dev_hdl, const usb_str_desc_t *str_desc, …