Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
#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>
Go to the source code of this file.
Macros | |
#define | IUCLC 0 |
#define | TRACE(type, fmt, args...) |
#define | TRACE_ERROR 1 |
Functions | |
struct SerialPort * | serial_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) |
#define IUCLC 0 |
Definition at line 15 of file serial_port.c.
Referenced by serial_port_open_raw().
#define TRACE | ( | type, | |
fmt, | |||
args... | |||
) |
Definition at line 19 of file serial_port.c.
Referenced by serial_port_close(), serial_port_flush(), serial_port_flush_output(), serial_port_open(), and serial_port_open_raw().
#define TRACE_ERROR 1 |
Definition at line 20 of file serial_port.c.
Referenced by serial_port_close(), serial_port_flush(), serial_port_flush_output(), serial_port_open(), and serial_port_open_raw().
void serial_port_close | ( | struct SerialPort * | me | ) |
Definition at line 126 of file serial_port.c.
References SerialPort::fd, SerialPort::orig_termios, TRACE, and TRACE_ERROR.
Referenced by uart_periph_set_baudrate().
void serial_port_flush | ( | struct SerialPort * | me | ) |
Definition at line 34 of file serial_port.c.
References SerialPort::fd, TRACE, and TRACE_ERROR.
Referenced by serial_port_open(), and serial_port_open_raw().
void serial_port_flush_output | ( | struct SerialPort * | me | ) |
Definition at line 45 of file serial_port.c.
References SerialPort::fd, TRACE, and TRACE_ERROR.
void serial_port_free | ( | struct SerialPort * | me | ) |
Definition at line 28 of file serial_port.c.
Referenced by uart_periph_set_baudrate().
struct SerialPort* serial_port_new | ( | void | ) |
Definition at line 22 of file serial_port.c.
Referenced by uart_periph_set_baudrate().
int serial_port_open | ( | struct SerialPort * | me, |
const char * | device, | ||
void(*)(struct termios *, speed_t *) | term_conf_callback | ||
) |
Definition at line 95 of file serial_port.c.
References SerialPort::cur_termios, SerialPort::fd, SerialPort::orig_termios, serial_port_flush(), TRACE, and TRACE_ERROR.
int serial_port_open_raw | ( | struct SerialPort * | me, |
const char * | device, | ||
speed_t | speed | ||
) |
Definition at line 56 of file serial_port.c.
References SerialPort::cur_termios, SerialPort::fd, IUCLC, SerialPort::orig_termios, serial_port_flush(), TRACE, and TRACE_ERROR.
Referenced by uart_periph_set_baudrate().