Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
serial_port.c File Reference
#include "serial_port.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+ Include dependency graph for serial_port.c:

Go to the source code of this file.

Macros

#define TRACE(type, fmt, args...)
 
#define TRACE_ERROR   1
 

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)
 

Macro Definition Documentation

#define TRACE (   type,
  fmt,
  args... 
)
#define TRACE_ERROR   1

Function Documentation

void serial_port_close ( struct SerialPort me)

Definition at line 111 of file serial_port.c.

References SerialPort::fd, SerialPort::orig_termios, TRACE, and TRACE_ERROR.

Referenced by uart_periph_set_baudrate().

+ Here is the caller graph for this function:

void serial_port_flush ( struct SerialPort me)

Definition at line 26 of file serial_port.c.

References SerialPort::fd, TRACE, and TRACE_ERROR.

Referenced by serial_port_open(), and serial_port_open_raw().

+ Here is the caller graph for this function:

void serial_port_flush_output ( struct SerialPort me)

Definition at line 36 of file serial_port.c.

References SerialPort::fd, TRACE, and TRACE_ERROR.

void serial_port_free ( struct SerialPort me)

Definition at line 21 of file serial_port.c.

Referenced by uart_periph_set_baudrate().

+ Here is the caller graph for this function:

struct SerialPort* serial_port_new ( void  )

Definition at line 16 of file serial_port.c.

Referenced by uart_periph_set_baudrate().

+ Here is the caller graph for this function:

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

Definition at line 81 of file serial_port.c.

References SerialPort::cur_termios, SerialPort::fd, SerialPort::orig_termios, serial_port_flush(), TRACE, and TRACE_ERROR.

+ Here is the call graph for this function:

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

Definition at line 46 of file serial_port.c.

References SerialPort::cur_termios, SerialPort::fd, SerialPort::orig_termios, serial_port_flush(), TRACE, and TRACE_ERROR.

Referenced by uart_periph_set_baudrate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: