USBConfigurationDescriptor_Parse
Default mainpageat91libusbcommoncoreUSBConfigurationDescriptor_Parse
Description Source Call Graph
USBConfigurationDescriptor_Parse
Parses the given Configuration descriptor (followed by relevant interface, endpoint and class-specific descriptors) into three arrays.
 
Syntax / parameters
void USBConfigurationDescriptor_Parse (const USBConfigurationDescriptor *configuration, USBInterfaceDescriptor **interfaces, USBEndpointDescriptor **endpoints, USBGenericDescriptor **others)

Name Type Default Description
configuration const USBConfigurationDescriptor *
  Pointer to the start of the whole Configuration descriptor.
interfaces USBInterfaceDescriptor **
  Pointer to the Interface descriptor array.
endpoints USBEndpointDescriptor **
  Pointer to the Endpoint descriptor array.
others USBGenericDescriptor **
  Pointer to the class-specific descriptor array.
Description
Parses the given Configuration descriptor (followed by relevant interface, endpoint and class-specific descriptors) into three arrays.
Each array must have its size equal or greater to the number of descriptors it stores plus one*. A null-value is inserted after the last descriptor of each type to indicate the array end.

Note that if the pointer to an array is null (0), nothing is stored in it.
 
Source
The documentation for this Member was generated from the following files:
  • USBConfigurationDescriptor.c