fdhwlib
2.0.25
|
#include <FltThreshold.h>
The class provides access to the threshold register.
The representation of the registers has changed with the versions of the FPGA design.
The access to the thresholds is restricted to PBUS single access mode. Therefore the block commands have to be emulated.
Definition at line 44 of file FltThreshold.h.
FltThreshold::FltThreshold | ( | Flt * | parent, |
const char * | name, | ||
int | slotID, | ||
int | regID, | ||
int | r, | ||
int | w, | ||
int | len | ||
) |
FltThreshold::~FltThreshold | ( | ) |
void FltThreshold::get | ( | int | ch, |
int * | actual, | ||
int * | previous = 0 |
||
) |
Get the values for the actual and the previous threshold.
int FltThreshold::get | ( | int | ch | ) |
Get the actual threshold.
void FltThreshold::get | ( | unsigned long | data, |
int * | actual, | ||
int * | previous = 0 |
||
) |
Get the values for the actual and the previous threshold.
The data field can be used to interprete a given value instead of reading from the electronics.
int FltThreshold::getActual | ( | int | ch | ) |
Get the actual threshold.
int FltThreshold::getPrevious | ( | int | ch | ) |
Get the previous threshold.
unsigned long FltThreshold::read | ( | int | ch | ) |
Read the register number <ch>
Reimplemented from FltPixRegister.
void FltThreshold::read | ( | unsigned long * | data | ) |
void FltThreshold::set | ( | int | ch, |
int | actual | ||
) |
Set the actual threshold.
void FltThreshold::set | ( | int | actual | ) |
Set the actual threshold in all channels.
void FltThreshold::write | ( | int | ch, |
unsigned long | data | ||
) |
Write to the register number <ch>
Reimplemented from FltPixRegister.
void FltThreshold::write | ( | unsigned long * | data | ) |
Perform a block write on all registers.
The Array <data> must have an appropriate size.
Reimplemented from FltPixRegister.
int FltThreshold::writeBitsByName | ( | int | ch, |
char * | name, | ||
unsigned long | data | ||
) | [virtual] |
Call operation by name.
Know operations are
Reimplemented from FltPixRegister.
Flt* FltThreshold::parent [private] |
Definition at line 99 of file FltThreshold.h.