Perform a synchronous control transfer (endpoint 0).
int32_t UsbControlXfer(
int32_t udev,
uint8_t request,
uint8_t requesttype,
uint16_t value,
uint16_t index,
void *data,
uint16_t len,
uint16_t * act_len,
uint32_t flags,
uint32_t timeout
);
udev
request
USB_REQ_GET_STATUS
USB_REQ_CLEAR_FEATURE
USB_REQ_SET_FEATURE
USB_REQ_SET_ADDRESS
USB_REQ_GET_DESCRIPTOR
USB_REQ_SET_DESCRIPTOR
USB_REQ_GET_CONFIGURATION
USB_REQ_SET_CONFIGURATION
USB_REQ_GET_INTERFACE
USB_REQ_SET_INTERFACE
USB_REQ_SYNCH_FRAME
requesttype
value
index
data
len
act_len
flags
timeout
USB_ERR_NORMAL_COMPLETION | Success. The operation was completed. |
USB_ERR_NO_STACK | The USB stack is not ready. |
USB_ERR_MEMORY | Memory could not be allocated for the operation. |
USB_ERR_TIMEOUT | The device did not respond. |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 5.0 | intime/rt/include/usbif3.h | usbif3.h | usbif3.lib |