7 #ifndef VRPN_TRACKER_LIBERTYHS_H 8 #define VRPN_TRACKER_LIBERTYHS_H 19 #if defined(VRPN_USE_LIBUSB_1_0) 22 static const vrpn_uint16 LIBERTYHS_VENDOR_ID = 0x0f44;
23 static const vrpn_uint16 LIBERTYHS_PRODUCT_ID = 0xff20;
26 static const vrpn_uint8 LIBERTYHS_WRITE_EP = 0x04;
27 static const vrpn_uint8 LIBERTYHS_READ_EP = 0x88;
51 long baud = 115200,
int enable_filtering = 1,
53 int receptoridx = 1,
const char *additional_reset_commands = NULL,
68 char add_reset_cmd[2048];
73 struct timeval liberty_zerotime;
74 struct timeval liberty_timestamp;
79 int set_sensor_output_format(
int sensor = -1);
82 int report_length(
int sensor);
85 int write_usb_data(
void* data,
int len);
91 int read_usb_data(
void* data,
int maxlen,
unsigned int timeout = 50);
94 void flush_usb_data();
100 int launch_markers();
const int vrpn_LIBERTYHS_MAX_WHOAMI_LEN
Generic connection class not specific to the transport mechanism.
virtual int get_report(void)=0
Gets reports if some are available, returns 0 if not, 1 if complete report(s).
virtual void reset(void)=0
Reset the tracker.
const int vrpn_LIBERTYHS_MAX_MARKERMAP_LEN
const int vrpn_LIBERTYHS_MAX_STATIONS