CCAENV830.cpp File Reference

#include <config.h>
#include "CCAENV830.h"
#include "CCAENV820Registers.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(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

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


Define Documentation

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

Definition at line 307 of file CCAENV830.cpp.

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

Definition at line 312 of file CCAENV830.cpp.

Referenced by CCAENV830::MapModule().

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

Definition at line 306 of file CCAENV830.cpp.

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

Definition at line 305 of file CCAENV830.cpp.

#define PutLong ( field,
value   ) 

Value:

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

Definition at line 310 of file CCAENV830.cpp.

#define PutShort ( field,
value   ) 

Value:

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

Definition at line 308 of file CCAENV830.cpp.

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

Definition at line 304 of file CCAENV830.cpp.


Function Documentation

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

Definition at line 321 of file CCAENV830.cpp.

References msg.

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

Definition at line 314 of file CCAENV830.cpp.

References msg.


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