USBDevice.ControlTransfer Method (Byte, Byte, Int32, Int32) |
Initiates a control transfer without a data stage over the default control endpoint. This method allows both IN and OUT direction transfers, depending
on the highest bit of the
requestType parameter). Alternatively,
ControlIn(Byte, Byte, Int32, Int32) and
ControlOut(Byte, Byte, Int32, Int32) can be used for control transfers in a specific direction, which is the recommended way because
it prevents using the wrong direction accidentally. Use the ControlTransfer method when the direction is not known at compile time.
Namespace:
MadWizard.WinUSBNet
Assembly:
WinUSBNet (in WinUSBNet.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic void ControlTransfer(
byte requestType,
byte request,
int value,
int index
)
Public Sub ControlTransfer (
requestType As Byte,
request As Byte,
value As Integer,
index As Integer
)
public:
void ControlTransfer(
unsigned char requestType,
unsigned char request,
int value,
int index
)
Parameters
- requestType
- Type: System.Byte
The setup packet request type. - request
- Type: System.Byte
The setup packet device request. - value
- Type: System.Int32
The value member in the setup packet. Its meaning depends on the request. Value should be between zero and 65535 (0xFFFF). - index
- Type: System.Int32
The index member in the setup packet. Its meaning depends on the request. Index should be between zero and 65535 (0xFFFF).
See Also