1#ifndef VRPN_CEREALBOX_H
2#define VRPN_CEREALBOX_H
4#include "vrpn_Analog.h"
5#include "vrpn_Button.h"
6#include "vrpn_Configure.h"
7#include "vrpn_Connection.h"
9#include "vrpn_Shared.h"
10#include "vrpn_Types.h"
18 const char * port,
int baud,
19 const int numbuttons,
const int numchannels,
const int numencoders);
33 unsigned _expected_chars;
34 unsigned char _buffer[512];
37 struct timeval timestamp;
39 virtual void clear_values(
void);
40 virtual int reset(
void);
41 virtual int get_report(
void);
45 (vrpn_uint32 class_of_service
46 = vrpn_CONNECTION_LOW_LATENCY);
49 (vrpn_uint32 class_of_service
50 = vrpn_CONNECTION_LOW_LATENCY);
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562