1#ifndef VRPN_NIKON_CONTROLS_H
2#define VRPN_NIKON_CONTROLS_H
6#include "vrpn_Analog.h"
7#include "vrpn_Analog_Output.h"
8#include "vrpn_Configure.h"
9#include "vrpn_Connection.h"
10#include "vrpn_Shared.h"
11#include "vrpn_Types.h"
23 unsigned char _buffer[512];
26 double _requested_focus;
28 struct timeval timestamp;
29 struct timeval last_poll;
31 virtual int reset(
void);
32 virtual int get_report(
void);
33 virtual int set_channel(
unsigned chan_num, vrpn_float64 value);
36 virtual void report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
39 virtual void report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
定义 vrpn_Analog_Output.h:26
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_nikon_controls.h:13
static int VRPN_CALLBACK handle_request_message(void *userdata, vrpn_HANDLERPARAM p)
static int VRPN_CALLBACK handle_request_channels_message(void *userdata, vrpn_HANDLERPARAM p)
Responds to a request to change multiple channels at once.
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
Send values whether or not they have changed.
static int VRPN_CALLBACK handle_connect_message(void *userdata, vrpn_HANDLERPARAM p)
Responds to a connection request with a report of the values
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
Send changes since the last time
This structure is what is passed to a vrpn_Connection message callback.
定义 vrpn_Connection.h:41