areaDetector  3-5-0
EPICS areaDetector framework
grabberInterface.h
Go to the documentation of this file.
1 
9 #ifndef _grabberInterface_H
10 #define _grabberInterface_H
11 
12 
14 {
15 // Construction
16 public:
17  enum
18  {
22  };
23 
24  virtual int getGrabberType()=0;
25 
26  virtual void GetSignalStatus()=0;
27 
28  virtual bool CreateObjects()=0;
29  virtual bool DestroyObjects()=0;
30  virtual bool DestroyObjectsNoDelete()=0;
31 
32  virtual bool initialize(int size_x, int size_y)=0;
33  // use to override the image size in the ccf file.
34  virtual bool initialize(int size_x, int size_y,bool is_force_size)=0;
35  virtual void setConfigFileName(char *name)=0;
36  // set CC pins on the card.
37  virtual void setPin(char* pinstr, int val)=0;
38  virtual void snap()=0;
39  virtual void grab()=0;
40  virtual void freeze()=0;
41  virtual void abort()=0;
42  virtual bool isFrameAvailable(void)=0;
43  virtual bool getFrame(void *mem_ptr)=0;
44  virtual bool getFrame(void *mem_ptr, unsigned int *grabberInterface_timestamp)=0;
45  virtual bool getFrame(void *copy_memory,unsigned int *coreco_timestamp,int nbytes)=0;
46 
47  virtual bool isMissedFrame(void)=0;
48  virtual void clearMissedFrames(void)=0;
49  virtual long getTotalMissedFrames(void)=0;
50  virtual long getRecentMissedFrames(void)=0;
51  virtual void setNumBuffers(int b)=0;
52  virtual void makeView(void)=0;
53  virtual void setCamController(void* cc)=0;
54  virtual int getWidth(void) =0;
55  virtual int getHeight(void) =0;
56 
57  virtual void setDoubleWidth(int isdw)=0;
58 
59  // clears any images left in buffer memory by resetting all counters to 0
60  virtual void resetBufferCount(void)=0;
61 
62  virtual int getNumFreeBuffers(void)=0;
63  virtual int getNumBuffers(void)=0;
64  //inc missed frames counter
65  virtual void incMissedFrames(void)=0;
66 
67 
68 };
69 
70 
71 #endif
virtual void grab()=0
virtual int getGrabberType()=0
virtual void snap()=0
Virtual class to represent any vendor frame grabber.
Definition: grabberInterface.h:13
virtual int getHeight(void)=0
virtual void setConfigFileName(char *name)=0
name
Definition: makeDbAndEdl.py:232
virtual long getRecentMissedFrames(void)=0
virtual void setCamController(void *cc)=0
virtual bool DestroyObjects()=0
virtual long getTotalMissedFrames(void)=0
virtual bool isMissedFrame(void)=0
Definition: grabberInterface.h:21
virtual void resetBufferCount(void)=0
virtual bool DestroyObjectsNoDelete()=0
virtual void clearMissedFrames(void)=0
virtual int getNumBuffers(void)=0
virtual int getNumFreeBuffers(void)=0
virtual bool getFrame(void *mem_ptr)=0
Definition: grabberInterface.h:20
virtual bool CreateObjects()=0
virtual void setNumBuffers(int b)=0
virtual void incMissedFrames(void)=0
virtual void setDoubleWidth(int isdw)=0
virtual void GetSignalStatus()=0
virtual int getWidth(void)=0
virtual void freeze()=0
virtual bool initialize(int size_x, int size_y)=0
Definition: grabberInterface.h:19
virtual bool isFrameAvailable(void)=0
virtual void abort()=0
virtual void setPin(char *pinstr, int val)=0
virtual void makeView(void)=0