EigerInterface.h 2.54 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//###########################################################################
// This file is part of LImA, a Library for Image Acquisition
//
// Copyright (C) : 2009-2014
// European Synchrotron Radiation Facility
// BP 220, Grenoble 38043
// FRANCE
//
// This is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This software is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>.
//###########################################################################
#ifndef EIGERINTERFACE_H
#define EIGERINTERFACE_H

#include "EigerCompatibility.h"
26
#include "lima/HwInterface.h"
27
28
29
30
31
32
33
34
35
/*#include "EigerCamera.h"
#include "EigerDetInfoCtrlObj.h"
#include "EigerSyncCtrlObj.h"*/

namespace lima
{
    namespace Eiger
    {

36
37
38
      class DetInfoCtrlObj;
      class SyncCtrlObj;
      class SavingCtrlObj;
39
      class EventCtrlObj;
40
      class Camera;
Sebastien Petitdemange's avatar
Sebastien Petitdemange committed
41
      class Stream;
42
      class StreamInfo;
Sebastien Petitdemange's avatar
Sebastien Petitdemange committed
43
      class Decompress;
44

45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
	/*******************************************************************
	* \class Interface
	* \brief Eiger hardware interface
	*******************************************************************/
	class LIBEIGER Interface : public HwInterface
	{
	DEB_CLASS_NAMESPC(DebModCamera, "EigerInterface", "Eiger");

	public:
	    Interface(Camera& cam);
	    virtual ~Interface();

	    //- From HwInterface
	    virtual void    getCapList(CapList&) const;
	    virtual void    reset(ResetLevel reset_level);
	    virtual void    prepareAcq();
	    virtual void    startAcq();
	    virtual void    stopAcq();
	    virtual void    getStatus(StatusType& status);
	    virtual int     getNbHwAcquiredFrames();
    
		//! get the camera object to access it directly from client
		Camera& getCamera() { return m_cam;}

69
70
	    void getLastStreamInfo(StreamInfo& info);

71
72
73
74
75
	private:
	    Camera&         m_cam;
	    CapList         m_cap_list;
	    DetInfoCtrlObj* m_det_info;
	    SyncCtrlObj*    m_sync;
76
	    SavingCtrlObj*  m_saving;
77
	    EventCtrlObj*   m_event;
Sebastien Petitdemange's avatar
Sebastien Petitdemange committed
78
79
	    Stream*	    m_stream;
	    Decompress*	    m_decompress;
80
81
82
83
84
85
	};

    } // namespace Eiger
} // namespace lima

#endif // EigerINTERFACE_H