Delen via


UART_Config Struct

Header: #include <applibs/uart.h>

De configuratieopties voor een UART. Roep UART_InitConfig aan om een exemplaar te initialiseren.

Opmerking

dit is een alias voor een structuur met versiebeheer. Definieer UART_STRUCTS_VERSION om deze alias te gebruiken.

struct UART_Config {
    uint32_t z__magicAndVersion;
    UART_BaudRate_Type baudRate;
    UART_BlockingMode_Type blockingMode;
    UART_DataBits_Type dataBits;
    UART_Parity_Type parity;
    UART_StopBits_Type stopBits;
    UART_FlowControl_Type flowControl;
};

Leden

uint32_t z__magicAndVersion

Een unieke id van het type en de versie van de struct. Niet bewerken.

UART_BaudRate_Type baudRate

De baudrate van de UART.

UART_BlockingMode_Type blockingMode

De instelling voor de blokkeringsmodus voor de UART.

UART_DataBits_Type dataBits

De instelling voor gegevensbits voor de UART.

UART_Parity_Type pariteit

De pariteitsinstelling voor de UART.

stopBits UART_StopBits_Type

De instelling voor stopbits voor de UART.

UART_FlowControl_Type flowControl

De instelling voor stroombeheer voor de UART.