www.beck-ipc.com

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


fossil_status_request

Get port status.

int fossil_status_request ( int port );

SC1x Parameters

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

SC1x3 Parameters

port
Port specifier:
    FOSSIL_EXT = 0 for EXT port
    FOSSIL_COM = 1 for COM port
    FOSSIL_SER2 = 2 for SER2 port
    FOSSIL_SER3 = 3 for SER3 port

Return Value

Status code (bit field):
    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.

The header file contains the indicated mask definitions.

Comments

Any reported UART error flags are cleared after the read is made for this call.

For efficient receiver polling, the fossil_getbyte or fossil_readblock methods are recommended.

See Also

RTOS API

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

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.00V1.00V1.00V0.90

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


End of document