Reads data from the port.
BOOL FtVspcRead( FTVSPCHANDLE hPort, LPVOID lpBuffer, size_t cbBuffer, size_t* lpNumberOfBytesRead );
[in] Port handle. Refer to FtVspcAttach.
[in, out] A pointer to the buffer that receives the data.
[in] Number of bytes to read from serial port (buffer size)
[out] A pointer to the variable that receives the number of bytes read from the port.
If the function succeeds, the return value is nonzero. Use FtVspcGetLastError to get the error code (FtVspc_ErrorCode).
|ftvspcErrorFailed||1||The operation has not been completed.|