UART_HARDWARE_READ_INDEXED_UCHAR callback function (uart.h)

Reads a byte from the specified port.

Syntax

UART_HARDWARE_READ_INDEXED_UCHAR UartHardwareReadIndexedUchar;

UCHAR UartHardwareReadIndexedUchar(
  [_In_] PCPPORT Port,
         const UCHAR Index
)
{...}

Parameters

[_In_] Port

A pointer to a _CPPORT structure that was received during port initialization.

Index

A zero-based index for the port.

Return value

Returns the byte that is read from the specified port address.

Remarks

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

Requirements

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

See also

uart.h