vrpn 07.35
Virtual Reality Peripheral Network
 
Loading...
Searching...
No Matches
vrpn_ADBox.h
Go to the documentation of this file.
1// -*- Mode:C++ -*-
2
3/*
4 * ad-box driver
5 * works with Fraunhofer IMK AD-Box and Fakespace Cubic Mouse
6 *
7 * for additional information see:
8 * http://www.imk.fraunhofer.de
9 * http://www.fakespace.com
10 *
11 * written by Sascha Scholz <sascha.scholz@imk.fraunhofer.de>
12 */
13
14#ifndef VRPN_ADBOX_H
15#define VRPN_ADBOX_H
16
17#include "vrpn_Analog.h" // for vrpn_Analog
18#include "vrpn_Button.h" // for VRPN_BUTTON_BUF_SIZE, etc
19#include "vrpn_Configure.h" // for VRPN_API
20#include "vrpn_Shared.h" // for timeval
21
23
25
26 public:
27 vrpn_ADBox(char* name, vrpn_Connection *c,
28 const char *port="/dev/ttyS1/", long baud=9600);
29
31
32 void mainloop();
33
34 private:
35 int ready;
36
37 struct timeval timestamp; // time of the last report from the device
38
39 int serial_fd;
40 unsigned char buffer[VRPN_BUTTON_BUF_SIZE];
41
42 int iNumBytes;
43 int iNumDigBytes;
44 int iFilter[8][30];
45 int iFilterPos;
46};
47
48#endif // #ifndef VRPN_ADBOX
vrpn_ADBox(char *name, vrpn_Connection *c, const char *port="/dev/ttyS1/", long baud=9600)
Definition vrpn_ADBox.C:22
vrpn_Analog(const char *name, vrpn_Connection *c=NULL)
Definition vrpn_Analog.C:14
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Button_Filter(const char *, vrpn_Connection *c=NULL)
Generic connection class not specific to the transport mechanism.
class VRPN_API vrpn_Connection
Definition vrpn_ADBox.h:22
const int VRPN_BUTTON_BUF_SIZE
Definition vrpn_Button.h:14
#define VRPN_API