uart_conf_t Struct Reference

UART device configuration. More...

Detailed Description

Structure for UART configuration data.

UART configuration data.

UART module configuration options.

Definition at line 127 of file ezr32wg/include/periph_cpu.h.

#include </tmp/RIOT/cpu/ezr32wg/include/periph_cpu.h>

Data Fields

USART_TypeDef * dev
 USART device used. More...
gpio_t rx_pin
 Pin used for RX. More...
gpio_t tx_pin
 Pin used for TX. More...
uint8_t loc
 location of USART pins (AF)
uint8_t cmu
 the device CMU channel
uint8_t irq
 the devices base IRQ channel
UART_Type * dev
 Pointer to module hardware registers.
uint32_t freq
 Module clock frequency, usually CLOCK_CORECLOCK or CLOCK_BUSCLOCK.
gpio_t pin_rx
 RX pin, GPIO_UNDEF disables RX.
gpio_t pin_tx
 TX pin.
uint32_t pcr_rx
 Pin configuration register bits for RX.
uint32_t pcr_tx
 Pin configuration register bits for TX.
IRQn_Type irqn
 IRQ number for this module. More...
volatile uint32_t * scgc_addr
 Clock enable register, in SIM module.
uint8_t scgc_bit
 Clock enable bit, within the register.
uint8_t mode
 UART mode: data bits, parity, stop bits.
Uart * dev
 U(S)ART device used.
Pio * rx_port
 port for RX pin
Pio * tx_port
 port for TX pin
uint8_t rx_pin
 RX pin.
uint8_t tx_pin
 TX pin.
gpio_mux_t mux
 MUX used for pins. More...
uint8_t pmc_id
 bit in the PMC register of the device
uint8_t irqn
 interrupt number of the device More...
SercomUsart * dev
 pointer to the used UART device
uart_rxpad_t rx_pad
 pad selection for RX line
uart_txpad_t tx_pad
 pad selection for TX line
uint32_t rcc_mask
 bit in clock enable register
gpio_af_t rx_af
 alternate function for RX pin
gpio_af_t tx_af
 alternate function for TX pin
uint8_t bus
 APB bus.

Field Documentation

◆ dev

USART_TypeDef * uart_conf_t::dev

UART device base register address.

Definition at line 128 of file ezr32wg/include/periph_cpu.h.

◆ irqn [1/2]

uint8_t uart_conf_t::irqn

IRQ channel.

Definition at line 200 of file sam3/include/periph_cpu.h.

◆ irqn [2/2]

uint8_t uart_conf_t::irqn

IRQ channel.

Definition at line 328 of file kinetis_common/include/periph_cpu.h.

◆ mux

gpio_mux_t uart_conf_t::mux

alternative function for pins

Definition at line 198 of file sam3/include/periph_cpu.h.

◆ rx_pin

gpio_t uart_conf_t::rx_pin

RX pin.

pin used for RX

Definition at line 129 of file ezr32wg/include/periph_cpu.h.

◆ tx_pin

gpio_t uart_conf_t::tx_pin

TX pin.

pin used for TX

Definition at line 130 of file ezr32wg/include/periph_cpu.h.

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