#include <config.h>
#include "CAENcard.h"
#include <string>
#include <unistd.h>
#include <assert.h>
Go to the source code of this file.
Classes | |
struct | Registers |
struct | ROM |
Defines | |
#define | swaplong(n) (((n >> 16) & 0xffff) | ((n & 0xffff) << 16)) |
#define | VME_CRATE_SIZE 24 |
#define | CAEN_REGISTERSIZE 0x2000 |
#define | CAEN_ROMSIZE 0x1000 |
#define | CAEN_ROMOFFSET 0x8000 |
#define | KILLBIT 0x100 |
#define | RESET 0x080 |
#define | SELADDR 0x010 |
#define | DREADY 0x001 |
#define | GDREADY 0x002 |
#define | BUSY 0x004 |
#define | GBUSY 0x008 |
#define | OFFLINE 0x002 |
#define | CLEARDATA 0x004 |
#define | KEEPOVER 0x008 |
#define | KEEPTHRESH 0x010 |
#define | KEEPINVALID 0x020 |
#define | COMMONSTOP 0x400 |
#define | STEPTHR 0x100 |
#define | AUTOIN 0x800 |
#define | EMPTY 0x1000 |
#define | SLIDESUB 0x2000 |
#define | ALLTRG 0x4000 |
#define | CTL1BLKEND 0x04 |
#define | CTL1PROGRST 0x10 |
#define | CTL1BERRENA 0x20 |
#define | CTL1ALIGN64 0x40 |
#define | MCSTFIRST 2 |
#define | MCSTLAST 1 |
#define | SR2EMPTY 2 |
#define | SR2FULL 4 |
#define | QDCIPedestal TDCRange |
#define | Offset(structname, field) ((unsigned int)&(((structname*)0x0)->field)) |
#define | ShortOffset(structname, field) Offset(structname, field)/sizeof(short) |
Short offset associated with a struct/field. | |
#define | LongOffset(structname, field) Offset(structname, field)/sizeof(long) |
#define | ReadBuffer (m_pModule->peekl(LongOffset(Registers, Buffer))); |
Variables | |
static const char * | Copyright = "(C) Copyright Michigan State University 2002, All rights reserved" |
#define ALLTRG 0x4000 |
Definition at line 434 of file CAENcard.cpp.
#define AUTOIN 0x800 |
Definition at line 431 of file CAENcard.cpp.
#define BUSY 0x004 |
#define CAEN_REGISTERSIZE 0x2000 |
Definition at line 397 of file CAENcard.cpp.
Referenced by CAENcard::DestroyCard(), and CAENcard::MapCard().
#define CAEN_ROMOFFSET 0x8000 |
#define CAEN_ROMSIZE 0x1000 |
#define CLEARDATA 0x004 |
#define COMMONSTOP 0x400 |
Definition at line 429 of file CAENcard.cpp.
Referenced by CAENcard::commonStart(), and CAENcard::commonStop().
#define CTL1ALIGN64 0x40 |
Definition at line 442 of file CAENcard.cpp.
#define CTL1BERRENA 0x20 |
#define CTL1BLKEND 0x04 |
Definition at line 439 of file CAENcard.cpp.
#define CTL1PROGRST 0x10 |
Definition at line 440 of file CAENcard.cpp.
#define DREADY 0x001 |
#define EMPTY 0x1000 |
Definition at line 432 of file CAENcard.cpp.
Referenced by CAENcard::emptyDisable(), and CAENcard::emptyEnable().
#define GBUSY 0x008 |
#define GDREADY 0x002 |
#define KEEPINVALID 0x020 |
Definition at line 428 of file CAENcard.cpp.
Referenced by CAENcard::discardInvalidData(), and CAENcard::keepInvalidData().
#define KEEPOVER 0x008 |
Definition at line 426 of file CAENcard.cpp.
Referenced by CAENcard::discardOverflowData(), and CAENcard::keepOverflowData().
#define KEEPTHRESH 0x010 |
Definition at line 427 of file CAENcard.cpp.
Referenced by CAENcard::discardUnderThresholdData(), and CAENcard::keepUnderThresholdData().
#define KILLBIT 0x100 |
Definition at line 406 of file CAENcard.cpp.
Referenced by CAENcard::channelOff(), CAENcard::channelOn(), and CAENcard::setThreshold().
#define LongOffset | ( | structname, | |||
field | ) | Offset(structname, field)/sizeof(long) |
Definition at line 551 of file CAENcard.cpp.
#define MCSTFIRST 2 |
#define MCSTLAST 1 |
#define OFFLINE 0x002 |
Definition at line 424 of file CAENcard.cpp.
Referenced by CAENcard::cardOff(), and CAENcard::cardOn().
#define Offset | ( | structname, | |||
field | ) | ((unsigned int)&(((structname*)0x0)->field)) |
Definition at line 545 of file CAENcard.cpp.
#define QDCIPedestal TDCRange |
Definition at line 510 of file CAENcard.cpp.
Referenced by CAENcard::getIped(), and CAENcard::setPedestalCurrent().
#define ReadBuffer (m_pModule->peekl(LongOffset(Registers, Buffer))); |
Read the buffer:
Definition at line 558 of file CAENcard.cpp.
Referenced by CAENcard::ReadBufferBlock(), and CAENcard::readEvent().
#define RESET 0x080 |
Definition at line 410 of file CAENcard.cpp.
Referenced by CSIS3820::Reset(), CSIS3600::Reset(), and CAENcard::reset().
#define SELADDR 0x010 |
#define ShortOffset | ( | structname, | |||
field | ) | Offset(structname, field)/sizeof(short) |
#define SLIDESUB 0x2000 |
Definition at line 433 of file CAENcard.cpp.
#define SR2EMPTY 2 |
#define SR2FULL 4 |
#define STEPTHR 0x100 |
Definition at line 430 of file CAENcard.cpp.
Referenced by CAENcard::disableSmallThresholds(), and CAENcard::enableSmallThresholds().
#define swaplong | ( | n | ) | (((n >> 16) & 0xffff) | ((n & 0xffff) << 16)) |
Definition at line 392 of file CAENcard.cpp.
#define VME_CRATE_SIZE 24 |
Definition at line 395 of file CAENcard.cpp.
const char* Copyright = "(C) Copyright Michigan State University 2002, All rights reserved" [static] |
Definition at line 376 of file CAENcard.cpp.