// uart.h
typedef struct _CPPORT {
PUCHAR Address;
ULONG BaudRate;
USHORT Flags;
UCHAR ByteWidth;
UART_HARDWARE_READ_INDEXED_UCHAR Read;
UART_HARDWARE_WRITE_INDEXED_UCHAR Write;
} CPPORT, *PCPPORT;
View the official Windows Driver Kit DDI referenceNo description available.
Contains the mutable runtime state of a specific instance of a UART device.
AddressThe base address of the UART registers.
BaudRateThe UART hardware's baud rate in bits per second.
FlagsA bitmask of the port's internal flags.
ByteWidthThe width of each of the UART hardware's registers as a number of bytes.
ReadA pointer to a UART_HARDWARE_READ_INDEXED_UCHAR callback function used to read from a register on the UART hardware.
WriteA pointer to a UART_HARDWARE_WRITE_INDEXED_UCHAR callback function used to write to a register on the UART hardware.