31#define VRPN_ATMEL_VERBOSE
38#define VRPN_ATMEL_ERROR_READING_IN -21
39#define VRPN_ATMEL_ERROR_WRITING_DOWN -22
40#define VRPN_ATMEL_ERROR_OUT_OF_RANGE -23
41#define VRPN_ATMEL_ERROR_NOT_WRITABLE -24
43#define VRPN_ATMEL_MODE_RO 101
44#define VRPN_ATMEL_MODE_RW 102
45#define VRPN_ATMEL_MODE_WO 103
46#define VRPN_ATMEL_MODE_NA 104
48#define VRPN_ATMEL_STATUS_WAITING_FOR_CONNECTION 201
49#define VRPN_ATMEL_STATUS_RUNNING 202
50#define VRPN_ATMEL_STATUS_ERROR -200
52#define VRPN_ATMEL_CHANNEL_NOT_VALID -1
54#define VRPN_ATMEL_ALIVE_TIME_LOOK_SEC 3
55#define VRPN_ATMEL_ALIVE_TIME_LOOK_USEC 0
56#define VRPN_ATMEL_ALIVE_INTERVAL_SEC 1
64#include "vrpn_Analog.h"
65#include "vrpn_Analog_Output.h"
66#include "vrpn_Configure.h"
67#include "vrpn_Shared.h"
71#ifdef VRPN_ATMEL_SERIAL_VRPN
82 const char *port=
"/dev/ttyS0/",
long baud=9600,
84 int * channel_mode=NULL);
97 void init_channel_mode(
int * channel_mode);
100 bool mainloop_serial_io();
103 bool handle_new_connection();
106 bool Check_Serial_Alive();
115 struct timeval timestamp;
124 struct timeval _time_alive;
定义 vrpn_Analog_Output.h:56
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
vrpn_Serial: Pulls all the serial port routines into one file to make porting to new operating system...