#include <CCamacNimout.h>
Inheritance diagram for CCamacNimout:
Public Member Functions | |
CCamacNimout (unsigned int b, unsigned int c, unsigned int n) | |
CCamacNimout (const CCamacNimout &rhs) | |
Copy constructor. | |
~CCamacNimout () | |
Destructor. | |
CCamacNimout & | operator= (const CCamacNimout &rhs) |
Assignment. | |
int | operator== (const CCamacNimout &rhs) const |
Comparison for equality. | |
int | operator!= (const CCamacNimout &rhs) const |
unsigned short * | getWrite () const |
void | WriteMask (unsigned short mask) |
void | WriteBit (unsigned int nBitno) |
Private Attributes | |
unsigned short * | m_pWrite |
Pointer to the nimout data register. |
Definition at line 295 of file CCamacNimout.h.
CCamacNimout::CCamacNimout | ( | unsigned int | b, | |
unsigned int | c, | |||
unsigned int | n | |||
) |
Construct a NIMOUT module located in a particular part of CAMAC space.
b | - Branch in which the module lives (if not yet mapped it will be mapped. | |
c | - Crate in which the module lives. | |
n | - Slot in which the module lives. |
CRangeError | if the branch crate or slot are bad. | |
CErrnoException | if at some point a system service returned an error. |
Definition at line 300 of file CCamacNimout.cpp.
References m_pWrite, and CCamacModule::MakePointer().
CCamacNimout::CCamacNimout | ( | const CCamacNimout & | rhs | ) |
Copy constructor.
Copy construction. This is invoked when e.g. an object is passed by value to a function. The copy constructor makes a clone of the rhs object.
Definition at line 314 of file CCamacNimout.cpp.
CCamacNimout::~CCamacNimout | ( | ) | [inline] |
CCamacNimout & CCamacNimout::operator= | ( | const CCamacNimout & | aCCamacNimout | ) |
Assignment.
Assignment operation. This member function supports assignment of an object of this class to an object of the same class.
Definition at line 325 of file CCamacNimout.cpp.
References m_pWrite, and CCamacModule::operator=().
int CCamacNimout::operator== | ( | const CCamacNimout & | rhs | ) | const |
Comparison for equality.
Equality comparison.
Definition at line 338 of file CCamacNimout.cpp.
References m_pWrite.
Referenced by operator!=().
int CCamacNimout::operator!= | ( | const CCamacNimout & | rhs | ) | const [inline] |
unsigned short* CCamacNimout::getWrite | ( | ) | const [inline] |
void CCamacNimout::WriteMask | ( | unsigned short | mask | ) |
Writes a mask of data to the NIMOUT. All of the bits in the mask will be strobed simultaneously.
mask | - The mask of bits to strobe. Note that only bits below bit 12 (from 0) mean anything. | |
unsigned | short mask |
Definition at line 357 of file CCamacNimout.cpp.
References m_pWrite.
Referenced by CCAMACStatusModule::ModuleClear().
void CCamacNimout::WriteBit | ( | unsigned int | nBitno | ) |
Strobes a single bit of output.
nBitno | - The bit to strobe numbered from 0. Any value of 12 or above results in a no-op. | |
unsigned | int nBitno |
Definition at line 371 of file CCamacNimout.cpp.
References m_pWrite.
Referenced by CCAMACStatusModule::GoBusy(), and CCAMACStatusModule::GoClear().
unsigned short* CCamacNimout::m_pWrite [private] |
Pointer to the nimout data register.
Definition at line 298 of file CCamacNimout.h.
Referenced by CCamacNimout(), getWrite(), operator=(), operator==(), WriteBit(), and WriteMask().