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

TVmeModule.hh

解説を見る。
00001 // =====================================================================
00002 //  $Id: TVmeModule.hh,v 1.2 2003/07/30 16:19:12 goiwai Exp $
00003 //  $Name: CLDAQ-1-08-00 $
00004 //
00005 //  $Log: TVmeModule.hh,v $
00006 //  Revision 1.2  2003/07/30 16:19:12  goiwai
00007 //  ファイルにコミットログをつけることにしました.
00008 //
00009 // =====================================================================
00010 #ifndef __TVMEMODULE_HH
00011 #define __TVMEMODULE_HH
00012 
00013 #include "Tglobals.h"
00014 #include "TModule.hh"
00015 
00016 class TVmeModule
00017   : public TModule
00018 {
00019 
00020   protected:
00021     Tsize_t theMappedSize;
00022     TvmeTransfer_t theTransferMode;
00023     Tint theFileDescriptor;
00024     Tcaddr_t theBaseAddress;
00025     Toff_t theOffsetAddress;
00026 
00027   public:
00028     TVmeModule( Tint nch, Toff_t offset, Tint mapsize, TvmeTransfer_t mode );
00029     TVmeModule( const TVmeModule& right );
00030 
00031   protected:
00032     virtual ~TVmeModule();
00033 
00034   public:
00035     virtual const TVmeModule& operator=( const TVmeModule& right );
00036     virtual Tbool operator==( const TVmeModule& right ) const;
00037     virtual Tbool operator!=( const TVmeModule& right ) const;
00038 
00039   public:
00040     Tsize_t GetMappedSize() const;
00041     TvmeTransfer_t GetTransferMode() const;
00042     Tint GetFileDescriptor() const;
00043     Tcaddr_t GetBaseAddress() const;
00044     Toff_t GetOffsetAddress() const;
00045     Tvoid SetMappedSize( Tsize_t mapsize );
00046     Tvoid SetTransferMode( TvmeTransfer_t mode );
00047     Tvoid SetFileDescriptor( Tint fd );
00048     Tvoid SetBaseAddress( Tcaddr_t address );
00049     Tvoid SetOffsetAddress( Toff_t offset );
00050 
00051   protected:
00052     Tvoid showBit( TUshort data, const Tstring comment = "" ) const;
00053     Tvoid setBit( TUshort* ptr, Tint nbit, Tbit bit );
00054     Tbit getBit( TUshort* ptr, Tint nbit ) const;
00055 
00056 };
00057 
00058 inline Tsize_t TVmeModule::GetMappedSize() const
00059 {
00060   return( theMappedSize );
00061 }
00062 
00063 inline TvmeTransfer_t TVmeModule::GetTransferMode() const
00064 {
00065   return( theTransferMode );
00066 }
00067 
00068 inline Tint TVmeModule::GetFileDescriptor() const
00069 {
00070   return( theFileDescriptor );
00071 }
00072 
00073 inline Tcaddr_t TVmeModule::GetBaseAddress() const
00074 {
00075   return( theBaseAddress );
00076 }
00077 
00078 inline Toff_t TVmeModule::GetOffsetAddress() const
00079 {
00080   return( theOffsetAddress );
00081 }
00082 
00083 inline Tvoid TVmeModule::SetMappedSize( Tsize_t mapsize )
00084 {
00085   theMappedSize = mapsize;
00086   return;
00087 }
00088 
00089 inline Tvoid TVmeModule::SetTransferMode( TvmeTransfer_t mode )
00090 {
00091   theTransferMode = mode;
00092   return;
00093 }
00094 
00095 inline Tvoid TVmeModule::SetFileDescriptor( Tint fd )
00096 {
00097   theFileDescriptor = fd;
00098   return;
00099 }
00100 
00101 inline Tvoid TVmeModule::SetBaseAddress( Tcaddr_t address )
00102 {
00103   theBaseAddress = address;
00104   return;
00105 }
00106 
00107 inline Tvoid TVmeModule::SetOffsetAddress( Toff_t offset )
00108 {
00109   theOffsetAddress = offset;
00110   return;
00111 }
00112 
00113 #endif

CLDAQ - a Class Library for Data AcQuisition (Version 1.8.0)
Go IWAI <goiwai@users.sourceforge.jp>