Method | Description | |
---|---|---|
MonoUsbControlSetupHandle ( byte requestType, byte request, short value, short index, |
Allocates memory and sets up a control setup packet. Copies control data into the control data buffer This constructor is used when requestType has the UsbCtrlFlags.Direction_In flag and this request will contain control data (more than just the setup packet). Allocates MonoUsbControlSetup.SETUP_PACKET_SIZE + data.Length for the setup packet. The setup packet is stored first then the control data. The data array is copied into the setup packet starting at MonoUsbControlSetup.SETUP_PACKET_SIZE. |
|
MonoUsbControlSetupHandle ( byte requestType, byte request, short value, short index, short length ) : System |
Allocates memory and sets up a control setup packet. This constructor is used when: Allocates MonoUsbControlSetup.SETUP_PACKET_SIZE + length for the setup packet. The setup packet is stored first then the control data. |
Method | Description | |
---|---|---|
ReleaseHandle ( ) : bool |
|
public MonoUsbControlSetupHandle ( byte requestType, byte request, short value, short index, |
||
requestType | byte | The request type field for the setup packet. |
request | byte | The request field for the setup packet. |
value | short | The value field for the setup packet |
index | short | The index field for the setup packet. |
data | The control data buffer to copy into the setup packet. | |
length | int | Size of |
return | System |
public MonoUsbControlSetupHandle ( byte requestType, byte request, short value, short index, short length ) : System | ||
requestType | byte | The request type field for the setup packet. |
request | byte | The request field for the setup packet. |
value | short | The value field for the setup packet |
index | short | The index field for the setup packet. |
length | short | The length to allocate for the data portion of the setup packet. |
return | System |