<< Previous | Next >>

serXrdUsed

int serXrdUsed( void ); /* where X is A-F */

Description

Calculates the number of characters ready to read from the serial port receive buffer. This function is non-reentrant.

The functions serErdUsed() and serFrdUsed() may be used with the Rabbit 3000 and Rabbit 4000.

NOTE Alternatively you can use another form of this function that has been generalized for all serial ports. Instead of substituting for "X" in the function name, the prototype of the generalized function is: serXrdUsed(int port), where "port" is one of the macros SER_PORT_A through SER_PORT_F.

Return value

The number of characters currently in serial port X receive buffer.

Library

RS232.LIB


Dynamic C Functions << Previous | Next >> rabbit.com