1 /*************************************************/
2 /*** Module : USB device descriptor table ***/
3 /*** Author : Roman Bartosinski, Pavel Pisa ***/
4 /*** Modify : 10.11.2008 ***/
5 /*************************************************/
7 #ifndef _USB_DEVICE_DESCRIPTOR_TABLE
8 #define _USB_DEVICE_DESCRIPTOR_TABLE
12 struct _tag_usb_device_configuration_entry {
13 const USB_CONFIGURATION_DESCRIPTOR *pConfigDescription;
14 int iConfigTotalLength;
16 typedef struct _tag_usb_device_configuration_entry
17 USB_DEVICE_CONFIGURATION_ENTRY, *PUSB_DEVICE_CONFIGURATION_ENTRY;
19 struct _tag_usb_device_descriptors_table {
20 const USB_DEVICE_DESCRIPTOR *pDeviceDescription;
21 const USB_DEVICE_CONFIGURATION_ENTRY *pConfigurations;
22 const USB_INTERFACE_DESCRIPTOR **pInterfaceDescriptors;
23 const PUSB_STRING_DESCRIPTOR *pStrings;
25 uint8_t bNumEndpoints;
26 uint8_t bNumConfigurations;
27 uint8_t bNumInterfaces;
29 typedef struct _tag_usb_device_descriptors_table
30 USB_DEVICE_DESCRIPTORS_TABLE, *PUSB_DEVICE_DESCRIPTOR_TABLE;
33 #endif /*_USB_DEVICE_DESCRIPTOR_TABLE*/