A Sandcastle Documented Class Library
Read Method (handle, pData, dwLen, pLength, dwMilliseconds)
Namespaces > PICUSB > MPUSB > Read(UInt32, Byte[](), UInt32, UInt32, UInt32)
Read data from a PIC endpoint
Syntax
C#Visual BasicManaged C++
public static uint Read (
	uint handle,
	byte[] pData,
	uint dwLen,
	out uint pLength,
	uint dwMilliseconds
)
Public Shared Function Read ( _
	handle As UInteger, _
	pData As Byte(), _
	dwLen As UInteger, _
	<OutAttribute> ByRef pLength As UInteger, _
	dwMilliseconds As UInteger _
) As UInteger
public:
static unsigned int Read (
	unsigned int handle, 
	array<unsigned char>^ pData, 
	unsigned int dwLen, 
	unsigned int% pLength, 
	unsigned int dwMilliseconds
)
Parameters
handle (UInt32)
Handle of pipe to read from
pData (Byte[]())
Array to accept incoming data
dwLen (UInt32)
Expected length of received data(?)
pLength (UInt32)
Actual length of received data(?)
dwMilliseconds (UInt32)
Timeout, in milliseconds
Return Value
1=success

Assembly: PICUSB Version: 1.0.2970.38156 (Module: PICUSB)