メインページ   モジュール   名前空間一覧   クラス階層   アルファベット順一覧   構成   ファイル一覧   構成メンバ   ファイルメンバ   関連ページ    

TCamacOutputRegisterModule.cc

解説を見る。
00001 // =====================================================================
00002 //  $Id: TCamacOutputRegisterModule.cc,v 1.4 2004/03/07 10:30:31 goiwai Exp $
00003 //  $Name: CLDAQ-1-14-03 $
00004 //  $Log: TCamacOutputRegisterModule.cc,v $
00005 //  Revision 1.4  2004/03/07 10:30:31  goiwai
00006 //  ROOTに組みこむためのおまじないマクロを埋めこみました。
00007 //  全てにおいて完全に動作するわけではありません。
00008 //
00009 //  Revision 1.3  2003/10/06 17:02:40  goiwai
00010 //  *** empty log message ***
00011 //
00012 //  Revision 1.2  2003/07/30 16:19:10  goiwai
00013 //  ファイルにコミットログをつけることにしました.
00014 //
00015 // =====================================================================
00016 #include "TCamacOutputRegisterModule.hh"
00017 #include "TDataSegment.hh"
00018 #include "TDataElement.hh"
00019 
00020 TCamacOutputRegisterModule::TCamacOutputRegisterModule( TCamacCrateController* cc7x00, Tint slot, Tdata_t datalen )
00021   : TCamacModule( cc7x00, slot, 0, datalen )
00022 {;}
00023 
00024 TCamacOutputRegisterModule::TCamacOutputRegisterModule( const TCamacOutputRegisterModule& right )
00025   : TCamacModule( right )
00026 {;}
00027 
00028 TCamacOutputRegisterModule::~TCamacOutputRegisterModule()
00029 {;}
00030 
00031 const TCamacOutputRegisterModule& TCamacOutputRegisterModule::operator=( const TCamacOutputRegisterModule& right )
00032 {
00033   *( (TCamacModule*)this ) = *( (TCamacModule*)(&right) );
00034   return *this;
00035 }
00036 
00037 Tbool TCamacOutputRegisterModule::operator==( const TCamacOutputRegisterModule& right ) const
00038 {
00039   return *( (TCamacModule*)this ) == *( (TCamacModule*)(&right) );
00040 }
00041 
00042 Tbool TCamacOutputRegisterModule::operator!=( const TCamacOutputRegisterModule& right ) const
00043 {
00044   return *( (TCamacModule*)this ) != *( (TCamacModule*)(&right) );
00045 }
00046 
00047 Tvoid TCamacOutputRegisterModule::FillData( TDataElement& element, Tint channel )
00048 {
00049   return;
00050 }
00051 
00052 Tint TCamacOutputRegisterModule::Pulse( Tint data )
00053 {
00054   theCamacData = data;
00055   return execute( 0, 17 );
00056 }
00057 
00058 Tint TCamacOutputRegisterModule::Level( Tint data )
00059 {
00060   theCamacData = data;
00061   return execute( 0, tCamacWrite );
00062 }
00063 
00064 #ifdef __CLDAQ_ROOT_DLL
00065     ClassImp(TCamacOutputRegisterModule)
00066 #endif


CLDAQ - a Class Library for DataAcQuisition (Version 1.14.3)
Go IWAI -- goiwai at users.sourceforge.jp