Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
serial_port.h File Reference
#include <termios.h>
+ Include dependency graph for serial_port.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SerialPort
 

Functions

struct SerialPortserial_port_new (void)
 
void serial_port_free (struct SerialPort *me)
 
void serial_port_flush (struct SerialPort *me)
 
void serial_port_flush_output (struct SerialPort *me)
 
int serial_port_open_raw (struct SerialPort *me, const char *device, speed_t speed)
 
int serial_port_open (struct SerialPort *me, const char *device, void(*term_conf_callback)(struct termios *, speed_t *))
 
void serial_port_close (struct SerialPort *me)
 
int serial_port_set_baudrate (struct SerialPort *me, speed_t speed)
 
int serial_port_set_bits_stop_parity (struct SerialPort *me, const int bits, const int stop, const int parity)
 

Data Structure Documentation

◆ SerialPort

struct SerialPort

Definition at line 29 of file serial_port.h.

+ Collaboration diagram for SerialPort:
Data Fields
struct termios cur_termios
int fd
struct termios orig_termios

Function Documentation

◆ serial_port_close()

void serial_port_close ( struct SerialPort me)
extern

Definition at line 184 of file serial_port.c.

References foo, TRACE, and TRACE_ERROR.

Referenced by uart_periph_open().

+ Here is the caller graph for this function:

◆ serial_port_flush()

void serial_port_flush ( struct SerialPort me)
extern

Definition at line 89 of file serial_port.c.

References foo, TRACE, and TRACE_ERROR.

Referenced by serial_port_open(), and serial_port_open_raw().

+ Here is the caller graph for this function:

◆ serial_port_flush_output()

void serial_port_flush_output ( struct SerialPort me)
extern

Definition at line 100 of file serial_port.c.

References foo, TRACE, and TRACE_ERROR.

◆ serial_port_free()

void serial_port_free ( struct SerialPort me)
extern

Definition at line 80 of file serial_port.c.

References foo.

Referenced by nps_hitl_impl_init(), and uart_periph_open().

+ Here is the caller graph for this function:

◆ serial_port_new()

struct SerialPort * serial_port_new ( void  )
extern

Definition at line 74 of file serial_port.c.

References foo.

Referenced by nps_hitl_impl_init(), and uart_periph_open().

+ Here is the caller graph for this function:

◆ serial_port_open()

int serial_port_open ( struct SerialPort me,
const char device,
void(*)(struct termios *, speed_t *)  term_conf_callback 
)
extern

Definition at line 153 of file serial_port.c.

References foo, serial_port_flush(), TRACE, and TRACE_ERROR.

+ Here is the call graph for this function:

◆ serial_port_open_raw()

int serial_port_open_raw ( struct SerialPort me,
const char device,
speed_t  speed 
)
extern

Definition at line 111 of file serial_port.c.

References foo, IUCLC, serial_port_flush(), TRACE, and TRACE_ERROR.

Referenced by nps_hitl_impl_init(), and uart_periph_open().

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

◆ serial_port_set_baudrate()

int serial_port_set_baudrate ( struct SerialPort me,
speed_t  speed 
)
extern

Definition at line 210 of file serial_port.c.

References foo, TRACE, and TRACE_ERROR.

Referenced by uart_periph_set_baudrate().

+ Here is the caller graph for this function:

◆ serial_port_set_bits_stop_parity()

int serial_port_set_bits_stop_parity ( struct SerialPort me,
const int  bits,
const int  stop,
const int  parity 
)
extern

Definition at line 224 of file serial_port.c.

References foo, TRACE, TRACE_ERROR, UBITS_7, UPARITY_EVEN, UPARITY_ODD, and USTOP_1.

Referenced by uart_periph_set_bits_stop_parity().

+ Here is the caller graph for this function: