]> rtime.felk.cvut.cz Git - lincan.git/blob - embedded/libs4c/usb/base/usb/usb_devdes.h
Merge branch 'master' into can-usb1
[lincan.git] / embedded / libs4c / usb / base / usb / usb_devdes.h
1 /*************************************************/
2 /***   Module : USB device descriptor table    ***/
3 /***   Author : Roman Bartosinski, Pavel Pisa  ***/
4 /***   Modify : 10.11.2008                     ***/
5 /*************************************************/
6
7 #ifndef _USB_DEVICE_DESCRIPTOR_TABLE
8  #define _USB_DEVICE_DESCRIPTOR_TABLE
9
10   #include "usb_spec.h"
11
12   struct _tag_usb_device_configuration_entry {
13     const USB_CONFIGURATION_DESCRIPTOR *pConfigDescription;
14     int iConfigTotalLength;
15   };
16  typedef struct _tag_usb_device_configuration_entry 
17     USB_DEVICE_CONFIGURATION_ENTRY, *PUSB_DEVICE_CONFIGURATION_ENTRY;
18
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;
24     int      iNumStrings;
25     uint8_t  bNumEndpoints;
26     uint8_t  bNumConfigurations;
27     uint8_t  bNumInterfaces;
28   };
29  typedef struct _tag_usb_device_descriptors_table
30     USB_DEVICE_DESCRIPTORS_TABLE, *PUSB_DEVICE_DESCRIPTOR_TABLE;
31
32
33 #endif /*_USB_DEVICE_DESCRIPTOR_TABLE*/
34