Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
uart_periph Struct Reference

UART peripheral. More...

#include <uart.h>

Data Fields

uint8_t rx_buf [UART_RX_BUFFER_SIZE]
 Receive buffer. More...
 
uint16_t rx_insert_idx
 
uint16_t rx_extract_idx
 
uint8_t tx_buf [UART_TX_BUFFER_SIZE]
 Transmit buffer. More...
 
uint16_t tx_insert_idx
 
uint16_t tx_extract_idx
 
uint8_t tx_running
 
void * reg_addr
 UART Register. More...
 
char dev [UART_DEV_NAME_SIZE]
 UART Dev (linux) More...
 
volatile uint16_t ore
 overrun error counter More...
 
volatile uint16_t ne_err
 noise error counter More...
 
volatile uint16_t fe_err
 framing error counter More...
 

Detailed Description

UART peripheral.

Definition at line 56 of file uart.h.

Field Documentation

char uart_periph::dev[UART_DEV_NAME_SIZE]

UART Dev (linux)

Definition at line 69 of file uart.h.

Referenced by uart_periph_set_baudrate().

volatile uint16_t uart_periph::fe_err

framing error counter

Definition at line 72 of file uart.h.

Referenced by uart_periph_init(), and usart_isr().

volatile uint16_t uart_periph::ne_err

noise error counter

Definition at line 71 of file uart.h.

Referenced by uart_periph_init(), and usart_isr().

volatile uint16_t uart_periph::ore

overrun error counter

Definition at line 70 of file uart.h.

Referenced by uart_periph_init(), and usart_isr().

uint8_t uart_periph::rx_buf[UART_RX_BUFFER_SIZE]

Receive buffer.

Definition at line 58 of file uart.h.

Referenced by uart_getch(), uart_handler(), uart_ISR(), and usart_isr().

uint16_t uart_periph::rx_extract_idx
uint16_t uart_periph::rx_insert_idx

Definition at line 59 of file uart.h.

Referenced by uart_char_available(), uart_handler(), uart_ISR(), uart_periph_init(), and usart_isr().

uint8_t uart_periph::tx_buf[UART_TX_BUFFER_SIZE]

Transmit buffer.

Definition at line 62 of file uart.h.

Referenced by uart_handler(), uart_ISR(), uart_transmit(), and usart_isr().

uint16_t uart_periph::tx_extract_idx
uint16_t uart_periph::tx_insert_idx
uint8_t uart_periph::tx_running

Definition at line 65 of file uart.h.

Referenced by uart_handler(), uart_ISR(), uart_periph_init(), uart_transmit(), and usart_isr().


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