IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ fossil_putbyte_wait()

int fossil_putbyte_wait ( int  port,
int  ch 
)

Put byte in output buffer, wait if needed. This functions sends a single character over the serial port.

Parameters
portport number index: 0=UART1 ... , see FOSSIL_PORT
chByte to output over serial port
Note
Any reported UART error flags are cleared after the read is made for this call.
Returns
Port status:
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
Since
V0.80
See also
fossil_putbyte() fossil_writeblock()





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Tue Jul 10 2018 14:54:14 by Doxygen 1.8.13