1#ifndef VRPN_OMEGATEMPERATURE_H
2#define VRPN_OMEGATEMPERATURE_H
8#include "vrpn_Analog.h"
9#include "vrpn_Analog_Output.h"
10#include "vrpn_Button.h"
11#include "vrpn_Configure.h"
12#include "vrpn_Connection.h"
13#include "vrpn_Shared.h"
14#include "vrpn_Types.h"
34#if defined(VRPN_USE_MODBUS) && defined(VRPN_USE_WINSOCK2)
44 const char * port,
float temp1,
float temp2,
46 ~vrpn_OmegaTemperature () {};
56 struct timeval timestamp;
58 virtual int reset(
void);
59 virtual int get_report(
void);
62 bool set_reference_temperature(
unsigned channel,
float value);
63 bool set_control_status(
bool on);
64 bool request_temperature(
unsigned channel);
69 bool set_specified_channel(
unsigned channel, vrpn_float64 value);
73 unsigned d_next_channel_to_read;
75 float convert_bytes_to_reading(
const char *buf);
79 (vrpn_uint32 class_of_service = vrpn_CONNECTION_RELIABLE);
82 (vrpn_uint32 class_of_service = vrpn_CONNECTION_RELIABLE);
86 static int VRPN_CALLBACK handle_request_message(
void *userdata,
vrpn_HANDLERPARAM p);
89 static int VRPN_CALLBACK handle_request_channels_message(
void *userdata,
vrpn_HANDLERPARAM p);
92 static int VRPN_CALLBACK handle_connect_message(
void *userdata,
vrpn_HANDLERPARAM p);
定义 vrpn_Analog_Output.h:26
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)
virtual void mainloop()=0
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
This structure is what is passed to a vrpn_Connection message callback.
定义 vrpn_Connection.h:41