libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::UartHandler::Config Struct Reference

#include <uart.h>

Public Types

enum class  Peripheral {
  USART_1 , USART_2 , USART_3 , UART_4 ,
  UART_5 , USART_6 , UART_7 , UART_8 ,
  LPUART_1
}
 
enum class  StopBits { BITS_0_5 , BITS_1 , BITS_1_5 , BITS_2 }
 
enum class  Parity { NONE , EVEN , ODD }
 
enum class  Mode { RX , TX , TX_RX }
 
enum class  WordLength { BITS_7 , BITS_8 , BITS_9 }
 

Public Member Functions

 Config ()
 

Public Attributes

struct { 
 
   dsy_gpio_pin   tx 
 
   dsy_gpio_pin   rx 
 
pin_config 
 
Peripheral periph
 
StopBits stopbits
 
Parity parity
 
Mode mode
 
WordLength wordlength
 
uint32_t baudrate
 

Member Enumeration Documentation

◆ Mode

Enumerator
RX 
TX 
TX_RX 

◆ Parity

Enumerator
NONE 
EVEN 
ODD 

◆ Peripheral

Enumerator
USART_1 
USART_2 
USART_3 
UART_4 
UART_5 
USART_6 
UART_7 
UART_8 
LPUART_1 

◆ StopBits

Enumerator
BITS_0_5 
BITS_1 
BITS_1_5 
BITS_2 

◆ WordLength

Enumerator
BITS_7 
BITS_8 
BITS_9 

Constructor & Destructor Documentation

◆ Config()

daisy::UartHandler::Config::Config ( )
inline

Member Data Documentation

◆ baudrate

uint32_t daisy::UartHandler::Config::baudrate

◆ mode

Mode daisy::UartHandler::Config::mode

◆ parity

Parity daisy::UartHandler::Config::parity

◆ periph

Peripheral daisy::UartHandler::Config::periph

◆ [struct]

struct { ... } daisy::UartHandler::Config::pin_config

&

◆ rx

dsy_gpio_pin daisy::UartHandler::Config::rx

&

◆ stopbits

StopBits daisy::UartHandler::Config::stopbits

◆ tx

dsy_gpio_pin daisy::UartHandler::Config::tx

&

◆ wordlength

WordLength daisy::UartHandler::Config::wordlength

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