Paparazzi UAS  v5.15_devel-109-gee85905
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
serial.h File Reference
#include "std.h"
+ Include dependency graph for serial.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ttyUSB0Transmit(_char)
 
#define ttyUSB0Getch()   ({char c;int ret=read(fd, &c,1);c;})
 

Functions

int serial_init (char *port_name)
 
static int ttyUSB0ChAvailable (void)
 

Variables

int fd
 

Macro Definition Documentation

#define ttyUSB0Getch ( )    ({char c;int ret=read(fd, &c,1);c;})

Definition at line 20 of file serial.h.

#define ttyUSB0Transmit (   _char)
Value:
{ \
char c = _char; \
int __attribute__((unused)) ret = write(fd,&c,1); \
}
int fd
Definition: serial.c:26

Definition at line 14 of file serial.h.

Function Documentation

int serial_init ( char *  port_name)

Definition at line 28 of file serial.c.

References B115200, and fd.

Referenced by digital_cam_uart_init(), and main().

+ Here is the caller graph for this function:

static int ttyUSB0ChAvailable ( void  )
inlinestatic

Definition at line 9 of file serial.h.

Variable Documentation