#include <CaenIO.h>
Inheritance diagram for CCaenIO:
Public Member Functions | |
CCaenIO (UInt_t base, int nCrate=0) | |
CCaenIO (CVME< UShort_t > &am_CVME) | |
CCaenIO (const CCaenIO &aCCaenIO) | |
virtual | ~CCaenIO () |
CCaenIO & | operator= (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 |
Definition at line 51 of file CaenIO.h.
anonymous enum [private] |
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 | ) |
Int_t CCaenIO::operator== | ( | const CCaenIO & | aCCaenIO | ) |
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.
UInt_t | input - the input (0-3) from which to read a value. |
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.
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.
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.
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 | ) |
void CCaenIO::ClearECL | ( | ) |
Purpose: Set all ECL outputs to logical 0
Definition at line 211 of file CaenIO.cpp.
References CVmeModule::pokew().
UInt_t CCaenIO::m_nOutputMask [private] |
Definition at line 53 of file CaenIO.h.
Referenced by CCaenIO(), ClearLevel(), operator=(), operator==(), and SetLevel().