Comtrol API (6508) for the MS-DOS User Manual
Page 26

26
API Functions
aaGetRxStatus
aaGetRxStatus
Gets the status of the device’s receive buffer.
aaGetRxStatus(Dev)
int Dev
Device number
int:
NO_ERR
if there are no errors in the
device’s receive buffer
ERR_RX
if there are errors in the
device’s receive buffer
ERR_DEV
if device number out of range
ERR_NOTOPEN
if device not open for receive
If there are errors in the device’s receive buffer, the
exact error and the errored data byte can be
determined using the aaReadWithStatus() function.
Function
Purpose
Call
Return
Comments
aaGetTxCount
Gets the count of data bytes in the transmit buffer
waiting to be transmitted.
aaGetTxCount(Dev)
int Dev
Device number
int: Transmit byte count
Function
Purpose
Call
Return