OSDN Git Service

parallel port
[psychlops/cpp.git] / psychlops / extension / devices / psychlops_devices_parallelport.h
1 /*
2  *  psychlops_devices_nidaqmxbase.h
3  *  Psychlops Standard Library (Universal)
4  *
5  *  Last Modified 2009/07/30 by Kenchi HOSOKAWA
6  *  (C) 2009 Kenchi HOSOKAWA, Kazushi MARUYA, Takao SATO
7  */
8
9 #ifndef HEADER_PSYCHLOPS_DEVICES_PARALLELPORT
10 #define HEADER_PSYCHLOPS_DEVICES_PARALLELPORT
11
12 #include "../../core/devices/psychlops_io_analog.h"
13
14 namespace Psychlops {
15
16 namespace Devices {
17 \r
18 \r
19         class GenericParallelPort : public ITrigger\r
20         {\r
21                 enum PIN { D0=1, D1=2, D2=4, D3=8, D4=16, D5=32, D6=64, D7=-128 };\r
22                 char pins;\r
23                 void * handle;\r
24 \r
25                 public:\r
26                 GenericParallelPort(size_t pin);\r
27                 virtual ~GenericParallelPort();
28                 virtual double getLatency();
29                 virtual double getJitterSD();
30                 virtual Interval getRange();
31                 virtual bool isAnalog();
32
33                 virtual double get();
34                 virtual void put(double);
35                 virtual void pulse(double);
36                 virtual void keep(double);\r
37         };
38
39 }
40
41 }       /*      <- namespace Psycholops         */
42
43
44
45 #endif