CCAENV560.cpp File Reference

#include <config.h>
#include "CCAENV560.h"
#include "CCAENV560Registers.h"
#include <CVMEInterface.h>
#include <string>
#include <stdio.h>
#include <string.h>

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(CAENV560Registers,field)))
#define GetLong(field)   (m_pModule->peekl(LOffset(CAENV560Registers,field)))
#define PutShort(field, value)
#define PutLong(field, value)

Functions

static const unsigned short Manufacturer (2)
static const unsigned short ModelNumber (0x18)
static const unsigned short FixedCode (0xfaf5)
static void ThrowIntString (char *formatstring, int value) throw (string)
static void ThrowIfBadChannel (const char *pFunction, int nChannel) throw (string)
static void ThrowIfBadSection (const char *pFunction, int nSection) throw (string)


Define Documentation

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

Definition at line 297 of file CCAENV560.cpp.

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

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

Definition at line 296 of file CCAENV560.cpp.

Referenced by CCAENV560::Clear(), CCAENV830::ComputeEventSize(), CCAENV830::GetMEBEventCount(), CCAENV560::GetSectStat(), CCAENV560::GetVetoStat(), CCAENV830::isAlmostFull(), CCAENV830::isDataReady(), CCAENV830::isFull(), CCAENV830::isGlobalBusy(), CCAENV830::isGlobalDready(), CCAENV830::MapModule(), CCAENV560::MapModule(), CCAENV560::ResetVeto(), CCAENV560::ScalInc(), CCAENV830::SetTriggerMode(), and CCAENV560::SetVeto().

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

Definition at line 295 of file CCAENV560.cpp.

#define PutLong ( field,
value   ) 

Value:

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

Definition at line 300 of file CCAENV560.cpp.

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

#define PutShort ( field,
value   ) 

Value:

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

Definition at line 298 of file CCAENV560.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 294 of file CCAENV560.cpp.


Function Documentation

static const unsigned short FixedCode ( 0xfaf5   )  [static]

Referenced by CCAENV560::MapModule().

static const unsigned short Manufacturer (  )  [static]

Referenced by CCAENV560::MapModule().

static const unsigned short ModelNumber ( 0x18   )  [static]

Referenced by CCAENV560::MapModule().

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

Definition at line 315 of file CCAENV560.cpp.

References msg.

Referenced by CCAENV830::Disable(), and CCAENV830::Enable().

static void ThrowIfBadSection ( const char *  pFunction,
int  nSection 
) throw (string) [inline, static]

Definition at line 326 of file CCAENV560.cpp.

References msg.

Referenced by CCAENV560::GetSectStat().

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

Definition at line 308 of file CCAENV560.cpp.

References msg.

Referenced by CCAENV830::MapModule(), CCAENV560::MapModule(), and CCAENV830::SetTriggerMode().


Generated on Wed Sep 17 08:38:10 2008 for NSCL Device support. by  doxygen 1.5.1