UART_RX_READY callback function (uart.h)

Determines whether there is data pending in the UART hardware.

Syntax

UART_RX_READY UartRxReady;

BOOLEAN UartRxReady(
  [_Inout_] PCPPORT Port
)
{...}

Parameters

[_Inout_] Port

A pointer to a _CPPORT structure that contains the address of the port object that describes the UART hardware.

Return value

Returns TRUE if data is available, FALSE otherwise.

Remarks

Register your implementation of this callback function by setting the appropriate member of UART_HARDWARE_DRIVER.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1803
Header uart.h

See also

UART_HARDWARE_DRIVER

_CPPORT

UART_STATUS

uart.h