Manuals
General operations
USB Device operations
Packet function operations
Serial function operations
Stream function operations
ECUSB_Stream_WriteData
ECUSB_Stream_WriteData writes data to the host.
ECUSB_ErrorCode ECUSB_Stream_WriteData(
struct ECUSB_Stream_Function *pStreamFunction,
const BYTE *pData,
UINT BufferSize
);
struct ECUSB_Stream_Function *pStreamFunction,
const BYTE *pData,
UINT BufferSize
);
Parameters
pStreamFunction
A pointer to the struct ECUSB_Stream_Function previously initialized by ECUSB_Stream_Init().
pData
A pointer to a buffer to send.
BufferSize
The size of the supplied buffer.
Return value
Returns one of the ECUSB error codes (ECUSB_SUCCESS on success)