00001 // ===================================================================== 00002 // $Id: TSoftwareFlashAdcModule.hh,v 1.1.1.1 2003/06/27 02:56:41 goiwai Exp $ 00003 // $Name: CLDAQ-1-06-00 $ 00004 // ===================================================================== 00005 #ifndef __TSOFTWAREFLASHADCMODULE_HH 00006 #define __TSOFTWAREFLASHADCMODULE_HH 00007 00008 #include "Tglobals.h" 00009 #include "TSoftwareModule.hh" 00010 00011 class TDataSegment; 00012 class TDataElement; 00013 00014 class TSoftwareFlashAdcModule 00015 : public TSoftwareModule 00016 { 00017 00018 private: 00019 enum { tDefaultSampling = 62500 }; 00020 enum { tDefaultChannel = 1 }; 00021 00022 private: 00023 Tint theNumberOfSampling; 00024 00025 public: 00026 TSoftwareFlashAdcModule( Tint nchannel = tDefaultChannel, Tint nsampling = tDefaultSampling ); 00027 TSoftwareFlashAdcModule( const TSoftwareFlashAdcModule& right ); 00028 ~TSoftwareFlashAdcModule(); 00029 00030 public: 00031 Tint Clear(); 00032 Tint Update(); 00033 Tint Initialize(); 00034 Tvoid FillData( TDataElement& element, Tint channel ); 00035 00036 public: 00037 const TSoftwareFlashAdcModule& operator=( const TSoftwareFlashAdcModule& right ); 00038 Tbool operator==( const TSoftwareFlashAdcModule& right ) const; 00039 Tbool operator!=( const TSoftwareFlashAdcModule& right ) const; 00040 00041 public: 00042 Tint GetNumberOfSampling() const; 00043 Tvoid SetNumberOfSampling( Tint nsampling ); 00044 00045 protected: 00046 Tvoid setParameters(); 00047 Tvoid fillValue(); 00048 00049 }; 00050 00051 inline Tint TSoftwareFlashAdcModule::GetNumberOfSampling() const 00052 { 00053 return( theNumberOfSampling ); 00054 } 00055 00056 inline Tvoid TSoftwareFlashAdcModule::SetNumberOfSampling( Tint nsampling ) 00057 { 00058 theNumberOfSampling = nsampling; 00059 return; 00060 } 00061 00062 #endif