A Sandcastle Documented Class Library
EasyCommand Method (Command, rxlength, data, dataout)
Namespaces > PICUSB > usb_interface > EasyCommand(Byte, Int32, Byte[](), Byte[]())
Simple method for sending/receiving USB data from the PIC.
Syntax
C#Visual BasicManaged C++
public uint EasyCommand (
	byte Command,
	int rxlength,
	byte[] data,
	out byte[] dataout
)
Public Function EasyCommand ( _
	Command As Byte, _
	rxlength As Integer, _
	data As Byte(), _
	<OutAttribute> ByRef dataout As Byte() _
) As UInteger
public:
unsigned int EasyCommand (
	unsigned char Command, 
	int rxlength, 
	array<unsigned char>^ data, 
	array<unsigned char>^% dataout
)
Parameters
Command (Byte)
Command byte
rxlength (Int32)
Expected length of received packet
data (Byte[]())
Array of bytes to send after command - pass null if not applicable
dataout (Byte[]())
Array for received bytes
Return Value
1=Success, 2=Incorrect RX Length, 3=Read Failed

Assembly: PICUSB Version: 1.0.2970.38156 (Module: PICUSB)