www.beck-ipc.com

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


fossil_get_bytes_in_uart

Get number of bytes currently in UART hardware transmit buffers.

int fossil_get_bytes_in_uart ( int port );

Parameters

port

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

Return Value

Number of transmitter bytes in the UART, pending output

Comments

Returns the number of bytes which are currently in the UART hardware transmit buffers.

With this function you can check how many bytes are currently stored at the internal UART transmit registers.   This may be necessary to know if your communication pauses because of a handshake problem.   If you want to know, how many bytes are stored at the fossil driver software transmit queue, you can use fossil_get_driver_info function.   However, fossil_get_driver_info does not check the UART transmit hardware buffers.

See Also

RTOS API

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


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


End of document