UID | title | description | tech.root | ms.date | keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.lib | req.dll | req.irql | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | targetos | f1_keywords | topic_type | api_type | api_location | api_name | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NC:uart.UART_INITIALIZE_PORT |
UART_INITIALIZE_PORT (uart.h) |
Initializes or resets the UART hardware. |
serports |
10/19/2018 |
|
uart.h |
Windows 10, version 1803 |
Windows |
|
|
|
|
|
Initializes or resets the UART hardware. This callback function is called before calling any other driver functions.
[_In_opt_Optional Null_terminated] A null-terminated load option string.
A pointer to a _CPPORT structure that is filled with information about port initialization.
A boolean value that indicates whether the UART hardware is accessed through memory-mapped registers or legacy port I/O.
An ACPI Generic Access Size value that indicates the type of bus access that should be performed when accessing the UART hardware.
A number that indicates the width of the UART registers.
Returns TRUE if the port has been successfully initialized, FALSE otherwise.
//Declaration
UART_INITIALIZE_PORT UartInitializePort;
// Definition
BOOLEAN UartInitializePort
(
PCHAR LoadOptions
PCPPORT Port
BOOLEAN MemoryMapped
UCHAR AccessSize
UCHAR BitWidth
)
{...}
Register your implementation of this callback function by setting the appropriate member of UART_HARDWARE_DRIVER.