libxr
Embedded C++ framework for bare-metal, RTOS and Linux
Loading...
Searching...
No Matches
LibXR::UART::Configuration Struct Reference

UART 配置结构体 / UART configuration structure. More...

#include <uart.hpp>

Public Attributes

uint32_t baudrate
 波特率 / Baud rate
 
Parity parity
 
uint8_t data_bits
 
uint8_t stop_bits
 停止位长度 / Number of stop bits
 

Detailed Description

UART 配置结构体 / UART configuration structure.

该结构体包含 UART 端口的基本配置参数,如波特率、数据位、停止位等。 This structure contains basic configuration parameters for the UART port, such as baud rate, data bits, and stop bits.

Definition at line 43 of file uart.hpp.

Member Data Documentation

◆ baudrate

uint32_t LibXR::UART::Configuration::baudrate

波特率 / Baud rate

Definition at line 45 of file uart.hpp.

◆ data_bits

uint8_t LibXR::UART::Configuration::data_bits

有效数据位数。按字节接收时仅低 data_bits 位有效,高位由调用方按需屏蔽。 Number of valid data bits. For byte-wise RX, only the low data_bits bits are valid; callers mask the unspecified upper bits when needed.

Definition at line 51 of file uart.hpp.

◆ parity

Parity LibXR::UART::Configuration::parity

校验模式 / Parity mode

Definition at line 47 of file uart.hpp.

◆ stop_bits

uint8_t LibXR::UART::Configuration::stop_bits

停止位长度 / Number of stop bits

Definition at line 53 of file uart.hpp.


The documentation for this struct was generated from the following file: