QBessel.hh

00001  /*
00002  * APOLLO: A complete DAQ and Online Data Analysis Framework for Cuore
00003  * 
00004  * A.Giachero created 06/03/07 - <Andrea.Giachero@ge.infn.it> 
00005  * 
00006  $ $Id: QFrontEnd.hh 261 2007-03-06 13:38:31Z giachero $
00007  * $Revision: 261 $
00008  *
00009  * Class QFrontEnd: commands for "setting" and "getting" Front-End Boards 
00010  *                          
00011  *
00012  */
00013 
00014 
00015 #ifndef _QBESSEL_HH_
00016 #define _QBESSEL_HH_
00017 
00018 
00019 
00020 // Apollo Includs
00021 #include "QBaseEleDevice.hh"
00022 
00023 
00024 class QBSChannel;
00025 class QEleBaseInterface;
00026 
00027 class QBessel: public QBaseEleDevice {
00028 public:
00029   
00030   // ctor
00031   QBessel(QEleBaseInterface* IFace, QSlowTypes::QSlowMode_t Mode, 
00032           std::map<unsigned short,QDaqChannel>& Channels);
00033 
00034   // dtor
00035   virtual ~QBessel();
00036 
00037   // Commands by Logical Channel
00038   virtual const QError& SetInt (int Id, unsigned int Value,const std::string& What, QAddressing_t Add);
00039   virtual const QError& GetInt (int Id, unsigned int &Value, const std::string& What, QAddressing_t Add);
00040   virtual const QError& GetString(int Id, std::string& Text, const std::string& What, QAddressing_t Add);
00041   virtual const QError& Start    (int lg, const std::string& What, QAddressing_t Add) {return fErr->GetQError();}
00042 
00043 
00044   // The same by physical Channel
00045   virtual const QError& SetInt(int BSCrate, int BSBoard, int BSChannel, 
00046                                  unsigned int Value, const std::string& What); 
00047   virtual const QError& GetInt(int BSCrate, int BSBoard, int BSChannel, 
00048                                  unsigned int& Value, const std::string& What);  
00049   virtual const QError& Start   (int BSCrate, int BSBoard, int BEChannel, 
00050                                  const std::string& What) {return fErr->GetQError();}
00051 
00052 protected:
00053 
00054 
00055   // Set parameter (value) on the hardware
00056   const QError& HDSetValue(QEleChannel* Ch, size_t Value, const std::string& What);
00057 
00058   // Get parameter (value) from the harware
00059   const QError& HDGetValue(QEleChannel* Ch, size_t& Value, const std::string& What);
00060   
00061   
00062 private:
00063   
00064 
00065   
00066   
00067 };
00068 
00069 #endif // _QBESSEL_HH_

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1