IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ fossil_status_request()

int fossil_status_request ( int  port)

Get the serial port status.

Parameters
portport number index: 0=UART1 ... , see FOSSIL_PORT
Note
Any reported UART error flags are cleared after the read is made for this call.
Returns
bit 6: FOSSIL_OUTPUT_BUFFER_EMPTY
bit 5: FOSSIL_OUTPUT_NOT_FULL
bit 4: FOSSIL_LINE_BREAK Line break detected
bit 3: FOSSIL_FRAMING_ERROR Framing error detected
bit 2: FOSSIL_PARITY_ERROR Parity error detected
bit 1: FOSSIL_OVERRUN_ERROR Set if overrun occurred on receiver
bit 0: FOSSIL_DATA_AVAILABLE Set if data is available in receiver buffer
-1 = wrong port number
Since
V0.80
See also
fossil_getbyte() fossil_getbyte_wait()





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Feb 9 2018 17:44:49 by Doxygen 1.8.13