<< Previous | Next >>

serXpeek

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

Description

Returns first character in input buffer X, without removing it from the buffer. This function is non-reentrant.

The functions serEpeek() and serFpeek() 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: serXpeek(int port), where "port" is one of the macros SER_PORT_A through SER_PORT_F.

Return value

An integer with first character in buffer in the low byte.
-1 if the buffer is empty.

Library

RS232.LIB


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