fdhwlib
2.0.25
|
#include <subrackkatrin.h>
Collection for all components of the FD electronic in the hardware level.
The class defines the access to the SLT and the 20 FLT boards. There is also a management of empty and ocupied slots.
Definition at line 435 of file subrackkatrin.h.
hw4::SubrackKatrin::SubrackKatrin | ( | const char * | inifile = "FE.ini" , |
int | mode = 0 |
||
) |
hw4::SubrackKatrin::~SubrackKatrin | ( | ) |
int hw4::SubrackKatrin::checkConfig | ( | ) |
Check hardware configuration.
Results:
int hw4::SubrackKatrin::closeHandler | ( | ) |
Kill the interupt handler.
int hw4::SubrackKatrin::closeIRHandler | ( | ) |
Close connection to IRQ dispatcher.
void hw4::SubrackKatrin::configure | ( | ) |
int hw4::SubrackKatrin::handleErrors | ( | ) |
Handle all error interrupts.
The errors are analysed and written to the error log. The error handler is started in separate process.
void hw4::SubrackKatrin::init | ( | FILE * | fout, |
char * | inifile | ||
) |
Init of the electronics.
The parameters of the registers can be used to specify the required value in the inifile.
Example:
[SltInit] Control = 00002c79 IRMask = 000001ff TestpulsAmpl = 000005dc SetSecCounter = 2daff6d5 T1 = 00000578 IRInput = 000000a3 SensorMask = 00000000 ... [FltInit] ...
fout | Output stream |
inifile | Name of the inifile |
int hw4::SubrackKatrin::initIRHandler | ( | const char * | inifile = "" | ) |
Establish a connection to the IRQ dispatcher.
void hw4::SubrackKatrin::printConfigToInifile | ( | const char * | config, |
const char * | configdir | ||
) |
int hw4::SubrackKatrin::readExpectedConfig | ( | const char * | config, |
const char * | configdir | ||
) |
Read the expected hardware configuration from config file.
Returns 0 Ok, 1 no config file, 2 description of one or more boards is missing.
void hw4::SubrackKatrin::reset | ( | ) |
Reset subrack, clear all register.
unsigned long hw4::SubrackKatrin::setSecondCounter | ( | int | board = -1 | ) |
Synchronize second counter of Flts (0 to 19) and Slt (20).
All boards -1
int hw4::SubrackKatrin::testFltConfig | ( | FILE * | fout, |
int | level = 1 , |
||
bool | header = false |
||
) |
int hw4::SubrackKatrin::testFltHitrateController | ( | FILE * | fout, |
int | level = 1 , |
||
bool | useStat = false , |
||
bool | header = false |
||
) |
Test the hitrate controller.
int hw4::SubrackKatrin::testFltStatistic | ( | FILE * | fout, |
int | level = 1 , |
||
bool | header = false |
||
) |
Test the Flt statistic to measure mean ADC value and background light level.
int hw4::SubrackKatrin::testSltConfiguration | ( | FILE * | fout, |
int | level = 1 , |
||
bool | header = true |
||
) |
Test the Slt configuration.
int hw4::SubrackKatrin::waitForInterrupt | ( | unsigned long * | irVector | ) |
Wait for the next interrupt.
float hw4::SubrackKatrin::meanADCVar [private] |
Parameter for testing: Mean variance of the ADC values.
Definition at line 572 of file subrackkatrin.h.
pid_t hw4::SubrackKatrin::pHandler [private] |
Definition at line 568 of file subrackkatrin.h.
SimpleSocket* hw4::SubrackKatrin::s [private] |
Definition at line 565 of file subrackkatrin.h.
Definition at line 518 of file subrackkatrin.h.
Definition at line 516 of file subrackkatrin.h.
int hw4::SubrackKatrin::timebase [private] |
Timebase GPS 0, UTC 1.
Definition at line 575 of file subrackkatrin.h.