fdhwlib  2.0.25
KaFltControlStatusReg Class Reference

#include <kafltcontrolstatusreg.h>

Inheritance diagram for KaFltControlStatusReg:
FltRegister Pbus

List of all members.

Public Member Functions


Detailed Description

Combined control and status register of the KATRIN DAQ electronic.

The data aquisition is organized as a ring buffer. A pair of read and write pointer organizes the access to the buffer.

Definition at line 38 of file kafltcontrolstatusreg.h.


Constructor & Destructor Documentation

KaFltControlStatusReg::KaFltControlStatusReg ( const char *  name,
int  slotID,
int  regID,
int  r,
int  w 
)

Member Function Documentation

int KaFltControlStatusReg::getCardId ( )

Read the slot ID of the current board.

int KaFltControlStatusReg::getMode ( )

Read status bits.

 bit
 3    not empty   there are events in the buffer
 2    overflow    event buffer overflow
 1:0  mode        mode of operation (see table below)
          value name    operation:
                        store ADC  store event  measure   trigger
                        data       data         hitrate
          0     Debug      x          x            -         x
          1     Run        -          x            x         x
          2     Measure    -          -            x         x
          3     Hw Test    -          -            -         -

Reimplemented from Pbus.

unsigned long KaFltControlStatusReg::getReadPointer ( )

Get the read pointer.

int KaFltControlStatusReg::getVersion ( )

Get the version/revision of the implementation.

Reimplemented from Pbus.

unsigned long KaFltControlStatusReg::getWritePointer ( )

Get the write pointer.

bool KaFltControlStatusReg::hasData ( )

Data available for readout.

bool KaFltControlStatusReg::isInRunMode ( )
bool KaFltControlStatusReg::isInTestMode ( )
bool KaFltControlStatusReg::isOverflow ( )

Data has not been read before writing again in the same page.

void KaFltControlStatusReg::reset ( )

Reset read and write pointer.

Reimplemented from Pbus.

void KaFltControlStatusReg::setCardId ( int  id)

Set card Id for simulation mode.

void KaFltControlStatusReg::setMode ( int  value)

Set mode.

void KaFltControlStatusReg::setRunMode ( )

Set to run mode.

void KaFltControlStatusReg::setTestMode ( )
void KaFltControlStatusReg::setWritePointer ( unsigned long  value)

Set the write pointer (only for simulation)


The documentation for this class was generated from the following file: