A Sandcastle Documented Class Library
SendReceivePacket Method (SendData, SendLength, ReceiveData, ReceiveLength)
Namespaces > PICUSB > usb_interface > SendReceivePacket(Byte[](), UInt32, Byte[](), UInt32)
Writes one packet to PIC, receives response packet.
Syntax
C#Visual BasicManaged C++
protected uint SendReceivePacket (
	byte[] SendData,
	uint SendLength,
	byte[] ReceiveData,
	uint ReceiveLength
)
Protected Function SendReceivePacket ( _
	SendData As Byte(), _
	SendLength As UInteger, _
	ReceiveData As Byte(), _
	ReceiveLength As UInteger _
) As UInteger
protected:
unsigned int SendReceivePacket (
	array<unsigned char>^ SendData, 
	unsigned int SendLength, 
	array<unsigned char>^ ReceiveData, 
	unsigned int ReceiveLength
)
Parameters
SendData (Byte[]())
Pointer to bytes to be sent
SendLength (UInt32)
Number of bytes to be sent
ReceiveData (Byte[]())
Pointer to location for received data
ReceiveLength (UInt32)
Expected number of received bytes
Return Value
1=Success, 2=Incorrect RX Length, 3=Read Failed

Assembly: PICUSB Version: 1.0.2970.38156 (Module: PICUSB)