Cat
DCU.h
Go to the documentation of this file.
1 // $Id: DCU.h,v 1.2 2006/03/16 17:03:41 fmachefe Exp $
2 #ifndef INCLUDE_DCU_H
3 #define INCLUDE_DCU_H 1
4 
5 // CATCore Include files
6 class IOobject ;
7 class SpecsI2c ;
8 
15 class DCU : public Element {
16 public:
17  typedef unsigned long U32;
18  typedef unsigned short U16;
19  typedef unsigned char U8;
20 
23  DCU( );
24 
27  ~DCU( );
28 
29  virtual bool cmdline(std::vector <std::string>);
30 
31  bool acquire( U8 , U16 & , double & ) ;
32 
33  void reset( ) ;
34 
35  void update () {};
36  void help() {};
37 
38  StatusCode init( ) ;
39 
40  bool setLIR( ) ;
41 
42  bool setHIR( ) ;
43 
44  bool readMode( U8 & mode ) ;
45 
46  bool convert( std::string & converted_value ,
47  U16 input_value ,
48  U8 channel ) ;
49 
50  U8 address() { return m_address; }
52 
53  U8 outputSelect() { return m_outputSelect; }
55 
56 protected:
57 
58 private:
59  U8 m_address;
61 };
62 #endif // INCLUDE_DCU_H
bool readMode(U8 &mode)
Definition: DCU.cpp:250
void setOutputSelect(U8 outputSelect)
Definition: DCU.h:54
bool setHIR()
Definition: DCU.cpp:220
void update()
Definition: DCU.h:35
bool acquire(U8, U16 &, double &)
Definition: DCU.cpp:98
void setAddress(U8 address)
Definition: DCU.h:51
void help()
Definition: DCU.h:36
unsigned char U8
Definition: DCU.h:19
U8 m_outputSelect
Definition: DCU.h:60
unsigned long U32
Definition: DCU.h:17
bool convert(std::string &converted_value, U16 input_value, U8 channel)
Definition: DCU.cpp:288
StatusCode init()
Definition: DCU.cpp:161
U8 outputSelect()
Definition: DCU.h:53
virtual bool cmdline(std::vector< std::string >)
DCU()
Constructor.
Definition: DCU.cpp:27
Definition: DCU.h:15
unsigned short U16
Definition: DCU.h:18
U8 address()
Definition: DCU.h:50
~DCU()
Destructor.
Definition: DCU.cpp:36
U8 m_address
Definition: DCU.h:59
bool setLIR()
Definition: DCU.cpp:190
void reset()
Definition: DCU.cpp:134