IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ fossil_peek_input()

int fossil_peek_input ( int  port)

Peek if next byte is available. Returns the next byte available in the receive buffer, without removing it from the buffer.

Parameters
portport number index: 0=UART1 ... , see FOSSIL_PORT
Returns
-1 = if no data is available in receive buffer or port is invalid, else next character in the received buffer
Since
V1.18
Only supported at @CHIP-RTOS-LNX target(s)
SC1x5
See also
fossil_getbyte_wait() fossil_readblock()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Dec 12 2017 09:23:36 by Doxygen 1.8.13