APM:Libraries
Public Attributes | List of all members
usart_dev Struct Reference

#include <usart.h>

Collaboration diagram for usart_dev:
[legend]

Public Attributes

USART_TypeDef * USARTx
 
uint32_t clk
 
IRQn_Type irq
 
uint8_t rx_pin
 
uint8_t tx_pin
 
uint8_t gpio_af
 
usart_statestate
 
ring_bufferrxrb
 
ring_buffertxrb
 

Detailed Description

USART device type

Definition at line 34 of file usart.h.

Member Data Documentation

◆ clk

uint32_t usart_dev::clk

Definition at line 36 of file usart.h.

Referenced by usart_init().

◆ gpio_af

uint8_t usart_dev::gpio_af

Definition at line 40 of file usart.h.

Referenced by F4Light::UARTDriver::begin().

◆ irq

IRQn_Type usart_dev::irq

Definition at line 37 of file usart.h.

Referenced by usart_setup().

◆ rx_pin

uint8_t usart_dev::rx_pin

Definition at line 38 of file usart.h.

Referenced by F4Light::UARTDriver::begin().

◆ rxrb

ring_buffer* usart_dev::rxrb

RX ring buffer

Definition at line 42 of file usart.h.

Referenced by usart_data_available(), usart_getc(), usart_reset_rx(), usart_rx_irq(), and usart_setup().

◆ state

usart_state* usart_dev::state

◆ tx_pin

uint8_t usart_dev::tx_pin

Definition at line 39 of file usart.h.

Referenced by F4Light::UARTDriver::begin().

◆ txrb

ring_buffer* usart_dev::txrb

TX ring buffer

Definition at line 43 of file usart.h.

Referenced by usart_reset_tx(), usart_setup(), usart_tx(), usart_tx_irq(), usart_txfifo_freebytes(), and usart_txfifo_nbytes().

◆ USARTx

USART_TypeDef* usart_dev::USARTx

Register map

Definition at line 35 of file usart.h.

Referenced by usart_disable(), usart_enable(), usart_init(), usart_rx_irq(), usart_setup(), usart_tx(), and usart_tx_irq().


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