USBLibAPIGuide  1.00.00.01
Data Fields

USB_CDC_GET/SET_LINE_CODING request-specific data. More...

#include <usbaudio.h>

Data Fields

uint8_t bLength
 The length of this descriptor in bytes. More...
 
uint8_t bDescriptorType
 
uint8_t bDescriptorSubtype
 This will be USB_DSUBTYPE_HEADER for the header. More...
 
uint16_t bcdADC
 
uint16_t wTotai32Length
 
uint8_t bInCollection
 
uint8_t baInterfaceNr
 
uint8_t bUnitID
 
uint8_t bSourceID
 ID of the Unit or Terminal to which this Feature Unit is connected. More...
 
uint8_t bControlSize
 ID of the Output Terminal to which this Input Terminal is associated. More...
 
uint16_t bmaControls
 
uint8_t bTerminalID
 
uint16_t wTerminalType
 
uint8_t bAssocTerminal
 
uint8_t iTerminal
 Index of a string descriptor, describing the Output Terminal. More...
 
uint8_t bNrChannels
 Number of channels on this streaming interface. More...
 
uint16_t wChannelConfig
 Describes the spatial location of the logical channels. More...
 
uint8_t iChannelNames
 
uint8_t bNrInPins
 Number of Input Pins of this Unit. More...
 
uint8_t baSourceID
 
uint8_t bTerminalLink
 
uint8_t bDelay
 Delay introduced by the data path. Expressed in number of frames. More...
 
uint16_t wFormatTag
 
uint8_t bFormatType
 This will be USB_AS_FORMAT_TYPE_I. More...
 
uint8_t bSubFrameSize
 Number of bytes per audio sub-frame or channel. More...
 
uint8_t bBitResolution
 Number of bits per sample. More...
 
uint8_t bSamFreqType
 Number of sample rates that are supported. More...
 
uint8_t tSamFreq
 Number of bits per sample. More...
 
uint32_t ui32Rate
 The data terminal rate in bits per second. More...
 
uint8_t ui8Stop
 
uint8_t ui8Parity
 
uint8_t ui8Databits
 
uint16_t ui16Marker
 
uint16_t ui16Version
 
uint8_t bStatus
 
uint8_t bwPollTimeout [3]
 
uint8_t bState
 
uint8_t iString
 
uint8_t ui8Command
 
uint8_t pui8Data [7]
 
uint8_t ui8Reserved
 
uint16_t ui16StartAddr
 
uint32_t ui32Length
 
uint16_t ui16NumBlocks
 
uint8_t pui8Reserved2 [2]
 
uint8_t pui8Reserved [7]
 
uint8_t ui8Binary
 
uint16_t ui16FlashBlockSize
 The size of a flash block in bytes. More...
 
uint16_t ui16NumFlashBlocks
 
uint32_t ui32PartInfo
 
uint32_t ui32ClassInfo
 Information on the part class and revision as read from SYSCTL DID0. More...
 
uint32_t ui32FlashTop
 Address 1 byte above the highest location the boot loader can access. More...
 
uint32_t ui32AppStartAddr
 Lowest address the boot loader can write or erase. More...
 
int8_t i8XPos
 Signed 8-bit value (-128 to 127). More...
 
int8_t i8YPos
 Signed 8-bit value (-128 to 127). More...
 
int8_t i8ZPos
 Signed 8-bit value (-128 to 127). More...
 
uint8_t ui8Buttons
 8-bit button mapping with button 1 in the LSB. More...
 
uint8_t buttons
 8-bit value. Mouse buttons More...
 
uint8_t dX
 8-bit value. Mouse movement in X-coordinate More...
 
uint8_t dY
 8-bit value. Mouse movement in Y-coordinate More...
 
uint8_t ui8SensorState
 8-bit value. Sensor state More...
 
uint8_t ui8SensorEvent
 8-bit value. Sensor Event More...
 
int16_t i16Temp
 Signed 16-bit temperature value (-32767 to 32767). More...
 
uint8_t bDescType
 
uint8_t bNbrPorts
 The number of downstream-facing ports that the hub supports. More...
 
uint16_t wHubCharacteristics
 
uint8_t bPwrOn2PwrGood
 
uint8_t bHubContrCurrent
 The maximum current requirement for the hub circuitry in mA. More...
 
uint8_t PortInfo [((ROOT_HUB_MAX_PORTS+7)/8) *2]
 
uint16_t wDescriptorLength
 The total length of the HID class descriptor. More...
 
uint16_t bcdHID
 
uint8_t bCountryCode
 
uint8_t bNumDescriptors
 
tHIDClassDescriptorInfo sClassDescriptor [1]
 
uint8_t bmRequestType
 Determines the type and direction of the request. More...
 
uint8_t bRequest
 Identifies the specific request being made. More...
 
uint16_t wValue
 Word-sized field that varies according to the request. More...
 
uint16_t wIndex
 
uint16_t wLength
 
uint16_t bcdUSB
 
uint8_t bDeviceClass
 The device class code. More...
 
uint8_t bDeviceSubClass
 
uint8_t bDeviceProtocol
 
uint8_t bMaxPacketSize0
 
uint16_t idVendor
 The device Vendor ID (VID) as assigned by the USB-IF. More...
 
uint16_t idProduct
 The device Product ID (PID) as assigned by the manufacturer. More...
 
uint16_t bcdDevice
 The device release number in BCD format. More...
 
uint8_t iManufacturer
 The index of a string descriptor describing the manufacturer. More...
 
uint8_t iProduct
 The index of a string descriptor describing the product. More...
 
uint8_t iSerialNumber
 
uint8_t bNumConfigurations
 The number of other-speed configurations supported. More...
 
uint8_t bReserved
 Reserved for future use. Must be set to zero. More...
 
uint16_t wTotalLength
 
uint8_t bNumInterfaces
 The number of interface supported by this configuration. More...
 
uint8_t bConfigurationValue
 
uint8_t iConfiguration
 The index of a string descriptor describing this configuration. More...
 
uint8_t bmAttributes
 Attributes of this configuration. More...
 
uint8_t bMaxPower
 
uint8_t bInterfaceNumber
 
uint8_t bAlternateSetting
 
uint8_t bNumEndpoints
 
uint8_t bInterfaceClass
 The interface class code as assigned by the USB-IF. More...
 
uint8_t bInterfaceSubClass
 The interface subclass code as assigned by the USB-IF. More...
 
uint8_t bInterfaceProtocol
 The interface protocol code as assigned by the USB-IF. More...
 
uint8_t iInterface
 The index of a string descriptor describing this interface. More...
 
uint8_t bEndpointAddress
 
uint16_t wMaxPacketSize
 
uint8_t bInterval
 
uint16_t wLANGID [1]
 
uint8_t bString
 
uint32_t dCBWSignature
 
uint32_t dCBWTag
 
uint32_t dCBWDataTransferLength
 
uint8_t bmCBWFlags
 
uint8_t bCBWLUN
 
uint8_t bCBWCBLength
 
uint8_t CBWCB [16]
 
uint32_t dCSWSignature
 
uint32_t dCSWTag
 
uint32_t dCSWDataResidue
 
uint8_t bCSWStatus
 

Detailed Description

USB_CDC_GET/SET_LINE_CODING request-specific data.

This structure describes the Class-Specific Audio Class Interface Header Descriptor as defined in Universal Serial Bus Device Class Definition for Audio Devices Release 1.0.

This structure describes the Feature Unit Descriptor as defined in Universal Serial Bus Device Class Definition for Audio Devices Release 1.0.

This structure describes the Output Terminal Descriptor as defined in Universal Serial Bus Device Class Definition for Audio Devices Release 1.0.

This structure describes the Input Terminal Descriptor as defined in Universal Serial Bus Device Class Definition for Audio Devices Release 1.0.

This structure describes the Mixer Descriptor as defined in Universal Serial Bus Device Class Definition for Audio Devices Release 1.0.

This structure describes the Selector Descriptor as defined in Universal Serial Bus Device Class Definition for Audio Devices Release 1.0.

This structure describes the Type I Audio format descriptors defined in USB Audio Devices Release 1.0.

Payload returned in response to the DFU_CMD_INFO command.

This is structure is returned in response to the first USBD_DFU_REQUEST_UPLOAD request following a DFU_CMD_INFO command.

This structure is the default packed report structure that is sent to the host. The application can provide its own structure if the default report descriptor is overridden by the application. This structure or an application-defined structure is passed to the USBDHIDGamepadSendReport function to send gamepad updates to the host.

This structure is the default packed report structure that is sent to the host. The data sent to the host that is part of this structure are specified in Input report of the Report Descriptor. This structure is passed to the USBDHIDMouseSendReport function to send mouse updates to the host.

This structure is the default packed report structure that is sent to the host. The data sent to the host that is part of this structure are specified in Input report of the Report Descriptor. This structure is passed to the USBDHIDSensorSendReport function to send sensor updates to the host.

The USB standard hub descriptor structure. Full documentation for the contents of this structure can be found in chapter 11.23.2.1 of the USB 2.0 specification.

The class descriptor information structure is used to announce the presence of HID-specific class descriptors within the HID descriptor.

The HID descriptor is inserted following the interface descriptor and before the endpoint descriptors for a HID class device.

The standard USB request header as defined in section 9.3 of the USB 2.0 specification.

This structure describes a generic descriptor header. These fields are to be found at the beginning of all valid USB descriptors.

This structure describes the USB device descriptor as defined in USB 2.0 specification section 9.6.1.

This structure describes the USB device qualifier descriptor as defined in the USB 2.0 specification, section 9.6.2.

This structure describes the USB configuration descriptor as defined in USB 2.0 specification section 9.6.3. This structure also applies to the USB other speed configuration descriptor defined in section 9.6.4.

This structure describes the USB interface descriptor as defined in USB 2.0 specification section 9.6.5.

This structure describes the USB endpoint descriptor as defined in USB 2.0 specification section 9.6.6.

This structure describes the USB string descriptor for index 0 as defined in USB 2.0 specification section 9.6.7. Note that the number of language IDs is variable and can be determined by examining bLength. The number of language IDs present in the descriptor is given by ((bLength - 2) / 2).

This structure describes the USB string descriptor for all string indexes other than 0 as defined in USB 2.0 specification section 9.6.7.

Field Documentation

§ bLength

uint8_t PACKED::bLength

The length of this descriptor in bytes.

The total number of bytes in the descriptor (including this field).

The length of this descriptor (including this length byte) expressed in bytes.

The length of this descriptor in bytes. All device descriptors are 18 bytes long.

The length of this descriptor in bytes. All device qualifier descriptors are 10 bytes long.

The length of this descriptor in bytes. All configuration descriptors are 9 bytes long.

The length of this descriptor in bytes. All interface descriptors are 9 bytes long.

The length of this descriptor in bytes. All endpoint descriptors are 7 bytes long.

The length of this descriptor in bytes. This value will vary depending upon the number of language codes provided in the descriptor.

The length of this descriptor in bytes. This value will be 2 greater than the number of bytes comprising the UNICODE string that the descriptor contains.

§ bDescriptorType

uint8_t PACKED::bDescriptorType

The type of the descriptor. For an interface descriptor, this will be USB_DTYPE_CS_INTERFACE (36).

The type of HID class descriptor. This will be USB_HID_DTYPE_REPORT or USB_HID_DTYPE_PHYSICAL.

The type of the descriptor. For a HID descriptor, this will be USB_HID_DTYPE_HID.

The type identifier of the descriptor whose information follows. For standard descriptors, this field could contain, for example, USB_DTYPE_DEVICE to identify a device descriptor or USB_DTYPE_ENDPOINT to identify an endpoint descriptor.

The type of the descriptor. For a device descriptor, this will be USB_DTYPE_DEVICE (1).

The type of the descriptor. For a device descriptor, this will be USB_DTYPE_DEVICE_QUAL (6).

The type of the descriptor. For a configuration descriptor, this will be USB_DTYPE_CONFIGURATION (2).

The type of the descriptor. For an interface descriptor, this will be USB_DTYPE_INTERFACE (4).

The type of the descriptor. For an endpoint descriptor, this will be USB_DTYPE_ENDPOINT (5).

The type of the descriptor. For a string descriptor, this will be USB_DTYPE_STRING (3).

§ bDescriptorSubtype

uint8_t PACKED::bDescriptorSubtype

This will be USB_DSUBTYPE_HEADER for the header.

This will be USB_AS_FORMAT_TYPE.

This will be USB_DSUBTYPE_GENERAL for the header.

This will be USB_AI_MIXER_UNIT for the header.

This will be USB_DSUBTYPE_OUT_TERM for the header.

This will be USB_DSUBTYPE_IN_TERM for the header.

§ bcdADC

uint16_t PACKED::bcdADC

Audio Device Class Specification Release Number in Binary-Coded Decimal.

§ wTotai32Length

uint16_t PACKED::wTotai32Length

Total number of bytes returned for the class-specific AudioControl interface descriptor. Includes the combined length of this descriptor header and all Unit and Terminal descriptors.

§ bInCollection

uint8_t PACKED::bInCollection

The number of AudioStreaming and MIDIStreaming interfaces in the Audio Interface Collection to which this AudioControl interface belongs.

§ baInterfaceNr

uint8_t PACKED::baInterfaceNr

Interface number of the first AudioStreaming or MIDIStreaming interface in the Collection.

§ bUnitID

uint8_t PACKED::bUnitID

Constant uniquely identifying the Unit within the audio function. This value is used in all requests to address this Unit.

§ bSourceID

uint8_t PACKED::bSourceID

ID of the Unit or Terminal to which this Feature Unit is connected.

ID of the Unit or Terminal to which this Terminal is connected.

§ bControlSize

uint8_t PACKED::bControlSize

ID of the Output Terminal to which this Input Terminal is associated.

§ bmaControls

uint16_t PACKED::bmaControls

A bit set to 1 indicates that the mentioned Control is supported for a given channel. See the USB_FU_* defines for the bit definitions. This actually an array of elements of size bControlSize so be careful when using this value directly.

§ bTerminalID

uint8_t PACKED::bTerminalID

Constant uniquely identifying the Terminal within the audio function. This value is used in all requests to address this Terminal.

§ wTerminalType

uint16_t PACKED::wTerminalType

Constant characterizing the type of Terminal. See USB Audio Terminal Types.

§ bAssocTerminal

uint8_t PACKED::bAssocTerminal

Constant, identifying the Input Terminal to which this Output Terminal is associated.

§ iTerminal

uint8_t PACKED::iTerminal

Index of a string descriptor, describing the Output Terminal.

§ bNrChannels

uint8_t PACKED::bNrChannels

Number of channels on this streaming interface.

Number of logical output channels in the Terminal's output audio channel cluster.

§ wChannelConfig

uint16_t PACKED::wChannelConfig

Describes the spatial location of the logical channels.

§ iChannelNames

uint8_t PACKED::iChannelNames

Index of a string descriptor, describing the name of the first logical channel.

§ bNrInPins

uint8_t PACKED::bNrInPins

Number of Input Pins of this Unit.

§ baSourceID

uint8_t PACKED::baSourceID

ID of the Unit or Terminal to which the first Input Pin of this Mixer Unit is connected.

§ bTerminalLink

uint8_t PACKED::bTerminalLink

The Terminal ID of the Terminal to which the endpoint of this interface is connected.

§ bDelay

uint8_t PACKED::bDelay

Delay introduced by the data path. Expressed in number of frames.

§ wFormatTag

uint16_t PACKED::wFormatTag

The Audio Data Format that has to be used to communicate with this interface.

§ bFormatType

uint8_t PACKED::bFormatType

This will be USB_AS_FORMAT_TYPE_I.

§ bSubFrameSize

uint8_t PACKED::bSubFrameSize

Number of bytes per audio sub-frame or channel.

§ bBitResolution

uint8_t PACKED::bBitResolution

Number of bits per sample.

§ bSamFreqType

uint8_t PACKED::bSamFreqType

Number of sample rates that are supported.

§ tSamFreq

uint8_t PACKED::tSamFreq

Number of bits per sample.

§ ui32Rate

uint32_t PACKED::ui32Rate

The data terminal rate in bits per second.

§ ui8Stop

uint8_t PACKED::ui8Stop

The number of stop bits. Valid values are USB_CDC_STOP_BITS_1, USB_CDC_STOP_BITS_1_5 or USB_CDC_STOP_BITS_2

§ ui8Parity

uint8_t PACKED::ui8Parity

The parity setting. Valid values are USB_CDC_PARITY_NONE, USB_CDC_PARITY_ODD, USB_CDC_PARITY_EVEN, USB_CDC_PARITY_MARK and USB_CDC_PARITY_SPACE.

§ ui8Databits

uint8_t PACKED::ui8Databits

The number of data bits per character. Valid values are 5, 6, 7 and 8 in this implementation.

§ ui16Marker

uint16_t PACKED::ui16Marker

§ ui16Version

uint16_t PACKED::ui16Version

§ bStatus

uint8_t PACKED::bStatus

§ bwPollTimeout

uint8_t PACKED::bwPollTimeout[3]

§ bState

uint8_t PACKED::bState

§ iString

uint8_t PACKED::iString

§ ui8Command

uint8_t PACKED::ui8Command

§ pui8Data

uint8_t PACKED::pui8Data[7]

§ ui8Reserved

uint8_t PACKED::ui8Reserved

§ ui16StartAddr

uint16_t PACKED::ui16StartAddr

§ ui32Length

uint32_t PACKED::ui32Length

§ ui16NumBlocks

uint16_t PACKED::ui16NumBlocks

§ pui8Reserved2

uint8_t PACKED::pui8Reserved2[2]

§ pui8Reserved

uint8_t PACKED::pui8Reserved

§ ui8Binary

uint8_t PACKED::ui8Binary

§ ui16FlashBlockSize

uint16_t PACKED::ui16FlashBlockSize

The size of a flash block in bytes.

§ ui16NumFlashBlocks

uint16_t PACKED::ui16NumFlashBlocks

The number of blocks of flash in the device. Total flash size is ui16NumFlashBlocks * ui16FlashBlockSize.

§ ui32PartInfo

uint32_t PACKED::ui32PartInfo

Information on the part number, family, version and package as read from SYSCTL register DID1.

§ ui32ClassInfo

uint32_t PACKED::ui32ClassInfo

Information on the part class and revision as read from SYSCTL DID0.

§ ui32FlashTop

uint32_t PACKED::ui32FlashTop

Address 1 byte above the highest location the boot loader can access.

§ ui32AppStartAddr

uint32_t PACKED::ui32AppStartAddr

Lowest address the boot loader can write or erase.

§ i8XPos

int8_t PACKED::i8XPos

Signed 8-bit value (-128 to 127).

§ i8YPos

int8_t PACKED::i8YPos

Signed 8-bit value (-128 to 127).

§ i8ZPos

int8_t PACKED::i8ZPos

Signed 8-bit value (-128 to 127).

§ ui8Buttons

uint8_t PACKED::ui8Buttons

8-bit button mapping with button 1 in the LSB.

§ buttons

uint8_t PACKED::buttons

8-bit value. Mouse buttons

§ dX

uint8_t PACKED::dX

8-bit value. Mouse movement in X-coordinate

§ dY

uint8_t PACKED::dY

8-bit value. Mouse movement in Y-coordinate

§ ui8SensorState

uint8_t PACKED::ui8SensorState

8-bit value. Sensor state

§ ui8SensorEvent

uint8_t PACKED::ui8SensorEvent

8-bit value. Sensor Event

§ i16Temp

int16_t PACKED::i16Temp

Signed 16-bit temperature value (-32767 to 32767).

§ bDescType

uint8_t PACKED::bDescType

The descriptor type. For a hub descriptor, this will be USB_DTYPE_HUB (0x29 or 41 decimal).

§ bNbrPorts

uint8_t PACKED::bNbrPorts

The number of downstream-facing ports that the hub supports.

§ wHubCharacteristics

uint16_t PACKED::wHubCharacteristics

Characteristics of the hub device including its power switching capabilities and over-current protection mode.

§ bPwrOn2PwrGood

uint8_t PACKED::bPwrOn2PwrGood

The time between the start of the power-on sequence for a port and the power to the port becoming stable. This is expressed in 2mS units.

§ bHubContrCurrent

uint8_t PACKED::bHubContrCurrent

The maximum current requirement for the hub circuitry in mA.

§ PortInfo

uint8_t PACKED::PortInfo[((ROOT_HUB_MAX_PORTS+7)/8) *2]

The last two fields in the structure are bit masks indicating which downstream ports support removable devices and, following this, another obsolete field from USB1.0 related to port power control. Each field is byte aligned and contains a bit for each hub port. This structure definition is set up with enough storage to handle ROOT_HUB_MAX_PORTS ports but beware that the actual size of each field is dependent upon the bNbrPorts field above.

§ wDescriptorLength

uint16_t PACKED::wDescriptorLength

The total length of the HID class descriptor.

§ bcdHID

uint16_t PACKED::bcdHID

A BCD value identifying the HID Class specification release supported by the device. For version 1.11, for example, this value would be 0x0111.

§ bCountryCode

uint8_t PACKED::bCountryCode

The country code for which this hardware is localized or 0 if no localization has been performed. Valid country (or language) codes are in labels of the form USB_HID_COUNTRY_xxx.

§ bNumDescriptors

uint8_t PACKED::bNumDescriptors

The number of class-specific descriptors that exist for this device. This indicates the number of class descriptor information structures that are appended to this structure and must be at least 1 (since all HID devices must publish at least 1 report descriptor).

§ sClassDescriptor

tHIDClassDescriptorInfo PACKED::sClassDescriptor[1]

A table announcing each of the class-specific descriptors that this device publishes. The actual number of entries in the array is given by the bNumDescriptors field.

§ bmRequestType

uint8_t PACKED::bmRequestType

Determines the type and direction of the request.

§ bRequest

uint8_t PACKED::bRequest

Identifies the specific request being made.

§ wValue

uint16_t PACKED::wValue

Word-sized field that varies according to the request.

§ wIndex

uint16_t PACKED::wIndex

Word-sized field that varies according to the request; typically used to pass an index or offset.

§ wLength

uint16_t PACKED::wLength

The number of bytes to transfer if there is a data stage to the request.

§ bcdUSB

uint16_t PACKED::bcdUSB

The USB Specification Release Number in BCD format. For USB 2.0, this will be 0x0200.

§ bDeviceClass

uint8_t PACKED::bDeviceClass

The device class code.

§ bDeviceSubClass

uint8_t PACKED::bDeviceSubClass

The device subclass code. This value qualifies the value found in the bDeviceClass field.

§ bDeviceProtocol

uint8_t PACKED::bDeviceProtocol

The device protocol code. This value is qualified by the values of bDeviceClass and bDeviceSubClass.

§ bMaxPacketSize0

uint8_t PACKED::bMaxPacketSize0

The maximum packet size for endpoint zero. Valid values are 8, 16, 32 and 64.

The maximum packet size for endpoint zero when operating at a speed other than high speed.

§ idVendor

uint16_t PACKED::idVendor

The device Vendor ID (VID) as assigned by the USB-IF.

§ idProduct

uint16_t PACKED::idProduct

The device Product ID (PID) as assigned by the manufacturer.

§ bcdDevice

uint16_t PACKED::bcdDevice

The device release number in BCD format.

§ iManufacturer

uint8_t PACKED::iManufacturer

The index of a string descriptor describing the manufacturer.

§ iProduct

uint8_t PACKED::iProduct

The index of a string descriptor describing the product.

§ iSerialNumber

uint8_t PACKED::iSerialNumber

The index of a string descriptor describing the device's serial number.

§ bNumConfigurations

uint8_t PACKED::bNumConfigurations

The number of other-speed configurations supported.

The number of possible configurations offered by the device. This field indicates the number of distinct configuration descriptors that the device offers.

§ bReserved

uint8_t PACKED::bReserved

Reserved for future use. Must be set to zero.

§ wTotalLength

uint16_t PACKED::wTotalLength

The total length of data returned for this configuration. This includes the combined length of all descriptors (configuration, interface, endpoint and class- or vendor-specific) returned for this configuration.

§ bNumInterfaces

uint8_t PACKED::bNumInterfaces

The number of interface supported by this configuration.

§ bConfigurationValue

uint8_t PACKED::bConfigurationValue

The value used as an argument to the SetConfiguration standard request to select this configuration.

§ iConfiguration

uint8_t PACKED::iConfiguration

The index of a string descriptor describing this configuration.

§ bmAttributes

uint8_t PACKED::bmAttributes

Attributes of this configuration.

The endpoint transfer type, USB_EP_ATTR_CONTROL, USB_EP_ATTR_ISOC, USB_EP_ATTR_BULK or USB_EP_ATTR_INT and, if isochronous, additional flags indicating usage type and synchronization method.

§ bMaxPower

uint8_t PACKED::bMaxPower

The maximum power consumption of the USB device from the bus in this configuration when the device is fully operational. This is expressed in units of 2mA so, for example, 100 represents 200mA.

§ bInterfaceNumber

uint8_t PACKED::bInterfaceNumber

The number of this interface. This is a zero based index into the array of concurrent interfaces supported by this configuration.

§ bAlternateSetting

uint8_t PACKED::bAlternateSetting

The value used to select this alternate setting for the interface defined in bInterfaceNumber.

§ bNumEndpoints

uint8_t PACKED::bNumEndpoints

The number of endpoints used by this interface (excluding endpoint zero).

§ bInterfaceClass

uint8_t PACKED::bInterfaceClass

The interface class code as assigned by the USB-IF.

§ bInterfaceSubClass

uint8_t PACKED::bInterfaceSubClass

The interface subclass code as assigned by the USB-IF.

§ bInterfaceProtocol

uint8_t PACKED::bInterfaceProtocol

The interface protocol code as assigned by the USB-IF.

§ iInterface

uint8_t PACKED::iInterface

The index of a string descriptor describing this interface.

§ bEndpointAddress

uint8_t PACKED::bEndpointAddress

The address of the endpoint. This field contains the endpoint number ORed with flag USB_EP_DESC_OUT or USB_EP_DESC_IN to indicate the endpoint direction.

§ wMaxPacketSize

uint16_t PACKED::wMaxPacketSize

The maximum packet size this endpoint is capable of sending or receiving when this configuration is selected. For high speed isochronous or interrupt endpoints, bits 11 and 12 are used to pass additional information.

§ bInterval

uint8_t PACKED::bInterval

The polling interval for data transfers expressed in frames or micro frames depending upon the operating speed.

§ wLANGID

uint16_t PACKED::wLANGID[1]

The language code (LANGID) for the first supported language. Note that this descriptor may support multiple languages, in which case, the number of elements in the wLANGID array will increase and bLength will be updated accordingly.

§ bString

uint8_t PACKED::bString

The first byte of the UNICODE string. This string is not NULL terminated. Its length (in bytes) can be computed by subtracting 2 from the value in the bLength field.

§ dCBWSignature

uint32_t PACKED::dCBWSignature

§ dCBWTag

uint32_t PACKED::dCBWTag

§ dCBWDataTransferLength

uint32_t PACKED::dCBWDataTransferLength

§ bmCBWFlags

uint8_t PACKED::bmCBWFlags

§ bCBWLUN

uint8_t PACKED::bCBWLUN

§ bCBWCBLength

uint8_t PACKED::bCBWCBLength

§ CBWCB

uint8_t PACKED::CBWCB[16]

§ dCSWSignature

uint32_t PACKED::dCSWSignature

§ dCSWTag

uint32_t PACKED::dCSWTag

§ dCSWDataResidue

uint32_t PACKED::dCSWDataResidue

§ bCSWStatus

uint8_t PACKED::bCSWStatus

The documentation for this struct was generated from the following files:
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale