typedef struct _USB_CDC_DEVICE_INFO { uint8_t* userData; uint16_t reportSize; uint16_t remainingBytes; uint16_t bytesTransferred; union { struct { uint8_t bfDirection : 1; uint8_t bfReset : 1; uint8_t bfClearDataIN : 1; uint8_t bfClearDataOUT : 1; } uint8_t val; } flags; uint8_t driverSupported; uint8_t deviceAddress; uint8_t errorCode; uint8_t state; uint8_t returnState; uint8_t noOfInterfaces; uint8_t interface; uint8_t endpointDATA; uint8_t commRequest; uint8_t clientDriverID; COMM_INTERFACE_DETAILS commInterface; DATA_INTERFACE_DETAILS dataInterface; } USB_CDC_DEVICE_INFO;
This structure is used to hold information about an attached CDC device
Members |
Description |
uint8_t* userData; |
Data pointer to application buffer. |
uint16_t reportSize; |
Total length of user data |
uint16_t remainingBytes; |
Number uint8_ts remaining to be transferrerd in case user data length is more than 64 uint8_ts |
uint16_t bytesTransferred; |
Number of uint8_ts transferred to/from the user's data buffer. |
uint8_t bfDirection : 1; |
Direction of current transfer (0=OUT, 1=IN). |
uint8_t bfReset : 1; |
Flag indicating to perform CDC Reset. |
uint8_t bfClearDataIN : 1; |
Flag indicating to clear the IN endpoint. |
uint8_t bfClearDataOUT : 1; |
Flag indicating to clear the OUT endpoint. |
uint8_t driverSupported; |
If CDC driver supports requested Class,Subclass & Protocol. |
uint8_t deviceAddress; |
Address of the device on the bus. |
uint8_t errorCode; |
Error code of last error. |
uint8_t state; |
State machine state of the device. |
uint8_t returnState; |
State to return to after performing error handling. |
uint8_t noOfInterfaces; |
Total number of interfaces in the device. |
uint8_t interface; |
Interface number of current transfer. |
uint8_t endpointDATA; |
Endpoint to use for the current transfer. |
uint8_t commRequest; |
Current Communication code |
uint8_t clientDriverID; |
Client driver ID for device requests. |
COMM_INTERFACE_DETAILS commInterface; |
This structure stores communication interface details. |
DATA_INTERFACE_DETAILS dataInterface; |
This structure stores data interface details. |
MLA - USB Library Help Version : 2.16
![]() |