fdhwlib  2.0.25
FltPeriphStatus Class Reference

#include <FltPeriphStatus.h>

Inheritance diagram for FltPeriphStatus:
FltPeriphRegister FltPixRegister Pbus

List of all members.

Public Member Functions


Detailed Description

The Flt board contains four pheripheral FPGAs.

The status of each FGPA is set by a register. The four peripherial FPGA registers are numbered from 1 to 4.

Changes:

  • The new basic class FltPeriphRegister is now responsible for the translation of the address scheme.
  • Some parameters added to the register, while the pixel trigger mode switches have been moved to a separate (new) register.
  • Version identifier of the Pheripheral FPGA design added in Flt Version 2.00
  • Number of bits in the boxcar sum and the integration time readable in Flt Version 2.00

Definition at line 60 of file FltPeriphStatus.h.


Constructor & Destructor Documentation

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

Member Function Documentation

void FltPeriphStatus::broadcastRunMode ( int  mode)

These broadcast commands do have side effects: All LED will turned off and all channels will be set to normal trigger mode.

Use these commands only if this is aceptable.

The mode 0 will affect all FPGAs, mode 1 means all FPGAs in all slots.

Changes:

  • 25.4.01 ak: There are now too many parameters in this register. So we can't provide the broadcast any longer!
void FltPeriphStatus::broadcastTestMode ( int  mode)
int FltPeriphStatus::getBoxcarLength ( int  fpgaNr)

Returns the number of the bits in the boxcar sum.

allowed values are 8..12

Parameters:
fpgaNrNumber of the FPGA (1..4)
int FltPeriphStatus::getCoincidenceTime ( int  fpgaNr)

Get the coincidence time.

Returns:
Coincidence time in multiples of 100ns.
int FltPeriphStatus::getIntegrationTime ( int  fpgaNr)

Returns the integration time in numbers of 100ns.

Parameters:
fpgaNrNumber of the FPGA (1..4)
int FltPeriphStatus::getMaxThreshDelta ( int  fpgaNr)

Get the increment used by of the hitrate controller, if the hitrate is outside of the third margins.

Parameters:
fpgaNrNumber of the FPGA (1..4)
Returns:
Increment of the threshold.
int FltPeriphStatus::getPixelTriggerMode ( int  fpgaNr,
int  channel 
)

The pixel trigger mode on the peripheral FPGA is used to switch off channels that are not connected to a PMT.

Valid modes are:

  • 0 normal (PMT connected),
  • 1 pixel trigger fixed to 0 (low),
  • 3 pixel trigger fixed to 1 (high).
int FltPeriphStatus::getVersion ( int  fpgaNr)

Returns the version of the Pheripheral FPGA design.

Parameters:
fpgaNrNumber of the FPGA (1..4)
bool FltPeriphStatus::isInRunMode ( int  fpgaNr)

Check FPGA <fpgaNr> for run mode.

Returns:
True if the FPGA is in run mode, false if the FPGA is in test mode
bool FltPeriphStatus::isOnLed ( int  fpgaNr)

Check for the LEDs turned on.

void FltPeriphStatus::setBoxcarLength ( int  fpgaNr,
int  length 
)

Set the boxcar length.

Parameters:
fpgaNrNumber of the FPGA (1..4)
lengthBoxcar length (8..12).
void FltPeriphStatus::setCoincidenceTime ( int  fpgaNr,
int  time 
)

Set the coincidence time.

Parameters:
fpgaNrNumber of the FPGA (1..4)
timeCoincidence time in multiples of 100ns (5..x).
void FltPeriphStatus::setIntegrationTime ( int  fpgaNr,
int  time 
)

Set the integration time.

Parameters:
fpgaNrNumber of the FPGA (1..4)
timeIntegration time in multiples of 100ns (1..16).
void FltPeriphStatus::setLedOff ( int  fpgaNr)

Disable to LED of the FPGA <fpgaNr>

void FltPeriphStatus::setLedOn ( int  fpgaNr)

Enable to LED of the FPGA <fpgaNr>

void FltPeriphStatus::setMaxThreshDelta ( int  fpgaNr,
int  incr 
)

Set the increment used by of the hitrate controller, if the hitrate is outside of the third margins.

Parameters:
fpgaNrNumber of the FPGA (1..4)
incrIncrement of the threshold (3..15).
void FltPeriphStatus::setPixelTriggerMode ( int  fpgaNr,
int  channel,
int  mode 
)
void FltPeriphStatus::setRunMode ( int  fpgaNr)

Set FPGA <fpgaNr> to run mode.

void FltPeriphStatus::setRunMode ( )

Set all FPGA to run mode.

void FltPeriphStatus::setTestMode ( int  fpgaNr)

Set FPGA <fpgaNr> to test mode.

void FltPeriphStatus::setTestMode ( )

Set all FPGA to test mode.

int FltPeriphStatus::writeBitsByName ( int  no,
char *  name,
unsigned long  data 
) [virtual]

Write bit field by name.

Know bit fields are:

  • run - switch to run mode 1 on / 0 off
  • tint - Integration time
  • maxstep - Maximal step size of the hitrate controller
Parameters:
noUnlike the other functions the numbers are runing from 0..3 !!!
nameName of the bit field
dataData to be writen

Reimplemented from FltPixRegister.


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