Data Types used by USB Device component.
More...
Data Types used by USB Device component.
◆ USBD_STATE
USB Device State structure.
Used in
Data Fields |
uint32_t |
vbus: 1 |
USB Device VBUS state. |
uint32_t |
speed: 2 |
USB Device enumerated speed (USB_SPEED_LOW, USB_SPEED_FULL or USB_SPEED_HIGH) |
uint32_t |
active: 1 |
USB Device bus activity. |
◆ USB_SETUP_PACKET
USB Setup Packet structure.
Used in
Used in
Data Fields |
USB_REQUEST_TYPE |
bmRequestType |
Characteristics of request. |
uint8_t |
bRequest |
Specific request. |
uint16_t |
wValue |
Value according to request. |
uint16_t |
wIndex |
Index or Offset according to request. |
uint16_t |
wLength |
Number of bytes to transfer if there is a Data stage. |
◆ CDC_LINE_CODING
CDC Line Coding structure.
Used in
Used in
Data Fields |
uint32_t |
dwDTERate |
Data terminal rate in bits per second. |
uint8_t |
bCharFormat |
Number of stop bits. |
uint8_t |
bParityType |
Parity bit type. |
uint8_t |
bDataBits |
Number of data bits. |
◆ CDC_NCM_NTB_PARAM
CDC NCM NTB Parameters structure.
Used in
Data Fields |
uint16_t |
wLength |
Size of this structure, in bytes = 1Ch. |
uint16_t |
bmNtbFormatsSupported |
Bit 0: 16-bit NTB supported (set to 1), Bit 1: 32-bit NTB supported, Bits 2 .. 15: reserved. |
uint32_t |
dwNtbInMaxSize |
IN NTB Maximum Size in bytes. |
uint16_t |
wNdpInDivisor |
Divisor used for IN NTB Datagram payload alignment. |
uint16_t |
wNdpInPayloadRemainder |
Remainder used to align input datagram payload within the NTB. |
uint16_t |
wNdpInAlignment |
NDP alignment modulus for NTBs on the IN pipe. Shall be a power of 2, and shall be at least 4. |
uint32_t |
dwNtbOutMaxSize |
OUT NTB Maximum Size. |
uint16_t |
wNdpOutDivisor |
OUT NTB Datagram alignment modulus. |
uint16_t |
wNdpOutPayloadRemainder |
Remainder used to align output datagram payload offsets within the NTB. |
uint16_t |
wNdpOutAlignment |
NDP alignment modulus for use in NTBs on the OUT pipe. Shall be a power of 2, and shall be at least 4. |