SysComReadΒΆ

This function of type DWORD reads the data of COM-PORT. The input parameters are the port handle got by SysComOpen, the number of expected bytes and the timeout of the function. Besides that the address to which the read data should be copied, will be passed on.

The function will return the number of actually read bytes.

Input Variable Data Type Description
dwHandle DWORD Port handle, acquired by SysComOpen
dwBufferAddress DWORD address, to which the read bytes should be copied after having been read from the port; (you can make use of the operator ADR to get this address)
dwBytesToRead DWORD Number of bytes, which should be read
dwTimeout DWORD Time in [ms], after that the function returns at the latest