// uart.h
UART_HARDWARE_READ_INDEXED_UCHAR UartHardwareReadIndexedUchar;
UCHAR UartHardwareReadIndexedUchar(
[_In_] PCPPORT Port,
const UCHAR Index
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Reads a byte from the specified port.
Port [_In_]A pointer to a _CPPORT structure that was received during port initialization.
IndexA zero-based index for the port.
Returns the byte that is read from the specified port address.
//Declaration
UART_HARDWARE_READ_INDEXED_UCHAR UartHardwareReadIndexedUchar;
// Definition
UCHAR UartHardwareReadIndexedUchar
(
PCPPORT Port
const UCHAR Index
)
{...}
Register your implementation of this callback function by setting the appropriate member of the _CPPORT structure.