Jump to content

RxUsbCtrlTransfer

From EDM2
Revision as of 03:40, 11 January 2017 by Martini (talk | contribs) (Created page with "==Description== Executes synchronous Control Transfer with a specific endpoint. ==Syntax== <pre> rc = RxUsbCtrlTransfer(Handle,Endpoint,AltSetting,RequestType,Request,Value...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Return Code

Errors

Remarks

Example Code


Related Functions