// uart.h
UART_HARDWARE_READ_USHORT UartHardwareReadUshort;
USHORT UartHardwareReadUshort(
PUSHORT Address
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Reads a USHORT value from the specified port or register.
AddressA pointer to a variable that contains the port or register address.
Returns USHORT that is read from the specified port or register.
//Declaration
UART_HARDWARE_READ_USHORT UartHardwareReadUshort;
// Definition
USHORT UartHardwareReadUshort
(
PUSHORT Address
)
{...}
Register your implementation of this callback function by setting the ReadPort16 or ReadRegister16 member of the _UART_HARDWARE_ACCESS structure.