//Author: Dariusz Mi$kowiec
//Date:   1999

///////////////////////////////////////////////////////////////////////////////
// DL600 is a VME module built at Physics Institute of Heidelberg University. 
// It houses 4 submodules, and I decided to treat these submodules in my 
// software as separate VME modules. The submodules are:
//
// DL631 - input register
// DL632 - output register
// DL633 - AND/OR logic unit
// DL634 - fan-out 
// 
///////////////////////////////////////////////////////////////////////////////

#include "DDL632.h"

#ifdef COMPIL 
  ClassImp(DDL632)
#endif

//*****************************************************************************
 DDL632::DDL632(Char_t *mdesc, UInt_t addr) : 
       DModule("Output register","DL632",mdesc,addr) {
  cout<<"constructing DDL632n";
}
//-----------------------------------------------------------------------------
 DDL632::~DDL632() {
  cout<<"destroying DDL632n";
}
//-----------------------------------------------------------------------------
 void DDL632::ReadVME() {
  Int_t i;
  for (i=0; i<4; i++) {
    Access("r", 8*i+0, 2, &fStatus[i]);
    Access("r", 8*i+2, 2, &fFix[i]);
    Access("r", 8*i+4, 2, &fExtin[i]);
    Access("r", 8*i+6, 2, &fOut[i]);

    fStatus[i] = fStatus[i] & 0x3;
    fFix[i]    = fFix[i]    & 0x1;
    fExtin[i]  = fExtin[i]  & 0x1;
    fOut[i]    = fOut[i]    & 0x1;
  }
}
//-----------------------------------------------------------------------------
 void DDL632::ResetModule() {
  UInt_t addr = 0x80 - (GetAdBase() & 0xff);
  Access("w", addr, 2, &fDummy);
}
//*****************************************************************************


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.