CCaenIO Class Reference

#include <CaenIO.h>

Inheritance diagram for CCaenIO:

CVmeModule List of all members.

Public Member Functions

 CCaenIO (UInt_t base, int nCrate=0)
 CCaenIO (CVME< UShort_t > &am_CVME)
 CCaenIO (const CCaenIO &aCCaenIO)
virtual ~CCaenIO ()
CCaenIOoperator= (const CCaenIO &aCCaenIO)
Int_t operator== (const CCaenIO &aCCaenIO)
UShort_t ReadInput (UInt_t input)
UShort_t ReadInputs ()
void PulseOutput (UInt_t output)
void SetLevel (UInt_t output)
void ClearLevel (UInt_t output)
void ClearAll ()
void SetECL (UShort_t value)
void ClearECL ()

Private Types

enum  { LENGTH = 256 }

Private Attributes

UInt_t m_nOutputMask

Detailed Description

Definition at line 51 of file CaenIO.h.


Member Enumeration Documentation

anonymous enum [private]

each bit in the mask corresponds to a level output. A 1 indicates the output is set.

Enumerator:
LENGTH 

Definition at line 55 of file CaenIO.h.


Constructor & Destructor Documentation

CCaenIO::CCaenIO ( UInt_t  base,
int  nCrate = 0 
)

Definition at line 38 of file CaenIO.cpp.

CCaenIO::CCaenIO ( CVME< UShort_t > &  am_CVME  ) 

CCaenIO::CCaenIO ( const CCaenIO aCCaenIO  ) 

Definition at line 55 of file CaenIO.cpp.

References m_nOutputMask.

virtual CCaenIO::~CCaenIO (  )  [inline, virtual]

Definition at line 69 of file CaenIO.h.


Member Function Documentation

CCaenIO & CCaenIO::operator= ( const CCaenIO aCCaenIO  ) 

Definition at line 70 of file CaenIO.cpp.

References m_nOutputMask, and CVmeModule::operator=().

Int_t CCaenIO::operator== ( const CCaenIO aCCaenIO  ) 

Definition at line 91 of file CaenIO.cpp.

References m_nOutputMask.

UShort_t CCaenIO::ReadInput ( UInt_t  input  ) 

Purpose: Reads the value on the inputs of one of the NIM level inputs. Which inputs it reads is specified by its parameter. Inputs must be between 1 and 4.

Parameters:
UInt_t input - the input (0-3) from which to read a value.
Returns:
The value of the input.

Definition at line 111 of file CaenIO.cpp.

References CVmeModule::peekw().

Referenced by CVMETrigger::operator()().

UShort_t CCaenIO::ReadInputs (  ) 

Read all inputs and return them as a mask.

Definition at line 122 of file CaenIO.cpp.

References CVmeModule::peekw().

void CCaenIO::PulseOutput ( UInt_t  output  ) 

Purpose: Pulse one of the pulse outputs.

Parameters:
UInt_t output - the output to pulse

Definition at line 136 of file CaenIO.cpp.

References CVmeModule::pokew().

Referenced by CVMEStatusModule::GoBusy(), CVMEStatusModule::GoClear(), CVMEStatusModule::ModuleClear(), and CVMETrigger::operator()().

void CCaenIO::SetLevel ( UInt_t  output  ) 

Purpose: Set one of the level outputs. If the outputs is already set, then this function is a no-op.

Parameters:
UInt_t output - the output to assert. Must be in the range 0 - 3.

Definition at line 158 of file CaenIO.cpp.

References m_nOutputMask, and CVmeModule::pokew().

void CCaenIO::ClearLevel ( UInt_t  output  ) 

Purpose: Clear one of the level outputs. If the output is already cleared, then this function is a no-op.

Parameters:
UInt_t output - the output to deassert Must be in the range of 0-3

Definition at line 180 of file CaenIO.cpp.

References m_nOutputMask, and CVmeModule::pokew().

void CCaenIO::ClearAll (  ) 

Purpose: Set all NIM levels and ECL outputs to logical 0

Definition at line 223 of file CaenIO.cpp.

References CVmeModule::pokew().

void CCaenIO::SetECL ( UShort_t  value  ) 

Definition at line 199 of file CaenIO.cpp.

References CVmeModule::pokew().

void CCaenIO::ClearECL (  ) 

Purpose: Set all ECL outputs to logical 0

Definition at line 211 of file CaenIO.cpp.

References CVmeModule::pokew().


Member Data Documentation

UInt_t CCaenIO::m_nOutputMask [private]

Definition at line 53 of file CaenIO.h.

Referenced by CCaenIO(), ClearLevel(), operator=(), operator==(), and SetLevel().


The documentation for this class was generated from the following files:
Generated on Wed Sep 17 08:38:11 2008 for NSCL Device support. by  doxygen 1.5.1