libxr 1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::UART::Configuration Struct Reference

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

#include <uart.hpp>

Data Fields

uint32_t baudrate
 波特率 / Baud rate
 
Parity parity
 校验模式 / Parity mode
 
uint8_t data_bits
 数据位长度 / Number of 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.

Field 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

数据位长度 / Number of data bits

Definition at line 47 of file uart.hpp.

◆ parity

Parity LibXR::UART::Configuration::parity

校验模式 / Parity mode

Definition at line 46 of file uart.hpp.

◆ stop_bits

uint8_t LibXR::UART::Configuration::stop_bits

停止位长度 / Number of stop bits

Definition at line 48 of file uart.hpp.


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