fdhwlib  2.0.25
FltThreshold Class Reference

#include <FltThreshold.h>

Inheritance diagram for FltThreshold:
FltPixRegister Pbus

List of all members.

Public Member Functions

Private Attributes


Detailed Description

The class provides access to the threshold register.

The representation of the registers has changed with the versions of the FPGA design.

  • Version 2: The threshold register contains both actual and previous threshold.
  • Version 1: The threshold registers transmits the data in the higher or lower word depending on the pixel number. Numbering the pixel from 0..21 the even numbers use the lower word and the odd numbers use the higher word. In oposite to the ADC memory there is no reading of the two pixel with one read.

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.


Constructor & Destructor Documentation

FltThreshold::FltThreshold ( Flt parent,
const char *  name,
int  slotID,
int  regID,
int  r,
int  w,
int  len 
)
FltThreshold::~FltThreshold ( )

Member Function Documentation

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

  • adc - Set threshold according to adc values

Reimplemented from FltPixRegister.


Member Data Documentation

Definition at line 99 of file FltThreshold.h.


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