The VisAO Camera
framegrabber47.h
Go to the documentation of this file.
1 /************************************************************
2 * framegrabber47.h
3 *
4 * Author: Jared R. Males (jrmales@email.arizona.edu)
5 *
6 * Declarations for a class to manage the EDT PCI framegrabber for the CCD47.
7 *
8 * Developed as part of the Magellan Adaptive Optics system.
9 ************************************************************/
10 
11 /** \file framegrabber47.h
12  * \author Jared R. Males
13  * \brief Declarations for a class to manage the EDT PCI framegrabber for the CCD47.
14  *
15  *
16 */
17 
18 #ifndef __framegrabber47_h__
19 #define __framegrabber47_h__
20 
21 #include "framegrabber.h"
22 
23 #include "edtinc.h"
24 
25 namespace VisAO
26 {
27 
28 ///The framegrabber specialization for the CCD47.
29 /** This class provides the CCD47 framegrabber which writes to a sharedim_stack.
30  * Manages the EDT PCI DVI framegrabber card.
31  *
32  * In addition to the \ref framegrabber config file options, has:
33  * - <b>num_bufs</b> <tt>int</tt> [4] - the number of DMA buffers allocated by the EDT driver
34  *
35  * See \ref VisAOApp_standalone for command line arguments. There are no additional command line arguments for
36  * a basic framegrabber, though derived clases may add them.
37  *
38  * See \ref framegrabber for the commands accepted by this class.
39  *
40  */
41 class framegrabber47 : public framegrabber<short>
42 {
43  public:
44  framegrabber47(int argc, char **argv) throw (AOException);
45  framegrabber47(std::string name, const std::string &conffile) throw (AOException);
46 
47  protected:
48  void init_framegrabber47();
49 
50  char edt_devname[128];//= '\0';
51  int channel;// = 0;
52  int unit;// = 0;
53  PdvDev *pdv_p;
54 
55  int num_bufs;// = 4;
56 
57  char *cameratype;
58 
59  int overrun;
60  int overruns;//=0;
61  int timeouts;
62  int last_timeouts;// = 0;
63 
64  int recovering_timeout;// = FALSE;
65 
66  int frameCtr;
67 
68  public:
69  virtual int start_framegrabber();
70  virtual int stop_framegrabber();
71 
72 };
73 
74 } //namespace VisAO
75 
76 #endif //__framegrabber47_h__
virtual int stop_framegrabber()
Override this: framegrabber clean up.
Declarations and definitions for a template class to manage a generic framegrabber.
The framegrabber specialization for the CCD47.
The basic VisAO framegrabber.
Definition: framegrabber.h:78
The namespace of VisAO software.
virtual int start_framegrabber()
Override this: it is where your framegrabber should do all its work. Check for !STOP_FRAMEGRABBER and...