Visible to Intel only — GUID: GUID-1C8924E8-4883-4C87-B033-9FDE42EEF2CF
Visible to Intel only — GUID: GUID-1C8924E8-4883-4C87-B033-9FDE42EEF2CF
SPORT_READ_DATA
Serial Port I/O Function: Reads available data from the specified port. This routine stalls until at least one character has been read. This routine is only available for Windows.
USE IFPORT
result = SPORT_READ_DATA (port,buffer[,count])
port |
(Input) Integer. The port number. |
buffer |
(Output) Character*(*). The data that was read. |
count |
(Output; optional) Integer. The count of bytes read. |
The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows* error value.
CR and LF characters may not be returned depending on the mode specified in the SPORT_CONNECT( ) call.
USE IFPORT
INTEGER(4) iresult
INTEGER count
CHARACTER*1024 rbuff
iresult = SPORT_READ_DATA( 2, rbuff, count )
END
See Also
Communications and Communications Functions in the Microsoft* Platform SDK