IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ fossil_setbaud()

int fossil_setbaud ( int  port,
long  baudrate,
FOSSIL_PARITY  parity,
int  wordlen,
int  stopbits 
)

Set baud rate and port configuration for specified port.

Parameters
portport number index: 0=UART1 ... , see FOSSIL_PORT
baudrateDesired baud rate, bits per second
parityParity mode, see FOSSIL_PARITY
wordlenBits per character (5 - 8)
stopbitsStop bits
1 = 1 stop bit
2 = 2 stop bits
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_initmode() fossil_init()





Top of page | Main page

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