// uart.h
UART_HARDWARE_WRITE_UCHAR UartHardwareWriteUchar;
VOID UartHardwareWriteUchar(
PUCHAR Address,
UCHAR Value
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Writes a byte to the port specified by address.
AddressA pointer to a variable that contains the port or register address.
ValueSpecifies a byte to be written to the port or register.
//Declaration
UART_HARDWARE_WRITE_UCHAR UartHardwareWriteUchar;
// Definition
VOID UartHardwareWriteUchar
(
PUCHAR Address
UCHAR Value
)
{...}
Register your implementation of this callback function by setting the WritePort8 or WriteRegister8 member of the _UART_HARDWARE_ACCESS structure.