![]() |
![]() |
USB descriptor structure which presents a combined view of all descriptors used by a gadget/host. This data structure is common to both host and device stacks.In the host case , the protocol core would copy the descriptors received by the host into this structure. In the gadget stack , the function/gadget driver populates this structure. More...
#include <usb_dev_object.h>
Data Fields | |
| usbDeviceDesc_t * | pDeviceDesc |
| usbConfigHeader_t ** | ppConfigDesc |
| usbInterfaceDesc_t * | pInterfaceDesc |
| usbEndpointDesc_t * | EndpointDescList [MAX_NUM_ENDPTS_PER_DEVICE] |
| uint8_t ** | ppStringDesc |
| uint32_t | numStringDesc |
USB descriptor structure which presents a combined view of all descriptors used by a gadget/host. This data structure is common to both host and device stacks.In the host case , the protocol core would copy the descriptors received by the host into this structure. In the gadget stack , the function/gadget driver populates this structure.
| usbEndpointDesc_t* usbDescriptor::EndpointDescList[MAX_NUM_ENDPTS_PER_DEVICE] |
array of pointers to endpoint descriptors. Mark with NULL for unused.
| uint32_t usbDescriptor::numStringDesc |
Number of string descriptors
| usbDeviceDesc_t* usbDescriptor::pDeviceDesc |
pointer to device descriptor of the Gadget.
| usbInterfaceDesc_t* usbDescriptor::pInterfaceDesc |
pointer to Gadget's Interface descriptor.
| usbConfigHeader_t** usbDescriptor::ppConfigDesc |
A pointer to an array of configuration descriptor pointers. Each entry in the array corresponds to one configuration that the device may be set to use by the USB host. The number of entries in the array must match the bNumConfigurations value in the device descriptor array, pDeviceDesc.
| uint8_t** usbDescriptor::ppStringDesc |
pointer to Gadget's String descriptor.