29 virtual int reset(
void);
32 bool send_command(
unsigned char devicenum,
unsigned char cmd, vrpn_int32 data);
33 bool send_command(
unsigned char devnum,
unsigned char cmd,
unsigned char d0,
34 unsigned char d1,
unsigned char d2,
unsigned char d3);
vrpn_Analog_Output(const char *name, vrpn_Connection *c=NULL)
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
Send a report whether something has changed or not (for servers) Optionally, tell what time to stamp ...
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
Send a report only if something has changed (for servers) Optionally, tell what time to stamp the val...
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.
vrpn_Serial_Analog(const char *name, vrpn_Connection *connection, const char *port, int baud=9600, int bits=8, vrpn_SER_PARITY parity=vrpn_SER_PARITY_NONE, bool rts_flow=false)
vrpn_int32 convert_bytes_to_reading(const unsigned char *buf)
Convert the four bytes that have been read into a signed integer value.
static int VRPN_CALLBACK handle_request_message(void *userdata, vrpn_HANDLERPARAM p)
Responds to a request to change one of the values by setting the channel to that value.
static int VRPN_CALLBACK handle_request_channels_message(void *userdata, vrpn_HANDLERPARAM p)
Responds to a request to change multiple channels at once.
vrpn_Zaber(const char *name, vrpn_Connection *c, const char *port)
virtual int get_report(void)
unsigned char d_buffer[512]
static int VRPN_CALLBACK handle_connect_message(void *userdata, vrpn_HANDLERPARAM p)
Responds to a connection request with a report of the values.
struct timeval d_last_poll
bool send_command(unsigned char devicenum, unsigned char cmd, vrpn_int32 data)
unsigned d_expected_chars
This structure is what is passed to a vrpn_Connection message callback.
const vrpn_uint32 vrpn_CONNECTION_RELIABLE
Classes of service for messages, specify multiple by ORing them together Priority of satisfying these...