areaDetector  3-5-0
EPICS areaDetector framework
comportInterface.h
Go to the documentation of this file.
1 
11 /*
12  * Include files.
13  */
14 /*
15  * Double incluson protection.
16  */
17 #ifndef _comportInterface_H
18 #define _comportInterface_H
19 
20 /*
21  * Class for
22  */
23 
25  public:
26  virtual void open(void) = 0;
27  virtual void open(int baud, int parity, int nbits, int nstop) = 0;
28 
29  virtual void open(int baud, int parity, int nbits, int nstop,
30  int rdtimeout) = 0;
31 
32  virtual void write(unsigned char *buffer, int length) = 0;
33  virtual void read(unsigned char *buffer, int length) = 0;
34  virtual void write(unsigned char c) = 0;
35  virtual unsigned char read(void) = 0;
36  virtual void close(void) = 0;
37  virtual void flush(void) = 0;
38  virtual void clearPipe() = 0;
39  virtual void setPortName(char *n) = 0;
40 
41  virtual void wait(int us) = 0;
42 
43  // for timing things. call tic. toc returns time in s since last tic.
44  virtual void tic() = 0;
45  virtual double toc() = 0;
46 };
47 
48 #endif
virtual void clearPipe()=0
virtual void tic()=0
virtual unsigned char read(void)=0
Interface to a com port, on a grabber.
Definition: comportInterface.h:24
virtual void flush(void)=0
virtual void write(unsigned char *buffer, int length)=0
virtual void setPortName(char *n)=0
virtual double toc()=0
virtual void open(void)=0
virtual void wait(int us)=0
virtual void close(void)=0