Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
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()

Functions

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

Variables

int fd

Macro Definition Documentation

◆ ttyUSB0Getch

#define ttyUSB0Getch ( )
Value:
({char c;int ret=read(fd, &c,1);c;})
int fd
Definition serial.c:26

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.

◆ ttyUSB0ChAvailable()

int ttyUSB0ChAvailable ( void )
inlinestatic

Definition at line 9 of file serial.h.

Variable Documentation

◆ fd

int fd
extern

Definition at line 26 of file serial.c.

Referenced by _isatty_r(), adc_read(), avi_isp_get_offsets_fd(), check_contiguity(), check_free_space(), dev_send(), dev_transmit(), dev_transmit_buffer(), flight_recorder_log_msg_up(), flushWriteByteBuffer(), frsky_x_serial_check_free_space(), frsky_x_serial_put_buffer(), frsky_x_serial_put_byte(), frsky_x_serial_send_message(), gps_i2c_check_free_space(), gps_i2c_msg_ready(), gps_i2c_put_buffer(), gps_i2c_put_byte(), i2c_thread(), IN_SDMMC_DMA_SECTION(), logger_log_msg_up(), main(), nmea_configure(), open_isp_fd(), pdec_send_frame(), pipe_check_free_space(), pipe_put_buffer(), pipe_put_byte(), pipe_send_message(), pipe_send_raw(), pipe_thread(), put_buffer(), put_byte(), rng_get(), sdlog_check_free_space(), sdlog_check_free_space(), sdlog_file(), sdlog_open(), sdlog_put_buffer(), sdlog_put_byte(), sdlog_send(), sdlog_send(), sdlog_transmit(), sdlog_transmit_buffer(), sdlog_write(), sdLogFlushLog(), sdLogWriteByte(), sdLogWriteLog(), sdLogWriteRaw(), send_message(), serial_init(), spi0_arch_init(), spi1_arch_init(), spi_submit(), superbitrf_check_free_space(), superbitrf_send(), superbitrf_transmit(), superbitrf_transmit_buffer(), sys_time_thread_main(), syslink_check_free_space(), syslink_put_buffer(), syslink_put_byte(), syslink_send_message(), true_function(), tunnel_uavcan_check_free_space(), tunnel_uavcan_put_buffer(), tunnel_uavcan_put_byte(), tunnel_uavcan_send_message(), uart_check_free_space(), uart_periph_set_mode(), uart_put_buffer(), uart_put_byte(), uart_receive_handler(), uart_send_message(), uart_thread(), udp_check_free_space(), udp_put_buffer(), udp_put_byte(), udp_send_message(), udp_send_raw(), udp_thread(), v4l2_init(), v4l2_init_subdev(), virt2phys(), write_file(), and write_sysfs_int().