uart_conf_t Struct Reference

UART device configuration. More...

Detailed Description

UART device configuration.

Structure for UART configuration data.

UART configuration data.

UART module configuration options.

UART configuration structure type.

Definition at line 166 of file periph_cpu.h.

#include <periph_cpu.h>

Data Fields

cc2538_uart_tdev
 pointer to the used UART device More...
 
gpio_t rx_pin
 pin used for RX More...
 
gpio_t tx_pin
 pin used for TX More...
 
gpio_t cts_pin
 CTS pin - set to GPIO_UNDEF when not using.
 
gpio_t rts_pin
 RTS pin - set to GPIO_UNDEF when not using.
 
void * dev
 UART, USART or LEUART device used. More...
 
uint32_t loc
 location of UART pins
 
CMU_Clock_TypeDef cmu
 the device CMU channel
 
IRQn_Type irq
 the devices base IRQ channel
 
gpio_t txd
 GPIO used as TxD pin.
 
gpio_t rxd
 GPIO used as RxD pin.
 
USART_TypeDef * dev
 USART device used. More...
 
uint8_t loc
 location of USART pins (AF)
 
uint8_t cmu
 the device CMU channel
 
uint8_t irq
 the devices base IRQ channel
 
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.
 
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.
 
uart_mode_t mode
 UART mode: data bits, parity, stop bits.
 
uart_type_t type
 Hardware module type (KINETIS_UART or KINETIS_LPUART)
 
lpc23xx_uart_t * dev
 pointer to the UART device
 
uint8_t irq_prio_rx
 priority of the RX IRQ
 
uint8_t pinsel_rx
 PINSEL# of the RX pin.
 
uint8_t pinsel_tx
 PINSEL# of the TX pin.
 
uint32_t pinsel_msk_rx
 RX PINSEL Mask.
 
uint32_t pinsel_msk_tx
 TX PINSEL Mask.
 
SercomUsart * dev
 pointer to the used UART device
 
gpio_mux_t mux
 alternative function for pins More...
 
uart_rxpad_t rx_pad
 pad selection for RX line
 
uart_txpad_t tx_pad
 pad selection for TX line
 
uart_flag_t flags
 set optional SERCOM flags
 
uint32_t gclk_src
 GCLK source which supplys SERCOM.
 
Uart * dev
 U(S)ART device used.
 
uint8_t pmc_id
 bit in the PMC register of the device
 
uint8_t irqn
 interrupt number of the device More...
 
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 [1/3]

USART_TypeDef* uart_conf_t::dev

USART device used.

UART device base register address.

Definition at line 128 of file periph_cpu.h.

◆ dev [2/3]

USART_TypeDef * uart_conf_t::dev

pointer to the used UART device

UART device base register address.

Pointer to module hardware registers.

Definition at line 167 of file periph_cpu.h.

◆ dev [3/3]

void* uart_conf_t::dev

UART, USART or LEUART device used.

Pointer to module hardware registers.

Definition at line 406 of file periph_cpu.h.

◆ irqn [1/2]

uint8_t uart_conf_t::irqn

interrupt number of the device

IRQ channel.

Definition at line 215 of file periph_cpu.h.

◆ irqn [2/2]

uint8_t uart_conf_t::irqn

IRQ number for this module.

IRQ channel.

Definition at line 498 of file periph_cpu.h.

◆ mux

gpio_mux_t uart_conf_t::mux

alternative function for pins

MUX used for pins.

Definition at line 214 of file periph_cpu_common.h.

◆ rx_pin

gpio_t uart_conf_t::rx_pin

pin used for RX

RX pin.

Pin used for RX.

Definition at line 168 of file periph_cpu.h.

◆ tx_pin

gpio_t uart_conf_t::tx_pin

pin used for TX

TX pin.

Pin used for TX.

Definition at line 169 of file periph_cpu.h.


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