Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CCAENV830.cpp File Reference

#include "CCAENV830.h"
#include "CCAENV820Registers.h"
#include <CVMEInterface.h>
#include <string>
#include <stdio.h>
#include <string.h>

Include dependency graph for CCAENV830.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define SOffset(s, field)   (((unsigned int)&(((s*)0)->field))/sizeof(short))
#define LOffset(s, field)   (((unsigned int)&(((s*)0)->field))/sizeof(long))
#define GetShort(field)   (m_pModule->peekw(SOffset(CAENV830Registers,field)))
#define GetLong(field)   (m_pModule->peekl(LOffset(CAENV830Registers,field)))
#define PutShort(field, value)
#define PutLong(field, value)
#define GetProm(m, field)   (m.peekw(SOffset(CAENV830ROM,field)))

Functions

void ThrowIntString (char *formatstring, int value) throw (string)
void ThrowIfBadChannel (const char *pFunction, int nChannel) throw (string)


Define Documentation

#define GetLong field   )     (m_pModule->peekl(LOffset(CAENV830Registers,field)))
 

Definition at line 292 of file CCAENV830.cpp.

Referenced by CCAENV830::ComputeEventSize(), CCAENV830::Disable(), CCAENV830::Enable(), CCAENV830::ReadCounter(), and CCAENV830::ReadEvent().

#define GetProm m,
field   )     (m.peekw(SOffset(CAENV830ROM,field)))
 

Definition at line 297 of file CCAENV830.cpp.

Referenced by CCAENV830::MapModule().

#define GetShort field   )     (m_pModule->peekw(SOffset(CAENV830Registers,field)))
 

Definition at line 291 of file CCAENV830.cpp.

Referenced by CCAENV830::ComputeEventSize(), CCAENV830::GetMEBEventCount(), CCAENV830::isAlmostFull(), CCAENV830::isDataReady(), CCAENV830::isFull(), CCAENV830::isGlobalBusy(), CCAENV830::isGlobalDready(), CCAENV830::MapModule(), and CCAENV830::SetTriggerMode().

#define LOffset s,
field   )     (((unsigned int)&(((s*)0)->field))/sizeof(long))
 

Definition at line 290 of file CCAENV830.cpp.

#define PutLong field,
value   ) 
 

Value:

(m_pModule->pokel((value), \
                                  LOffset(CAENV830Registers,field)))

Definition at line 295 of file CCAENV830.cpp.

Referenced by CCAENV830::SetDwellTime(), CCAENV830::SetEnableMask(), and CCAENV830::SetTriggerCounter().

#define PutShort field,
value   ) 
 

Value:

(m_pModule->pokew((value),  \
                                  SOffset(CAENV830Registers,field)))

Definition at line 293 of file CCAENV830.cpp.

Referenced by CCAENV830::Clear(), CCAENV830::DisableAutoReset(), CCAENV830::DisableHeader(), CCAENV830::EnableAutoReset(), CCAENV830::EnableHeader(), CCAENV830::FPClearsMEB(), CCAENV830::MapModule(), CCAENV830::Reset(), CCAENV830::SetAlmostFullLevel(), CCAENV830::SetNarrow(), CCAENV830::SetTriggerMode(), CCAENV830::SetWide(), and CCAENV830::Trigger().

#define SOffset s,
field   )     (((unsigned int)&(((s*)0)->field))/sizeof(short))
 

Definition at line 289 of file CCAENV830.cpp.


Function Documentation

void ThrowIfBadChannel const char *  pFunction,
int  nChannel
throw (string) [inline, static]
 

Definition at line 306 of file CCAENV830.cpp.

void ThrowIntString char *  formatstring,
int  value
throw (string) [inline, static]
 

Definition at line 299 of file CCAENV830.cpp.


Generated on Fri Mar 12 13:04:12 2004 for Scripted Readout by doxygen 1.3.4