#include "config.h"
#include <pthread.h>
#include <string>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <stdio.h>
#include <stdlib.h>
#include <sys/param.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <signal.h>
#include "link.h"
#include "mp_serial.h"
#include "ncp_log.h"
#include "packet.h"
Go to the source code of this file.
◆ BAUD_TABLE_SIZE
| #define BAUD_TABLE_SIZE (sizeof(baud_table) / sizeof(int)) |
◆ BUFLEN
◆ BUFMASK
◆ hasData
| #define hasData |
( |
|
dir | ) |
(dir##Write != dir##Read) |
◆ hasSpace
| #define hasSpace |
( |
|
dir | ) |
(((dir##Write + 1) & BUFMASK) != dir##Read) |
◆ inc1
| #define inc1 |
( |
|
idx | ) |
inca(idx, 1) |
◆ inca
| #define inca |
( |
|
idx, |
|
|
|
amount |
|
) |
| |
◆ normalize
| #define normalize |
( |
|
idx | ) |
do { idx &= BUFMASK; } while (0) |
◆ pump_run()
| static void * pump_run |
( |
void * |
arg | ) |
|
|
static |
◆ usr1handler()
| static void usr1handler |
( |
int |
sig | ) |
|
|
static |
Signal handler does nothing.
It just exists for having the select() below return an interrupted system call.
Definition at line 63 of file packet.cc.
◆ baud_table
Initial value:= {
115200,
57600,
38400,
19200,
9600,
}
Definition at line 150 of file packet.cc.
◆ pumpverbose
| unsigned short pumpverbose = 0 |
|
static |