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
72#ifdef VRPN_ATMEL_SERIAL_VRPN
83 const char *port=
"/dev/ttyS0/",
long baud=9600,
85 int * channel_mode=NULL);
98 void init_channel_mode(
int * channel_mode);
101 bool mainloop_serial_io();
104 bool handle_new_connection();
107 bool Check_Serial_Alive();
116 struct timeval timestamp;
122 std::vector<int> _channel_mode;
125 struct timeval _time_alive;
virtual void mainloop()
For this server, the user must normally call report() or report_changes() directly....
Generic connection class not specific to the transport mechanism.
vrpn_Serial: Pulls all the serial port routines into one file to make porting to new operating system...