![]() |
Project
|
#include <TrapConfig.h>
Classes | |
| class | TrapDmemWord |
| class | TrapRegister |
| class | TrapValue |
Public Member Functions | |
| TrapConfig () | |
| ~TrapConfig () | |
| bool | setTrapRegAlloc (TrapReg_t reg, Alloc_t mode) |
| bool | setTrapReg (TrapReg_t reg, int value, int det) |
| bool | setTrapReg (TrapReg_t reg, int value, int det, int rob, int mcm) |
| int | getTrapReg (TrapReg_t reg, int det=-1, int rob=-1, int mcm=-1) |
| void | resetRegs () |
| std::string | getConfigVersion () |
| std::string | getConfigName () |
| void | setConfigVersion (std::string version) |
| void | setConfigName (std::string name) |
| bool | setDmemAlloc (int addr, Alloc_t mode) |
| bool | setDmem (int addr, unsigned int value, int det) |
| bool | setDmem (int addr, unsigned int value, int det, int rob, int mcm) |
| bool | setDmem (int addr, int value) |
| bool | setDmem (int addr, int value, int det, int rob, int mcm) |
| unsigned int | getDmemUnsigned (int addr, int det, int rob, int mcm) |
| void | resetDmem () |
| void | configureOnlineGains () |
| unsigned int | peek (int addr, int det, int rob, int mcm) |
| bool | poke (int addr, unsigned int value, int det, int rob, int mcm) |
| std::string | getRegName (TrapReg_t reg) |
| unsigned short | getRegAddress (TrapReg_t reg) |
| unsigned short | getRegNBits (TrapReg_t reg) |
| unsigned int | getRegResetValue (TrapReg_t reg) |
| TrapReg_t | getRegByAddress (int address) |
| bool | printTrapReg (TrapReg_t reg, int det=-1, int rob=-1, int mcm=-1) |
| bool | printTrapAddr (int addr, int det=-1, int rob=-1, int mcm=-1) |
| void | printMemDatx (std::ostream &os, int addr) |
| void | printMemDatx (std::ostream &os, int addr, int det, int rob, int mcm) |
| void | printMemDatx (std::ostream &os, TrapReg_t reg) |
| void | printMemDatx (std::ostream &os, TrapReg_t reg, int det, int rob, int mcm) |
| void | printDatx (std::ostream &os, unsigned int addr, unsigned int data, int rob, int mcm) |
| void | printVerify (std::ostream &os, int det, int rob, int mcm) |
| void | initRegs () |
| void | PrintDmemValue3 (TrapConfig::TrapDmemWord *trapval, std::ofstream &output) |
| void | PrintRegisterValue3 (TrapConfig::TrapRegister *trapval, std::ofstream &output) |
| void | DumpTrapConfig2File (std::string filename) |
Public Attributes | |
| std::array< TrapRegister, kLastReg > | mRegisterValue {} |
| std::array< TrapDmemWord, mgkDmemWords > | mDmem {} |
| std::array< TrapReg_t, 0x400+0x200+0x4 > | mgRegAddressMap {} |
| const std::array< int, 3 > | mgkRegisterAddressBlockStart = {0x0a00, 0x3000, 0xd000} |
| const std::array< int, 3 > | mgkRegisterAddressBlockSize = {0x0400, 0x0200, 0x0004} |
| std::string | mTrapConfigName |
| std::string | mTrapConfigVersion |
Static Public Attributes | |
| static const int | mlastAlloc = kAllocLast |
| static const int | mgkDmemStartAddress = 0xc000 |
| static const int | mgkDmemWords = 0x400 |
| static const int | mgkImemStartAddress = 0xe000 |
| static const int | mgkImemWords = 0x1000 |
| static const int | mgkDbankStartAddress = 0xf000 |
| static const int | mgkDbankWords = 0x0100 |
| static const int | mgkMcmlistSize = 256 |
| static bool | mgRegAddressMapInitialized = false |
Definition at line 36 of file TrapConfig.h.
| Enumerator | |
|---|---|
| kAllocNone | |
| kAllocGlobal | |
| kAllocByDetector | |
| kAllocByHC | |
| kAllocByMCM | |
| kAllocByMergerType | |
| kAllocByLayer | |
| kAllocByMCMinSM | |
| kAllocLast | |
Definition at line 43 of file TrapConfig.h.
Definition at line 57 of file TrapConfig.h.
| TrapConfig::TrapConfig | ( | ) |
Definition at line 39 of file TrapConfig.cxx.
|
default |
| void TrapConfig::configureOnlineGains | ( | ) |
Definition at line 1050 of file TrapConfig.cxx.
| void TrapConfig::DumpTrapConfig2File | ( | std::string | filename | ) |
Definition at line 1026 of file TrapConfig.cxx.
|
inline |
Definition at line 502 of file TrapConfig.h.
|
inline |
Definition at line 501 of file TrapConfig.h.
| unsigned int TrapConfig::getDmemUnsigned | ( | int | addr, |
| int | det, | ||
| int | rob, | ||
| int | mcm | ||
| ) |
Definition at line 652 of file TrapConfig.cxx.
|
inline |
Definition at line 527 of file TrapConfig.h.
| TrapConfig::TrapReg_t TrapConfig::getRegByAddress | ( | int | address | ) |
Definition at line 700 of file TrapConfig.cxx.
|
inline |
Definition at line 526 of file TrapConfig.h.
|
inline |
Definition at line 528 of file TrapConfig.h.
|
inline |
Definition at line 529 of file TrapConfig.h.
| int TrapConfig::getTrapReg | ( | TrapReg_t | reg, |
| int | det = -1, |
||
| int | rob = -1, |
||
| int | mcm = -1 |
||
| ) |
Definition at line 537 of file TrapConfig.cxx.
| void TrapConfig::initRegs | ( | ) |
Definition at line 78 of file TrapConfig.cxx.
| unsigned int TrapConfig::peek | ( | int | addr, |
| int | det, | ||
| int | rob, | ||
| int | mcm | ||
| ) |
Definition at line 564 of file TrapConfig.cxx.
| bool TrapConfig::poke | ( | int | addr, |
| unsigned int | value, | ||
| int | det, | ||
| int | rob, | ||
| int | mcm | ||
| ) |
Definition at line 582 of file TrapConfig.cxx.
| void TrapConfig::printDatx | ( | std::ostream & | os, |
| unsigned int | addr, | ||
| unsigned int | data, | ||
| int | rob, | ||
| int | mcm | ||
| ) |
Definition at line 758 of file TrapConfig.cxx.
| void TrapConfig::PrintDmemValue3 | ( | TrapConfig::TrapDmemWord * | trapval, |
| std::ofstream & | output | ||
| ) |
Definition at line 1008 of file TrapConfig.cxx.
| void TrapConfig::printMemDatx | ( | std::ostream & | os, |
| int | addr | ||
| ) |
Definition at line 722 of file TrapConfig.cxx.
| void TrapConfig::printMemDatx | ( | std::ostream & | os, |
| int | addr, | ||
| int | det, | ||
| int | rob, | ||
| int | mcm | ||
| ) |
Definition at line 729 of file TrapConfig.cxx.
Definition at line 740 of file TrapConfig.cxx.
Definition at line 747 of file TrapConfig.cxx.
| void TrapConfig::PrintRegisterValue3 | ( | TrapConfig::TrapRegister * | trapval, |
| std::ofstream & | output | ||
| ) |
Definition at line 1017 of file TrapConfig.cxx.
| bool TrapConfig::printTrapAddr | ( | int | addr, |
| int | det = -1, |
||
| int | rob = -1, |
||
| int | mcm = -1 |
||
| ) |
Definition at line 688 of file TrapConfig.cxx.
| bool TrapConfig::printTrapReg | ( | TrapReg_t | reg, |
| int | det = -1, |
||
| int | rob = -1, |
||
| int | mcm = -1 |
||
| ) |
Definition at line 667 of file TrapConfig.cxx.
| void TrapConfig::printVerify | ( | std::ostream & | os, |
| int | det, | ||
| int | rob, | ||
| int | mcm | ||
| ) |
Definition at line 774 of file TrapConfig.cxx.
| void TrapConfig::resetDmem | ( | ) |
Definition at line 528 of file TrapConfig.cxx.
| void TrapConfig::resetRegs | ( | ) |
Definition at line 519 of file TrapConfig.cxx.
|
inline |
Definition at line 504 of file TrapConfig.h.
|
inline |
Definition at line 503 of file TrapConfig.h.
|
inline |
Definition at line 509 of file TrapConfig.h.
|
inline |
Definition at line 510 of file TrapConfig.h.
| bool TrapConfig::setDmem | ( | int | addr, |
| unsigned int | value, | ||
| int | det | ||
| ) |
Definition at line 615 of file TrapConfig.cxx.
| bool TrapConfig::setDmem | ( | int | addr, |
| unsigned int | value, | ||
| int | det, | ||
| int | rob, | ||
| int | mcm | ||
| ) |
Definition at line 634 of file TrapConfig.cxx.
| bool TrapConfig::setDmemAlloc | ( | int | addr, |
| Alloc_t | mode | ||
| ) |
Definition at line 602 of file TrapConfig.cxx.
| bool TrapConfig::setTrapReg | ( | TrapReg_t | reg, |
| int | value, | ||
| int | det | ||
| ) |
Definition at line 550 of file TrapConfig.cxx.
| bool TrapConfig::setTrapReg | ( | TrapReg_t | reg, |
| int | value, | ||
| int | det, | ||
| int | rob, | ||
| int | mcm | ||
| ) |
Definition at line 557 of file TrapConfig.cxx.
Definition at line 494 of file TrapConfig.h.
| std::array<TrapDmemWord, mgkDmemWords> o2::trd::TrapConfig::mDmem {} |
Definition at line 669 of file TrapConfig.h.
|
static |
Definition at line 550 of file TrapConfig.h.
|
static |
Definition at line 551 of file TrapConfig.h.
|
static |
Definition at line 544 of file TrapConfig.h.
|
static |
Definition at line 545 of file TrapConfig.h.
|
static |
Definition at line 547 of file TrapConfig.h.
|
static |
Definition at line 548 of file TrapConfig.h.
|
static |
Definition at line 671 of file TrapConfig.h.
| const std::array<int, 3> o2::trd::TrapConfig::mgkRegisterAddressBlockSize = {0x0400, 0x0200, 0x0004} |
Definition at line 677 of file TrapConfig.h.
| const std::array<int, 3> o2::trd::TrapConfig::mgkRegisterAddressBlockStart = {0x0a00, 0x3000, 0xd000} |
Definition at line 676 of file TrapConfig.h.
| std::array<TrapReg_t, 0x400 + 0x200 + 0x4> o2::trd::TrapConfig::mgRegAddressMap {} |
Definition at line 674 of file TrapConfig.h.
|
static |
Definition at line 673 of file TrapConfig.h.
|
static |
Definition at line 493 of file TrapConfig.h.
| std::array<TrapRegister, kLastReg> o2::trd::TrapConfig::mRegisterValue {} |
Definition at line 666 of file TrapConfig.h.
| std::string o2::trd::TrapConfig::mTrapConfigName |
Definition at line 678 of file TrapConfig.h.
| std::string o2::trd::TrapConfig::mTrapConfigVersion |
Definition at line 679 of file TrapConfig.h.