Visible to Intel only — GUID: GUID-76692B20-7297-4C73-B71D-010E368F53F9
Visible to Intel only — GUID: GUID-76692B20-7297-4C73-B71D-010E368F53F9
SPORT_PEEK_DATA
Serial Port I/O Function: Returns information about the availability of input data. This routine is only available for Windows.
USE IFPORT
result = SPORT_PEEK_DATA (port [,present] [,count])
port |
(Input) Integer. The port number. |
present |
(Output; optional) Integer. 1 if data is present, 0 if no data has been read. |
count |
(Output; optional) Integer. The count of characters that will be returned by SPORT_READ_DATA. |
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 present
INTEGER count
iresult = SPORT_PEEK_DATA( 2, present, count )
END
See Also
Communications and Communications Functions in the Microsoft* Platform SDK