From: Ron F. <ro...@us...> - 2005-10-19 10:59:54
|
Update of /cvsroot/nscldaq/clients/DeviceSupport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4936/DeviceSupport Modified Files: CSIS3600.cpp CSIS3600.h Log Message: Added functions to enable/disable/check for External Latch Next Event Index: CSIS3600.h =================================================================== RCS file: /cvsroot/nscldaq/clients/DeviceSupport/CSIS3600.h,v retrieving revision 8.2 retrieving revision 8.3 diff -C2 -d -r8.2 -r8.3 *** CSIS3600.h 24 Jun 2005 11:30:38 -0000 8.2 --- CSIS3600.h 19 Oct 2005 10:59:38 -0000 8.3 *************** *** 337,340 **** --- 337,345 ---- void DisableExternalClear() const; //!< External clear disable. bool ExternalClearEnabled() const; //!< State of clear enable. + + void EnableExternalNext() const; + void DisableExternalNext() const; + bool ExternalNextEnabled() const; + void SetFastClearWindow(int ns); //!< Set fast clear window. int GetFastClearWindow() const; //!< Inquire fast clear window. Index: CSIS3600.cpp =================================================================== RCS file: /cvsroot/nscldaq/clients/DeviceSupport/CSIS3600.cpp,v retrieving revision 8.2 retrieving revision 8.3 diff -C2 -d -r8.2 -r8.3 *** CSIS3600.cpp 24 Jun 2005 11:30:37 -0000 8.2 --- CSIS3600.cpp 19 Oct 2005 10:59:38 -0000 8.3 *************** *** 593,596 **** --- 593,632 ---- } /*! + Enable the external next event input. + This is required to accept an external latch or coinc. gate. + */ + void + CSIS3600::EnableExternalNext() const + { + CtlReg cr; + Zero(cr); + SetBit(cr, EnableExternalNext, 1); + poke(Long(cr), CSR); + } + /*! + Disable the external next event input. + (Not recommended). + */ + void + CSIS3600::DisableExternalNext() const + { + CtlReg cr; + Zero(cr); + SetBit(cr, DisableExternalNext, 1); + poke(Long(cr), CSR); + } + /*! + Return true if the external next event input is + enabled. + */ + + bool + CSIS3600::ExternalNextEnabled() const + { + StatReg sr; + Long(sr) = peek(CSR); + return (GetBit(sr, isExternalNext) == 1); + } + /*! Enable the external clear. Once enabled, the external clear can be used as a fast clear mechanism to prevent an event |