Page 1 of 1

TinyUSB Configuration Descriptors

Posted: Tue Jun 14, 2022 5:02 pm
by darkgiuseppe
I have been playing around with the example on how to define a custom descriptor. I have managed to change the Device Descriptor to the info I wanted. Thanks again for this sample code.

However, how do I change the Configuration Descriptor? I see tusb_desc_configuration_t in the tusb_types.h file. When I look here:
https://docs.espressif.com/projects/esp ... evice.html (look under Structures)

I see the tinyusb_config_t struct which is good. I used it to change my string descriptor and the device descriptor. The doc does say there is member for a configuration descriptor. However, when I look inside of tinusb.h, there is no member. Has it been implemented or perhaps moved?

Re: TinyUSB Configuration Descriptors

Posted: Tue Jun 14, 2022 6:01 pm
by chegewara

Re: TinyUSB Configuration Descriptors

Posted: Wed Jun 15, 2022 6:00 pm
by darkgiuseppe
Perhaps it is over my head but I guess you linking hints to not use the integrated TinyUSB files within the IDF?

Re: TinyUSB Configuration Descriptors

Posted: Wed Jun 15, 2022 9:44 pm
by chegewara
esp-idf USB device is using this tinyusb as component. My link was to show you examples, where you can study how it is done with different descriptors.

Re: TinyUSB Configuration Descriptors

Posted: Wed Jun 15, 2022 9:52 pm
by darkgiuseppe
I see. Now this may sound like a silly question but aren't those examples not exactly going to work as it would in the idf? From what I understand it won't be a one to one example and I would have to change some stuff in the tinyusb files within the idf. Sorry if this sound like a dumb question but this is how I interpret it.

Re: TinyUSB Configuration Descriptors

Posted: Wed Jun 15, 2022 10:14 pm
by chegewara
No, most examples wont work 1:1, because its multi architecture library. The easiest to copy/paste are freertos examples, you can find few.