www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - Fossil API


fossil_set_extctrl

Extended line control initialization.

void fossil_set_extctrl ( int port, int baud_divider,
                          FOSSIL_PARITY parity, int wordlen,
                          int stopbits );

Parameters

port

Port specifier:   FOSSIL_EXT = 0 for EXT port,   FOSSIL_COM = 1 for COM port

baud_divider

Baud rate divider (For maximum baud rate see hal_get_frequencies function.)

parity

Enumeration type:
    FOSSIL_PARITY_NO = 0
    FOSSIL_PARITY_ODD = 1
    FOSSIL_PARITY_EVEN = 2
    FOSSIL_PARITY_MARK = 3
    FOSSIL_PARITY_SPACE = 4

wordlen

Bits per character (7 or 8)

stopbits

Stop bits (1 or 2)

Return Value

-- none --

Comments

Two stop bits are only available if no parity is set.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.


Developer Notes

If the DMA mode (send or receive mode) is enabled at Chip.ini, the following port settings are not allowed:
    1. 8N2
    2. 8S2
    3. 8M2


This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document