Bouffalo SDK  1.0
Bouffalolab Software Development Kit
bflb_uart_config_s Struct Reference

UART configuration structure. More...

#include <bflb_uart.h>

Collaboration diagram for bflb_uart_config_s:
Collaboration graph

Data Fields

uint32_t baudrate
 
uint8_t direction
 
uint8_t data_bits
 
uint8_t stop_bits
 
uint8_t parity
 
uint8_t bit_order
 
uint8_t flow_ctrl
 
uint8_t tx_fifo_threshold
 
uint8_t rx_fifo_threshold
 

Detailed Description

UART configuration structure.

Parameters
baudrateUART baudrate setting in bps,should be less than uart_clk/2
directionUART direction, use uart direction enable definition
data_bitsUART data bits, use uart data bits definition
stop_bitsUART stop bits, use uart stop bits definition
parityUART parity bit, use uart parity definition
bit_orderUART bit first, use uart bitorder definition
flow_ctrlUART flow control setting, use uart flow ctrl definition
tx_fifo_thresholdUART tx fifo threshold, should be less than 32.
rx_fifo_thresholdUART rx fifo threshold, should be less than 32.

Definition at line 187 of file bflb_uart.h.

Field Documentation

◆ baudrate

uint32_t baudrate

Definition at line 188 of file bflb_uart.h.

◆ bit_order

uint8_t bit_order

Definition at line 193 of file bflb_uart.h.

◆ data_bits

uint8_t data_bits

Definition at line 190 of file bflb_uart.h.

◆ direction

uint8_t direction

Definition at line 189 of file bflb_uart.h.

◆ flow_ctrl

uint8_t flow_ctrl

Definition at line 194 of file bflb_uart.h.

◆ parity

uint8_t parity

Definition at line 192 of file bflb_uart.h.

◆ rx_fifo_threshold

uint8_t rx_fifo_threshold

Definition at line 196 of file bflb_uart.h.

◆ stop_bits

uint8_t stop_bits

Definition at line 191 of file bflb_uart.h.

◆ tx_fifo_threshold

uint8_t tx_fifo_threshold

Definition at line 195 of file bflb_uart.h.


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