#include <BoardsVector.h>
Public Member Functions | |
BoardsVector () | |
virtual | ~BoardsVector () |
void | addRoc (const std::string &roc, const std::string &febs) |
bool | setBoard (unsigned n, roc::Board *brd, std::string devname) |
void | addDLMDev (const std::string &dlm) |
void | returnBoards () |
void | produceSystemMessage (uint32_t id) |
roc::Board * | brd (unsigned n) |
int | numAdc (unsigned n, unsigned nfeb) |
MessagesVector * | readoutExtraMessages () |
void | autoped_switch (bool on) |
void | issueDLM (int code) |
bool | isAnyGet4 () |
void | ResetAllGet4 () |
Protected Member Functions | |
void | autoped_issue_system_message (roc::Board *brd, uint32_t type) |
void | autoped_setnxmode (nxyter::FebBase *feb, bool testtrig) |
void | readFeb (uint32_t rocid, uint32_t febid, nxyter::FebBase *feb, MessagesVector *vect) |
Protected Attributes | |
std::vector< std::string > | fDLMDevs |
Definition at line 44 of file BoardsVector.h.
roc::BoardsVector::BoardsVector | ( | ) | [inline] |
Definition at line 48 of file BoardsVector.h.
virtual roc::BoardsVector::~BoardsVector | ( | ) | [inline, virtual] |
Definition at line 49 of file BoardsVector.h.
void roc::BoardsVector::addDLMDev | ( | const std::string & | dlm | ) | [inline] |
Definition at line 53 of file BoardsVector.h.
References fDLMDevs.
Referenced by roc::ReadoutApplication::CreateRocCombiner().
void roc::BoardsVector::addRoc | ( | const std::string & | roc, | |
const std::string & | febs | |||
) |
Definition at line 13 of file BoardsVector.cxx.
References roc::BoardRec::febskind, and roc::BoardRec::rocname.
Referenced by roc::ReadoutApplication::CreateAppModules(), and bnet::RocWorkerApplication::CreateCombiner().
void roc::BoardsVector::autoped_issue_system_message | ( | roc::Board * | brd, | |
uint32_t | type | |||
) | [protected] |
Definition at line 238 of file BoardsVector.cxx.
References base::Board::put(), and ROC_ADDSYSMSG.
Referenced by autoped_switch().
void roc::BoardsVector::autoped_setnxmode | ( | nxyter::FebBase * | feb, | |
bool | testtrig | |||
) | [protected] |
Definition at line 256 of file BoardsVector.cxx.
References nxyter::FebBase::getNxOffline(), nxyter::NxChip::i2c(), nxyter::FebBase::numNx(), nxyter::FebBase::nx(), and nxyter::NxI2c::setTestModes().
Referenced by autoped_switch().
void roc::BoardsVector::autoped_switch | ( | bool | on | ) |
Definition at line 268 of file BoardsVector.cxx.
References autoped_issue_system_message(), autoped_setnxmode(), brd(), nxyter::RocNx::fireTestPulse(), base::Gpio::setConfig(), roc::SYSMSG_USER_CALIBR_OFF, roc::SYSMSG_USER_CALIBR_ON, and roc::SYSMSG_USER_RECONFIGURE.
Referenced by roc::ReadoutApplication::SwitchCalibrationMode(), and bnet::RocWorkerApplication::SwitchCalibrationMode().
roc::Board* roc::BoardsVector::brd | ( | unsigned | n | ) | [inline] |
Definition at line 59 of file BoardsVector.h.
Referenced by autoped_switch(), ResetAllGet4(), and returnBoards().
bool roc::BoardsVector::isAnyGet4 | ( | ) |
Definition at line 97 of file BoardsVector.cxx.
void roc::BoardsVector::issueDLM | ( | int | code | ) |
Definition at line 304 of file BoardsVector.cxx.
References fDLMDevs.
int roc::BoardsVector::numAdc | ( | unsigned | n, | |
unsigned | nfeb | |||
) |
Definition at line 170 of file BoardsVector.cxx.
References nxyter::FebBase::getNumMonAdc().
Referenced by roc::ReadoutApplication::CreateAppModules(), and bnet::RocWorkerApplication::CreateReadout().
void roc::BoardsVector::produceSystemMessage | ( | uint32_t | id | ) |
Definition at line 247 of file BoardsVector.cxx.
References ROC_ADDSYSMSG.
Referenced by roc::ReadoutApplication::ExecuteCommand().
void roc::BoardsVector::readFeb | ( | uint32_t | rocid, | |
uint32_t | febid, | |||
nxyter::FebBase * | feb, | |||
MessagesVector * | vect | |||
) | [protected] |
Definition at line 180 of file BoardsVector.cxx.
References nxyter::FebBase::getMonAdc(), nxyter::FebBase::getNumMonAdc(), nxyter::FebBase::monAdcSupport(), roc::MSG_SYS, roc::Message::reset(), roc::Message::setMessageType(), roc::Message::setRocNumber(), roc::Message::setSysMesData(), roc::Message::setSysMesType(), and roc::SYSMSG_ADC.
Referenced by readoutExtraMessages().
roc::MessagesVector * roc::BoardsVector::readoutExtraMessages | ( | ) |
Definition at line 207 of file BoardsVector.cxx.
References roc::MSG_SYS, readFeb(), roc::Message::reset(), roc::Message::setMessageType(), roc::Message::setRocNumber(), roc::Message::setSysMesData(), roc::Message::setSysMesType(), and roc::SYSMSG_PCTIME.
Referenced by roc::ReadoutApplication::SwitchCalibrationMode(), and bnet::RocWorkerApplication::SwitchCalibrationMode().
void roc::BoardsVector::ResetAllGet4 | ( | ) |
Definition at line 104 of file BoardsVector.cxx.
References base::OperList::addPut(), brd(), ROC_ADDSYSMSG, ROC_FEET_CMD_TO_FEET, ROC_FEET_TRANSMIT_MASK, and roc::SYSMSG_USER_RECONFIGURE.
Referenced by roc::ReadoutApplication::ExecuteCommand().
void roc::BoardsVector::returnBoards | ( | ) |
Definition at line 140 of file BoardsVector.cxx.
References roc::CmdReturnBoardPtr::Board(), brd(), fDLMDevs, nxyter::RocNx::fireTestPulse(), and base::Gpio::setConfig().
Referenced by roc::ReadoutApplication::BeforeAppModulesDestroyed(), bnet::RocWorkerApplication::BeforeAppModulesDestroyed(), roc::ReadoutApplication::CreateAppModules(), and bnet::RocWorkerApplication::CreateCombiner().
bool roc::BoardsVector::setBoard | ( | unsigned | n, | |
roc::Board * | brd, | |||
std::string | devname | |||
) |
Definition at line 22 of file BoardsVector.cxx.
References roc::BoardRec::brd, roc::BoardRec::devname, roc::BoardRec::feb0, roc::BoardRec::feb1, roc::BoardRec::febskind, nxyter::RocNx::fireTestPulse(), roc::BoardRec::get4, base::Gpio::getConfig(), roc::BoardRec::gpio_mask_off, roc::BoardRec::gpio_mask_on, roc::BoardRec::gpio_mask_save, nxyter::FebBase::newFeb(), base::Gpio::packConfig(), nxyter::FebBase::stringToType(), and base::Gpio::unpackConfig().
Referenced by roc::ReadoutApplication::CreateRocCombiner().
std::vector<std::string> roc::BoardsVector::fDLMDevs [protected] |
Definition at line 46 of file BoardsVector.h.
Referenced by addDLMDev(), issueDLM(), and returnBoards().