USB Component  Version 6.3
MDK-Professional Middleware for USB Device and Host
 All Data Structures Functions Variables Enumerations Enumerator Groups Pages
Structures

Structures of USB Device component. More...

Structures

struct  USB_SETUP_PACKET
 USB Setup Packet. More...
 
struct  CDC_LINE_CODING
 CDC Line Coding structure. More...
 
struct  usbd_msc_data_t
 USB Device Mass Storage data structure (containing runtime values for MSC device instance) More...
 

Description

Structures of USB Device component.


Data Structure Documentation

struct USB_SETUP_PACKET
Data Fields
USB_REQUEST_TYPE bmRequestType Characteristics of request.
uint8_t bRequest Specific request.
uint16_t wIndex Index or Offset according to request.
uint16_t wLength Number of bytes to transfer if there is a Data stage.
uint16_t wValue Value according to request.
struct CDC_LINE_CODING

CDC Line Coding structure.

Format of the data returned when a GetLineCoding request is received (usbcdc11.pdf, 6.2.13)

Used in

Used in

Data Fields
uint8_t bCharFormat Number of stop bits.
uint8_t bDataBits Number of data bits.
uint8_t bParityType Parity bit type.
uint32_t dwDTERate Data terminal rate in bits per second.
struct usbd_msc_data_t

USB Device Mass Storage data structure (containing runtime values for MSC device instance)

Data Fields
uint32_t block read/write operation block
uint8_t * block_buf data buffer for media data read/write
uint32_t block_count media total number of blocks
uint32_t block_group blocks available size in cache
uint32_t block_size media block size
uint32_t bulk_len bulk in/out length
uint32_t bulk_req_len bulk in/out requested length
uint8_t bulk_stage bulk stage
MSC_CBW cbw command block wrapper
MSC_CSW csw command status wrapper
uint32_t length read write operation remaining length
bool media_ready media ready flag (Legacy Support)
bool mem_ok memory verify status
uint32_t memory_size media memory size (Legacy Support)
uint32_t offset read/write operation offset
uint8_t request_sense current request sense information