RxUsbCtrlTransfer
Appearance
Description
Executes synchronous Control Transfer with a specific endpoint.
Syntax
rc = RxUsbCtrlTransfer(Handle,Endpoint,AltSetting,RequestType,Request,Value,Index,NumBytes,Data,Timeout)
Parameters
- Handle
- the Device Handle received from the previous RxUsbOpen.
- Endpoint
- the Endpoint Number appropriate for the control transfer.
- AltSetting
- the Alternate Setting of the interface having this endpoint.
- RequestType
- the characteristics of the Standard Device Request.
- Request
- the specific request code of the Standard Device Request.
- Value
- the request dependent value of the Standard Device Request.
- Index
- the request dependent index of the Standard Device Request.
- Timeout
- the timeout to wait for completion in milliseconds.
For device-to-host data transfer:
- NumBytes
- the number of bytes to be transferred or 0 for no data transfer.
- Data
- the name of the variable to receive the data bytes transferred.
For host-to-device data transfer:
- NumBytes
- the name of the variable to receive the number of bytes transferred.
- Data
- the character string if any with the data bytes to be transferred.