fdhwlib
2.0.25
|
#include <fltkatrin.h>
The class FltKatrin provides the definition for the registers of the first level trigger board (FLT).
The names of the registers are choosen as found in the hardware description.
For a systematic access to all registers without knowledge of the specific register structure the array regList is introduced. The array contains a list of all available registers.
Definition at line 96 of file fltkatrin.h.
Definition at line 105 of file fltkatrin.h.
{ //I use this temporarily instead of the defines in fltdef.h -tb- kFLT_PAGES = 64, kFLT_PAGE_SIZE = 2000 // for unsigned shorts (for v3 this was 1000) };
hw4::FltKatrin::FltKatrin | ( | int | ID | ) |
virtual hw4::FltKatrin::~FltKatrin | ( | ) | [virtual] |
int hw4::FltKatrin::checkConfig | ( | ) |
Check hardware configuration.
Results:
bool hw4::FltKatrin::checkPresence | ( | ) | [virtual] |
Check the presence of this slot.
The result will be stored in the variable present
Reimplemented from SubrackBoardBase.
int hw4::FltKatrin::compareData | ( | FILE * | fout, |
unsigned short * | data, | ||
unsigned short * | patter, | ||
int | shift, | ||
int | n, | ||
int | output = 1 |
||
) |
Returns the number correct compared elements beginning with the first one of data.
The compared pattern can be shifted relative to the data. The swich output = 0 will disable debug information about the compared data in case of an error.
int hw4::FltKatrin::getHardwareModelVersion | ( | ) |
Give the version of the used harware model.
The version of the model and the implemented register model of the connected electronic have to fit together.
int hw4::FltKatrin::getMeanAdcValue | ( | int | ch, |
double * | value | ||
) |
Calculate mean value of a channel.
int hw4::FltKatrin::getVersion | ( | int | unit = 0 | ) | [virtual] |
Returns the version of the fpgas.
Reimplemented from SubrackBoardBase.
void hw4::FltKatrin::printConfigToInifile | ( | FILE * | fout | ) |
Print Slt configuration in inifile format.
void hw4::FltKatrin::printExpectedConfig | ( | FILE * | fout | ) |
Print the expected hardware configuration.
int hw4::FltKatrin::readExpectedConfig | ( | akInifile * | config | ) |
Read expected hardware configuration from inifile.
int hw4::FltKatrin::setThresholdToAdc | ( | int | ch, |
unsigned long | delta | ||
) |
Set threshold according to the mean adc value.
ch | Number of the channel |
delta | Offset for the threshold relative to the adc value |
int hw4::FltKatrin::testMemory | ( | FILE * | fout, |
int | ch = -1 |
||
) |
Perform a test of the Flt Memory.
The results can be writen to a file or output stream.
This test will
int hw4::FltKatrin::testTransferRate | ( | FILE * | fout, |
int | ch = -1 , |
||
int | page = -1 |
||
) |
Test the access speed of to the memory.
This test will
Definition at line 223 of file fltkatrin.h.
Definition at line 258 of file fltkatrin.h.
Definition at line 207 of file fltkatrin.h.
Definition at line 203 of file fltkatrin.h.
Definition at line 201 of file fltkatrin.h.
Definition at line 251 of file fltkatrin.h.
Definition at line 235 of file fltkatrin.h.
Definition at line 252 of file fltkatrin.h.
Definition at line 229 of file fltkatrin.h.
Definition at line 231 of file fltkatrin.h.
Definition at line 262 of file fltkatrin.h.
Definition at line 221 of file fltkatrin.h.
Definition at line 230 of file fltkatrin.h.
Definition at line 236 of file fltkatrin.h.
Definition at line 227 of file fltkatrin.h.
Definition at line 215 of file fltkatrin.h.
Definition at line 209 of file fltkatrin.h.
Definition at line 211 of file fltkatrin.h.
Definition at line 234 of file fltkatrin.h.
Definition at line 250 of file fltkatrin.h.
Definition at line 248 of file fltkatrin.h.
Definition at line 206 of file fltkatrin.h.
Definition at line 217 of file fltkatrin.h.
Definition at line 232 of file fltkatrin.h.
Definition at line 260 of file fltkatrin.h.
Definition at line 219 of file fltkatrin.h.
Definition at line 225 of file fltkatrin.h.
uint64_t hw4::FltKatrin::serialno |
Expected configuration.
Definition at line 265 of file fltkatrin.h.
Definition at line 198 of file fltkatrin.h.
Definition at line 238 of file fltkatrin.h.
Definition at line 196 of file fltkatrin.h.
Definition at line 256 of file fltkatrin.h.
uint32_t hw4::FltKatrin::vdoc |
Definition at line 267 of file fltkatrin.h.
Definition at line 205 of file fltkatrin.h.
uint32_t hw4::FltKatrin::vfpga |
Definition at line 266 of file fltkatrin.h.
uint32_t hw4::FltKatrin::vpdoc |
Definition at line 269 of file fltkatrin.h.
uint32_t hw4::FltKatrin::vpfpga |
Definition at line 268 of file fltkatrin.h.
uint32_t hw4::FltKatrin::vproject |
Definition at line 270 of file fltkatrin.h.