zephyr/subsys/usb/device_next
Johann Fischer 32668dc7fd usb: device_next: allow string descriptor index to be updated
Support for multiple instances of a class implementation,
and the ability to register an instance to a configuration
at runtime, requires a mechanism to add a string descriptor
and update its index based on the total number of descriptors.

We also need to handle some special string descriptors like
Product or Serial Number provided by the application.
Marked as such by using specific macros, these descriptors
can be sorted out by the stack and the device descriptor
indexes are updated automatically.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-05-26 09:48:19 -04:00
..
class usb: device_next: allow string descriptor index to be updated 2023-05-26 09:48:19 -04:00
CMakeLists.txt usb: device_next: add CDC ECM class implementation 2023-05-11 11:26:54 +02:00
Kconfig
usbd_ch9.c usb: device_next: do not set alternate 0 for non-existent interfaces 2023-05-11 15:29:58 +02:00
usbd_ch9.h usb: device_next: correct return type of get/set alternate value helper 2023-05-11 15:29:58 +02:00
usbd_class_api.h usb: device_next: implement usbd_class_shutdown() 2023-05-26 09:48:19 -04:00
usbd_class.c usb: device_next: implement usbd_class_shutdown() 2023-05-26 09:48:19 -04:00
usbd_class.h usb: device_next: do a little more cleanup on shutdown 2023-05-26 09:48:19 -04:00
usbd_config.c
usbd_config.h
usbd_core.c usb: device_next: check if another context is initialized 2023-05-26 09:48:19 -04:00
usbd_data.ld iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
usbd_desc.c usb: device_next: allow string descriptor index to be updated 2023-05-26 09:48:19 -04:00
usbd_desc.h usb: device_next: do a little more cleanup on shutdown 2023-05-26 09:48:19 -04:00
usbd_device.c
usbd_device.h
usbd_endpoint.c usb: Fix build for 64 bit platforms 2023-02-23 17:51:31 +01:00
usbd_endpoint.h
usbd_init.c usb: Fix build for 64 bit platforms 2023-02-23 17:51:31 +01:00
usbd_init.h
usbd_interface.c usb: device_next: do not set alternate 0 for non-existent interfaces 2023-05-11 15:29:58 +02:00
usbd_interface.h
usbd_shell.c usb: device_next: use specific macros for string descriptors 2023-05-26 09:48:19 -04:00