|
fdhwlib
2.0.25
|
#include <subrack.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.
| hw4::Subrack::Subrack | ( | const char * | inifile = "FE.ini", |
| int | mode = 0 |
||
| ) |
| hw4::Subrack::~Subrack | ( | ) |
| hw4::Subrack::Subrack | ( | const char * | inifile = "FE.ini", |
| int | mode = 0 |
||
| ) |
| hw4::Subrack::~Subrack | ( | ) |
| hw4::Subrack::Subrack | ( | const char * | inifile = "FE.ini", |
| int | mode = 0 |
||
| ) |
| hw4::Subrack::~Subrack | ( | ) |
| int hw4::Subrack::closeHandler | ( | ) |
Kill the interupt handler.
| int hw4::Subrack::closeHandler | ( | ) |
Kill the interupt handler.
| int hw4::Subrack::closeIRHandler | ( | ) |
Close connection to IRQ dispatcher.
| int hw4::Subrack::closeIRHandler | ( | ) |
Close connection to IRQ dispatcher.
| void hw4::Subrack::configure | ( | ) |
| void hw4::Subrack::configure | ( | ) |
| void hw4::Subrack::dumpRegisters | ( | FILE * | fout = stdout, |
| int | cols = 8 |
||
| ) |
Dump all register information.
The set of all registers defined the function + state of the electronic.
| fout | output stream |
| cols | number of colums that should be displayed in a line |
| void hw4::Subrack::dumpRegisters | ( | FILE * | fout = stdout, |
| int | cols = 8 |
||
| ) |
Dump all register information.
The set of all registers defined the function + state of the electronic.
| fout | output stream |
| cols | number of colums that should be displayed in a line |
| void hw4::Subrack::dumpRegisters | ( | FILE * | fout = stdout, |
| int | cols = 8 |
||
| ) |
Dump all register information.
The set of all registers defined the function + state of the electronic.
| fout | output stream |
| cols | number of colums that should be displayed in a line |
| int hw4::Subrack::handleErrors | ( | ) |
Handle all error interrupts.
The errors are analysed and written to the error log. The error handler is started in separate process.
| int hw4::Subrack::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::Subrack::init | ( | FILE * | fout, |
| char * | inifile | ||
| ) |
Init of the electronics.
e.g. read project Id
| void hw4::Subrack::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 |
| void hw4::Subrack::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::Subrack::initIRHandler | ( | const char * | inifile = "" | ) |
Establish a connection to the IRQ dispatcher.
| int hw4::Subrack::initIRHandler | ( | const char * | inifile = "" | ) |
Establish a connection to the IRQ dispatcher.
| void hw4::Subrack::reset | ( | ) |
Reset subrack, clear all register.
| void hw4::Subrack::reset | ( | ) |
Reset subrack, clear all register.
| int hw4::Subrack::testFltConfig | ( | FILE * | fout, |
| int | level = 1, |
||
| bool | header = false |
||
| ) |
| int hw4::Subrack::testFltConfig | ( | FILE * | fout, |
| int | level = 1, |
||
| bool | header = false |
||
| ) |
| int hw4::Subrack::testFltHitrateController | ( | FILE * | fout, |
| int | level = 1, |
||
| bool | useStat = false, |
||
| bool | header = false |
||
| ) |
Test the hitrate controller.
| int hw4::Subrack::testFltHitrateController | ( | FILE * | fout, |
| int | level = 1, |
||
| bool | useStat = false, |
||
| bool | header = false |
||
| ) |
Test the hitrate controller.
| int hw4::Subrack::testFltStatistic | ( | FILE * | fout, |
| int | level = 1, |
||
| bool | header = false |
||
| ) |
Test the Flt statistic to measure mean ADC value and background light level.
| int hw4::Subrack::testFltStatistic | ( | FILE * | fout, |
| int | level = 1, |
||
| bool | header = false |
||
| ) |
Test the Flt statistic to measure mean ADC value and background light level.
| int hw4::Subrack::testSltConfiguration | ( | FILE * | fout, |
| int | level = 1, |
||
| bool | header = true |
||
| ) |
Test the Slt configuration.
| int hw4::Subrack::testSltConfiguration | ( | FILE * | fout, |
| int | level = 1, |
||
| bool | header = true |
||
| ) |
Test the Slt configuration.
| int hw4::Subrack::waitForInterrupt | ( | unsigned long * | irVector | ) |
Wait for the next interrupt.
| int hw4::Subrack::waitForInterrupt | ( | unsigned long * | irVector | ) |
Wait for the next interrupt.
float Subrack::meanADCVar [private] |
Parameter for testing: Mean variance of the ADC values.
Definition at line 569 of file subrackkatrin.h.
pid_t Subrack::pHandler [private] |
Definition at line 563 of file subrackkatrin.h.
SimpleSocket * Subrack::s [private] |
Definition at line 560 of file subrackkatrin.h.
| Flt* hw4::Subrack::theFlt[20] |
Definition at line 512 of file subrackkatrin.h.
Definition at line 510 of file subrackkatrin.h.