Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
uart.c File Reference
Include dependency graph for uart.c:

Go to the source code of this file.

Functions

static UNUSED void send_uartx_err (struct transport_tx *trans, struct link_device *dev, struct uart_periph *uart)
static void send_uart_err (struct transport_tx *trans, struct link_device *dev)
void uart_periph_init (struct uart_periph *p)
int WEAK uart_check_free_space (struct uart_periph *p, long *fd, uint16_t len)
void WEAK uart_put_buffer (struct uart_periph *p, long fd, const uint8_t *data, uint16_t len)
void WEAK uart_send_message (struct uart_periph *p, long fd)
uint8_t WEAK uart_getch (struct uart_periph *p)
int WEAK uart_char_available (struct uart_periph *p)
 Check UART for available chars in receive buffer.
void WEAK uart_arch_init (void)
void WEAK uart_periph_invert_data_logic (struct uart_periph *p, bool invert_rx, bool invert_tx)

Function Documentation

◆ send_uart_err()

void send_uart_err ( struct transport_tx * trans,
struct link_device * dev )
static

Definition at line 76 of file uart.c.

References dev, and send_uartx_err().

Referenced by uart_periph_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ send_uartx_err()

UNUSED void send_uartx_err ( struct transport_tx * trans,
struct link_device * dev,
struct uart_periph * uart )
static

Definition at line 28 of file uart.c.

References dev, uart_periph::fe_err, uart_periph::ne_err, uart_periph::ore, and UNUSED.

Referenced by send_uart_err().

Here is the caller graph for this function:

◆ uart_arch_init()

void WEAK uart_arch_init ( void )

Definition at line 190 of file uart.c.

◆ uart_char_available()

int WEAK uart_char_available ( struct uart_periph * p)

Check UART for available chars in receive buffer.

Returns
number of chars in the buffer

Definition at line 181 of file uart.c.

References p, and UART_RX_BUFFER_SIZE.

◆ uart_check_free_space()

int WEAK uart_check_free_space ( struct uart_periph * p,
long * fd,
uint16_t len )

Definition at line 151 of file uart.c.

References fd, p, and UART_TX_BUFFER_SIZE.

Referenced by uart_periph_init().

Here is the caller graph for this function:

◆ uart_getch()

uint8_t WEAK uart_getch ( struct uart_periph * p)

Definition at line 174 of file uart.c.

References p, and UART_RX_BUFFER_SIZE.

◆ uart_periph_init()

void uart_periph_init ( struct uart_periph * p)

◆ uart_periph_invert_data_logic()

void WEAK uart_periph_invert_data_logic ( struct uart_periph * p,
bool invert_rx,
bool invert_tx )

Definition at line 194 of file uart.c.

References p.

Referenced by actuators_sbus_init(), and sbus_common_init().

Here is the caller graph for this function:

◆ uart_put_buffer()

void WEAK uart_put_buffer ( struct uart_periph * p,
long fd,
const uint8_t * data,
uint16_t len )

Definition at line 161 of file uart.c.

References fd, p, and uart_put_byte().

Referenced by actuators_ostrich_periodic(), if(), nmea_send(), pdec_send_frame(), send_message(), sts3032_event(), and uart_periph_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uart_send_message()

void WEAK uart_send_message ( struct uart_periph * p,
long fd )

Definition at line 170 of file uart.c.

References fd, and p.

Referenced by faulhaber_send_command(), and uart_periph_init().

Here is the caller graph for this function: