fdhwlib
2.0.25
|
#include <FltPeriphStatus.h>
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:
Definition at line 60 of file FltPeriphStatus.h.
FltPeriphStatus::FltPeriphStatus | ( | const char * | name, |
int | slotID, | ||
int | regID, | ||
int | r, | ||
int | w, | ||
int | len | ||
) |
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:
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
fpgaNr | Number of the FPGA (1..4) |
int FltPeriphStatus::getCoincidenceTime | ( | int | fpgaNr | ) |
Get the coincidence time.
int FltPeriphStatus::getIntegrationTime | ( | int | fpgaNr | ) |
Returns the integration time in numbers of 100ns.
fpgaNr | Number 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.
fpgaNr | Number of the FPGA (1..4) |
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:
int FltPeriphStatus::getVersion | ( | int | fpgaNr | ) |
Returns the version of the Pheripheral FPGA design.
fpgaNr | Number of the FPGA (1..4) |
bool FltPeriphStatus::isInRunMode | ( | int | fpgaNr | ) |
Check FPGA <fpgaNr> for run mode.
bool FltPeriphStatus::isOnLed | ( | int | fpgaNr | ) |
Check for the LEDs turned on.
void FltPeriphStatus::setBoxcarLength | ( | int | fpgaNr, |
int | length | ||
) |
Set the boxcar length.
fpgaNr | Number of the FPGA (1..4) |
length | Boxcar length (8..12). |
void FltPeriphStatus::setCoincidenceTime | ( | int | fpgaNr, |
int | time | ||
) |
Set the coincidence time.
fpgaNr | Number of the FPGA (1..4) |
time | Coincidence time in multiples of 100ns (5..x). |
void FltPeriphStatus::setIntegrationTime | ( | int | fpgaNr, |
int | time | ||
) |
Set the integration time.
fpgaNr | Number of the FPGA (1..4) |
time | Integration 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.
fpgaNr | Number of the FPGA (1..4) |
incr | Increment 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:
no | Unlike the other functions the numbers are runing from 0..3 !!! |
name | Name of the bit field |
data | Data to be writen |
Reimplemented from FltPixRegister.