|
|||||||||||
|
Technical Support On-Line Manuals RL-ARM User's Guide |
RL-ARM User's GuideUSB Request Block structure (USBH_URB)USB Request Block (USBH_URB) structure represents communication structure between USB Host core and USB Host driver.
typedef volatile struct { /* USB Request Block (URB) */
U8 *ptrDataBuffer; /* Pointer to Data Buffer */
U8 *ptrCurrentDataBuffer; /* Pointer to Current pos in Data Buff*/
U32 DataLength; /* Data Length */
U32 DataTransferred; /* Data Transferred */
union {
U32 Parameters; /* Transfer Parameters */
struct {
U32 PacketType : 4; /* Packet Type */
U32 ToggleBit : 1; /* Toggle Bit Value */
U32 ToggleForce : 1; /* Toggle Bit Forced (if cleared
ToggleBit value is ignored) */
};
};
union {
U32 Status; /* Status */
struct {
U32 Submitted : 1; /* URB Submit Status */
U32 InProgress : 1; /* URB Processing In Progress Status */
U32 Cancelled : 1; /* URB Cancel Status */
U32 Completed : 1; /* URB Completition Status */
U32 Timeout : 1; /* URB Timeout Status */
U32 ResponsePacketType: 4; /* Response Packet Type */
U32 Reserved : 7; /* Reserved bits to reposition other */
U32 Error : 8; /* URB Error Status */
};
};
U32 NAKRetries; /* Number of NAK retries */
U32 TimeoutCount; /* Transaction Timeout Counter */
void (*CompletedCallback)(void);/* URB Completition Callback Function */
} USBH_URB;
Explanation of USBH_URB structure elements:
| ||||||||||
|
|||||||||||