Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ ttyUSB0Getch

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

Definition at line 20 of file serial.h.

◆ ttyUSB0Transmit

#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

◆ serial_init()

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:

◆ ttyUSB0ChAvailable()

static int ttyUSB0ChAvailable ( void  )
inlinestatic

Definition at line 9 of file serial.h.

Variable Documentation

◆ fd