#include <config.h>
#include <CADC2530.h>
#include <string>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <assert.h>
Go to the source code of this file.
Classes | |
struct | ADCregisters_struct |
union | ADCcsr_union |
struct | ADCcsr_union::bit_struct |
union | ADCctr_union |
struct | ADCctr_union::bit_struct |
union | ADCfullnessflag_union |
struct | ADCfullnessflag_union::byte_struct |
struct | ADCfullnessflag_union::bit_struct |
Defines | |
#define | swaplong(n) (((n >> 16) & 0xffff) | ((n & 0xffff) << 16)) |
#define | Offset(structname, field) ((unsigned int)&(((structname*)0x0)->field)) |
#define | ShortOffset(structname, field) (Offset(structname,field)/sizeof(short)) |
#define | LongOffset(structname, field) (Offset(structname,field)/sizeof(long)) |
#define | VME_CRATE_SIZE 24 |
#define | CADC2530_REGSIZE 0xC0 |
#define | CADC2530_MEMSIZE 0x200000 |
#define | CADC2530_HISTOMEMSIZE 0x40000 |
#define | CADC2530_HISTOCHANSIZE 0x2000 |
#define | CADC2530_CSRMASK 0x00FF8A |
#define | CADC2530_CTRMASK 0x00810F |
#define | IS_LIST_HEADER(x) (((((x>>24)&0x07) == 0x2)) ? true : false) |
#define | IS_LIST_EOB(x) (((((x>>24)&0x07) == 0x4)) ? true : false) |
#define | IS_LIST_CHANNEL(x) ((((x>>24)&0x07) == 0x0)) ? true : false) |
#define | GET_LIST_CHANCOUNT(x) (((x>>8)&0x07)+1) |
#define | GET_LIST_CHANNUM(x) (((x>>16)&0x07)+1) |
#define | GET_LIST_CHANDATA(x) (x&0x1FFF) |
#define | GET_LIST_EVENTCOUNT(x) (x&0x00FFFFFF) |
Typedefs | |
typedef ADCregisters_struct | ADCregisters_t |
typedef ADCcsr_union | ADCcsr_t |
typedef ADCctr_union | ADCctr_t |
typedef ADCfullnessflag_union | ADCfullnessflag_t |
Variables | |
static const char * | Copyright = "(C) Copyright Michigan State University 2008, All rights reserved" |
#define CADC2530_CSRMASK 0x00FF8A |
Definition at line 52 of file CADC2530.cpp.
Referenced by CADC2530::resetCSRbits(), and CADC2530::setCSRbits().
#define CADC2530_CTRMASK 0x00810F |
Definition at line 56 of file CADC2530.cpp.
Referenced by CADC2530::resetCTRbits(), and CADC2530::setCTRbits().
#define CADC2530_HISTOCHANSIZE 0x2000 |
#define CADC2530_HISTOMEMSIZE 0x40000 |
#define CADC2530_MEMSIZE 0x200000 |
Definition at line 46 of file CADC2530.cpp.
Referenced by CADC2530::clearMemory(), CADC2530::destroyMemory(), CADC2530::mapMemory(), and CADC2530::readListEvents().
#define CADC2530_REGSIZE 0xC0 |
Definition at line 45 of file CADC2530.cpp.
Referenced by CADC2530::CADC2530(), CADC2530::checkCard(), CADC2530::destroyModule(), and CADC2530::mapModule().
#define GET_LIST_CHANCOUNT | ( | x | ) | (((x>>8)&0x07)+1) |
#define GET_LIST_CHANDATA | ( | x | ) | (x&0x1FFF) |
Definition at line 64 of file CADC2530.cpp.
#define GET_LIST_CHANNUM | ( | x | ) | (((x>>16)&0x07)+1) |
Definition at line 63 of file CADC2530.cpp.
#define GET_LIST_EVENTCOUNT | ( | x | ) | (x&0x00FFFFFF) |
Definition at line 65 of file CADC2530.cpp.
#define IS_LIST_CHANNEL | ( | x | ) | ((((x>>24)&0x07) == 0x0)) ? true : false) |
Definition at line 61 of file CADC2530.cpp.
#define IS_LIST_EOB | ( | x | ) | (((((x>>24)&0x07) == 0x4)) ? true : false) |
Definition at line 60 of file CADC2530.cpp.
#define IS_LIST_HEADER | ( | x | ) | (((((x>>24)&0x07) == 0x2)) ? true : false) |
Definition at line 59 of file CADC2530.cpp.
#define LongOffset | ( | structname, | |||
field | ) | (Offset(structname,field)/sizeof(long)) |
#define Offset | ( | structname, | |||
field | ) | ((unsigned int)&(((structname*)0x0)->field)) |
Definition at line 35 of file CADC2530.cpp.
#define ShortOffset | ( | structname, | |||
field | ) | (Offset(structname,field)/sizeof(short)) |
Definition at line 38 of file CADC2530.cpp.
Referenced by CAENcard::Bitclear1(), CAENcard::Bitclear2(), CAENcard::Bitset1(), CAENcard::Bitset2(), CAENcard::Busy(), CADC2530::cardType(), CAENcard::channelOff(), CAENcard::channelOn(), CADC2530::checkCard(), CADC2530::clearEventCounter(), CADC2530::clearFullnessFlags(), CADC2530::clearListAddress(), CAENcard::dataPresent(), CAENcard::gBusy(), CAENcard::gdataPresent(), CAENcard::getCrate(), CADC2530::getCSR(), CADC2530::getCTR(), CADC2530::getEventCounter(), CAENcard::getFirmware(), CADC2530::getFullnessFlags(), CADC2530::getInterruptMask(), CADC2530::getInterruptVector(), CAENcard::getIped(), CADC2530::getListAddress(), CADC2530::getLLD(), CADC2530::getSSTR(), CADC2530::getULD(), CADC2530::manufacturerId(), CAENcard::MapCard(), CAENcard::MEBEmpty(), CAENcard::MEBFull(), CADC2530::resetCSRbits(), CADC2530::resetCTRbits(), CAENcard::resetEventCounter(), CAENcard::SetCBLTChainMembership(), CAENcard::setCrate(), CADC2530::setCSR(), CADC2530::setCSRbits(), CADC2530::setCTR(), CADC2530::setCTRbits(), CAENcard::setFastClearWindow(), CADC2530::setInterruptMask(), CADC2530::setInterruptVector(), CADC2530::setLLD(), CADC2530::setMemoryOffset(), CAENcard::setPedestalCurrent(), CAENcard::setRange(), CADC2530::setSSTR(), CAENcard::setThreshold(), and CADC2530::setULD().
#define swaplong | ( | n | ) | (((n >> 16) & 0xffff) | ((n & 0xffff) << 16)) |
Definition at line 32 of file CADC2530.cpp.
Referenced by CAENcard::ReadBufferBlock(), and CAENcard::readEvent().
#define VME_CRATE_SIZE 24 |
Definition at line 42 of file CADC2530.cpp.
Referenced by CAENcard::MapCard(), and CAENcard_767::slotInit().
typedef union ADCcsr_union ADCcsr_t |
typedef union ADCctr_union ADCctr_t |
typedef union ADCfullnessflag_union ADCfullnessflag_t |
typedef struct ADCregisters_struct ADCregisters_t |
const char* Copyright = "(C) Copyright Michigan State University 2008, All rights reserved" [static] |
Definition at line 14 of file CADC2530.cpp.