Paparazzi UAS  v5.18.0_stable
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); \
}

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

c
VIC slots used for the LPC2148 define name e g gps UART1_VIC_SLOT e g modem SPI1_VIC_SLOT SPI1 in mcu_periph spi_arch c or spi_slave_hs_arch c(and some others not using the SPI peripheral yet..) I2C0_VIC_SLOT 8 mcu_periph/i2c_arch.c I2C1_VIC_SLOT 9 mcu_periph/i2c_arch.c USB_VIC_SLOT 10 usb
fd
int fd
Definition: serial.c:26