#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | __attribute__ |
A standard USB string descriptor structure. More... | |
struct | __attribute__ |
A standard USB string descriptor structure. More... | |
struct | _USB_DeviceLPMDescriptor |
USB Device LPM Descriptor structure. More... | |
struct | _USBConfigurationDescriptor |
struct | _USBDeviceBOSDescriptor |
struct | _USBDeviceCapabilities |
struct | _USBDeviceDescriptor |
struct | _USBDeviceQualifierDescriptor |
struct | _USBEndpointDescriptor |
struct | _USBGenericDescriptor |
struct | _USBInterfaceAssociationDescriptor |
struct | _USBInterfaceDescriptor |
struct | _USBOtgDescriptor |
Typedefs | |
typedef uint32_t(* | USBDescriptorParseFunction) (void *descriptor, void *parseArg) |
Functions | |
struct _USBGenericDescriptor | __attribute__ ((__packed__)) USB_DeviceLPMDescriptor |
USB Device LPM Descriptor structure. More... | |
unsigned char | USBConfigurationDescriptor_GetNumInterfaces (const USBConfigurationDescriptor *configuration) |
uint32_t | USBConfigurationDescriptor_GetTotalLength (const USBConfigurationDescriptor *configuration) |
unsigned char | USBConfigurationDescriptor_IsSelfPowered (const USBConfigurationDescriptor *configuration) |
void | USBConfigurationDescriptor_Parse (const USBConfigurationDescriptor *configuration, USBInterfaceDescriptor **interfaces, USBEndpointDescriptor **endpoints, USBGenericDescriptor **others) |
uint8_t | USBEndpointDescriptor_GetDirection (const USBEndpointDescriptor *endpoint) |
uint8_t | USBEndpointDescriptor_GetInterval (const USBEndpointDescriptor *endpoint) |
uint16_t | USBEndpointDescriptor_GetMaxPacketSize (const USBEndpointDescriptor *endpoint) |
uint8_t | USBEndpointDescriptor_GetNumber (const USBEndpointDescriptor *endpoint) |
uint8_t | USBEndpointDescriptor_GetType (const USBEndpointDescriptor *endpoint) |
uint32_t | USBGenericDescriptor_GetLength (const USBGenericDescriptor *descriptor) |
USBGenericDescriptor * | USBGenericDescriptor_GetNextDescriptor (const USBGenericDescriptor *descriptor) |
uint8_t | USBGenericDescriptor_GetType (const USBGenericDescriptor *descriptor) |
USBGenericDescriptor * | USBGenericDescriptor_Parse (const USBGenericDescriptor *descriptor, uint32_t totalLength, USBDescriptorParseFunction parseFunction, void *parseArg) |
Definitions and methods for USB descriptor structures described by the USB specification.
Definition in file USBDescriptors.h.
uint8_t bAlternateSetting |
Value to select this alternate interface setting.
Definition at line 471 of file USBDescriptors.h.
uint16_t bcdDevice |
Device release number in BCD format.
Definition at line 483 of file USBDescriptors.h.
uint16_t bcdUSB |
USB specification release number in BCD format.
USB specification release number (in BCD format).
Definition at line 469 of file USBDescriptors.h.
uint8_t bConfigurationValue |
Value for selecting this configuration.
Definition at line 475 of file USBDescriptors.h.
uint8_t bDescriptorType |
Descriptor type.
Descriptor type (USBGenericDescriptor_DEVICE).
Descriptor type (USBGenericDescriptor_OTG).
Descriptor type (USBDESC_DEVICE_QUALIFIER or "USB device types").
Descriptor type (USBDESC_CONFIGURATION of USB Descriptor types USB Descriptor types).
Descriptor type (USBGenericDescriptor_INTERFACE).
Descriptor type (USBGenericDescriptor_ENDPOINT).
Definition at line 467 of file USBDescriptors.h.
uint8_t bDevCapabilityType |
Definition at line 465 of file USBDescriptors.h.
uint8_t bDeviceClass |
Device class code.
Definition at line 471 of file USBDescriptors.h.
uint8_t bDeviceProtocol |
Device protocol code.
Definition at line 475 of file USBDescriptors.h.
uint8_t bDeviceSubClass |
Device subclass code.
Definition at line 473 of file USBDescriptors.h.
uint8_t bEndpointAddress |
Address and direction of the endpoint.
Definition at line 469 of file USBDescriptors.h.
uint8_t bFirstInterface |
First Interface .
Definition at line 469 of file USBDescriptors.h.
uint8_t bFunctionClass |
Function function code.
Definition at line 473 of file USBDescriptors.h.
uint8_t bFunctionProtocol |
Function protocol code.
Definition at line 477 of file USBDescriptors.h.
uint8_t bFunctionSubClass |
Function subclass code.
Definition at line 475 of file USBDescriptors.h.
uint8_t bInterfaceClass |
Interface class code.
Definition at line 475 of file USBDescriptors.h.
uint8_t bInterfaceCount |
Interface Count.
Definition at line 471 of file USBDescriptors.h.
uint8_t bInterfaceNumber |
Number of the interface in its configuration.
Definition at line 469 of file USBDescriptors.h.
uint8_t bInterfaceProtocol |
Interface protocol code.
Definition at line 479 of file USBDescriptors.h.
uint8_t bInterfaceSubClass |
Interface subclass code.
Definition at line 477 of file USBDescriptors.h.
uint8_t bInterval |
Polling rate of the endpoint.
Definition at line 476 of file USBDescriptors.h.
uint8_t bLength |
Length of the descriptor in bytes.
Size of this descriptor in bytes.
Size of the descriptor in bytes.
Definition at line 465 of file USBDescriptors.h.
uint8_t bmAttributes |
Attribute Fields D7?: Reserved D1: HNP support D0: SRP support
Configuration characteristics.
Endpoint type and additional characteristics (for isochronous endpoints).
Definition at line 469 of file USBDescriptors.h.
uint8_t bMaxPacketSize0 |
Maximum packet size of endpoint 0 (in bytes).
Maximum packet size of endpoint 0.
Definition at line 477 of file USBDescriptors.h.
uint8_t bMaxPower |
Maximum power consumption of the device when in this configuration.
Definition at line 481 of file USBDescriptors.h.
uint8_t bNumConfigurations |
Number of possible configurations for the device.
Definition at line 491 of file USBDescriptors.h.
uint8_t bNumDeviceCaps |
Definition at line 466 of file USBDescriptors.h.
uint8_t bNumEndpoints |
Number of endpoints used by the interface (excluding endpoint 0).
Definition at line 473 of file USBDescriptors.h.
uint8_t bNumInterfaces |
Number of interfaces in this configuration.
Definition at line 473 of file USBDescriptors.h.
USBDeviceBOSDescriptor bos |
Definition at line 463 of file USBDescriptors.h.
uint8_t bReserved |
Reserved.
Definition at line 481 of file USBDescriptors.h.
USBDeviceCapabilities capa_ext |
Definition at line 464 of file USBDescriptors.h.
uint8_t iConfiguration |
Index of the configuration string descriptor.
Definition at line 477 of file USBDescriptors.h.
uint16_t idProduct |
Product ID.
Definition at line 481 of file USBDescriptors.h.
uint16_t idVendor |
Vendor ID.
Definition at line 479 of file USBDescriptors.h.
uint8_t iFunction |
Index of the function string descriptor.
Definition at line 479 of file USBDescriptors.h.
uint8_t iInterface |
Index of the interface string descriptor.
Definition at line 481 of file USBDescriptors.h.
uint8_t iManufacturer |
Index of the manufacturer string descriptor.
Definition at line 485 of file USBDescriptors.h.
uint8_t iProduct |
Index of the product string descriptor.
Definition at line 487 of file USBDescriptors.h.
uint8_t iSerialNumber |
Index of the serial number string descriptor.
Definition at line 489 of file USBDescriptors.h.
uint16_t wMaxPacketSize |
Maximum packet size (in bytes) of the endpoint.
Definition at line 474 of file USBDescriptors.h.
uint16_t wTotalLength |
Length of all descriptors returned along with this configuration descriptor.
Definition at line 471 of file USBDescriptors.h.