Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

vrpn_nikon_controls.h

This is the verbatim text of the vrpn_nikon_controls.h include file.
#include  "vrpn_Analog.h"
#include  "vrpn_Analog_Output.h"

class vrpn_Nikon_Controls : public vrpn_Serial_Analog, public vrpn_Analog_Output {
public:
  vrpn_Nikon_Controls(const char *device_name, vrpn_Connection *con = NULL, const char *port_name = "com1");
  ~vrpn_Nikon_Controls(void) {};

  virtual void mainloop ();

protected:
  int _status;

  unsigned char _buffer[512]; //< Buffer of characters in report
  int _bufcount;              //< How many characters we have so far

  double  _requested_focus;   //< Where we asked the focus to be set to

  struct timeval timestamp;   //< Time of the last report from the device

  virtual int reset(void);              //< Set device back to starting config
  virtual int get_report(void);         //< Try to read a report from the device

  virtual void report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);

  virtual void report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);

  static int handle_request_message(void *userdata, vrpn_HANDLERPARAM p);

  static int handle_connect_message(void *userdata, vrpn_HANDLERPARAM p);

};


Generated at Fri Sep 13 15:04:18 2002 for vrpn by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999