#include <FltCntrlStatus.h>
List of all members.
Public Member Functions
Detailed Description
The class contains the information of the control status register of the Flt board.
Changes:
- Field for version number elongated in version 3.
- 12.7.01 ak: Analog board type supported.
- Version identifier of the Control FPGA design added in Flt Version 2.00
- IR mask and IR source changed due to compatiblity with the SLT
Definition at line 36 of file FltCntrlStatus.h.
Constructor & Destructor Documentation
FltCntrlStatus::FltCntrlStatus |
( |
const char * |
name, |
|
|
int |
slotID, |
|
|
int |
regID, |
|
|
int |
r, |
|
|
int |
w |
|
) |
| |
Member Function Documentation
void FltCntrlStatus::disableInterrupt |
( |
int |
source | ) |
|
void FltCntrlStatus::enableInterrupt |
( |
int |
source | ) |
|
void FltCntrlStatus::forceSoftReset |
( |
| ) |
|
void FltCntrlStatus::forceTestIR |
( |
| ) |
|
The test interrupt uses bit 7 in the IR mask.
The IR is only generated is bit 7 in the IR mask is set to high.
int FltCntrlStatus::getAnalogBoardType |
( |
| ) |
|
Returns the type of the Analog Board: 0 Turino board, 1 Karlsruhe board.
int FltCntrlStatus::getCardId |
( |
| ) |
|
int FltCntrlStatus::getHitrateCountingLength |
( |
| ) |
|
The sampling time of the hitrate controller can be parametrized as 1,2,4,..,32s.
- Returns:
- The sampling time [s].
int FltCntrlStatus::getInterruptMask |
( |
| ) |
|
int FltCntrlStatus::getInterruptSource |
( |
| ) |
|
Checks the active interrupts.
The interrupt source is by the source mask. It is possible to check more than one register by adding the sources.
- source = 1 : CountErr1 (in Pheriphery FPGA 1)
- source = 2 : CountErr2 (in Pheriphery FPGA 2)
- source = 4 : CountErr3 (in Pheriphery FPGA 3)
- source = 8 : CountErr4 (in Pheriphery FPGA 4)
- source = 16: OTR Threshold out of range
- source = 32: HR_Error Hitrate under-/overflow
- source = 64: GainError Access violation by gain control
int FltCntrlStatus::getTestMode |
( |
| ) |
|
The testmodes are numbered from 0..3.
- mode=0:
- mode=1:
- mode=2:
- mode=3:
int FltCntrlStatus::getVersion |
( |
| ) |
|
Returns the version of the Control FPGA design.
Reimplemented from Pbus.
bool FltCntrlStatus::isEnabledInterrupt |
( |
int |
source | ) |
|
bool FltCntrlStatus::isInterrupt |
( |
int |
source | ) |
|
bool FltCntrlStatus::isOnLed |
( |
int |
id | ) |
|
Returns true if the LED is turned on.
The LEDs are numbered from 0..1
void FltCntrlStatus::setAnalogBoardType |
( |
int |
type | ) |
|
Set the type of the Analog Board.
- Parameters:
-
type | 0 Turino board, 1 Karlsruhe board. |
void FltCntrlStatus::setCardId |
( |
int |
id | ) |
|
void FltCntrlStatus::setHitrateCountingLength |
( |
int |
ta | ) |
|
Set the sampling time of the hitrate controller.
- Parameters:
-
ta | sampling time [s]. The controller allows the times 1,2,4,...,32s. Other times will be cut to the highest allowed time below the specified one (e.g. the argument 12s will lead to a sampling time of 8s). |
Changes: @ Initial value for id added, 1.9.00 ak.
void FltCntrlStatus::setInterruptMask |
( |
int |
mask | ) |
|
void FltCntrlStatus::setLedOff |
( |
int |
id | ) |
|
void FltCntrlStatus::setLedOn |
( |
int |
id | ) |
|
void FltCntrlStatus::setTestMode |
( |
int |
mode | ) |
|
int FltCntrlStatus::writeBitsByName |
( |
char * |
name, |
|
|
unsigned long |
data |
|
) |
| [virtual] |
Write to bit field by name.
Known bit fields are
Reimplemented from FltRegister.
The documentation for this class was generated from the following file: