IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ fossil_setbaud_std()

int fossil_setbaud_std ( int  port,
unsigned char  config 
)

Set a standard baud rate and port configuration.

Parameters
portport number index: 0=UART1 ... , see FOSSIL_PORT
configConfiguration parameter: This bitmap field specifies the communication parameters.

Bits 7-5: Baud rate
     000     -     19200
     001     -     38400
     010     -     300
     011     -     600
     100     -     1200
     101     -     2400
     110     -     4800
     111     -     9600

Bits 4-3: Parity
     00     -     None
     01     -     Odd
     11     -     Even

Bit 2: Stop bits
     0     -     1 Stop bit
     1     -     2 Stop bits

Bits 1-0: Word length
     10     -     7 bits
     11     -     8 bits

Note
Any reported UART error flags are cleared after the read is made for this call.
Returns
Port status:
bit 7: "Error in Received FIFO"
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_setbaud()





Top of page | Main page

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