#include <ctype.h>
#include <errno.h>
#include <signal.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <fstream>
#include <memory>
#include <readline/readline.h>
#include <readline/history.h>
#include "boost/format.hpp"
#include "roc/defines_roc.h"
#include "base/defines_gpio.h"
#include "nxyter/defines_nxyter.h"
#include "roc/defines_udp.h"
#include "roc/defines_optic.h"
#include "base/Board.h"
#include "sp605/Board.h"
#include "roc/Board.h"
#include "base/Gpio.h"
#include "roc/I2cDevice.h"
#include "roc/UdpBoard.h"
#include "nxyter/RocNx.h"
#include "nxyter/FebBase.h"
#include "nxyter/Feb1nxGenB.h"
#include "nxyter/Feb1nxGenC.h"
#include "nxyter/Feb1nxGenD.h"
#include "nxyter/Feb2nxGas.h"
#include "nxyter/Feb4nxBT.h"
#include "nxyter/NxI2c.h"
#include "nxyter/NxContext.h"
#include "nxyter/FebUtil.h"
#include "nxyter/QuickDaq.h"
#include "nxyter/DistFunc.h"
#include "nxyter/DistFuncArray.h"
#include "nxyter/NxDataSummary.h"
#include "feet/RocFeet.h"
Go to the source code of this file.
Data Structures | |
struct | cmditem_t |
Enumerations | |
enum | ArgNeedConstants { kNeedBoard = (1<<0), kNeedRocBoard = (1<<1), kNeedFeb = (1<<2), kNeedDaq = (1<<3) } |
Functions | |
int | cmd_autoped () |
int | cmd_autosettrh () |
int | cmd_autotrim () |
int | cmd_autovbiass () |
int | cmd_board () |
int | cmd_discover () |
int | cmd_dlm () |
int | cmd_feb () |
int | cmd_firepulser () |
int | cmd_getadcdirect () |
int | cmd_geti2c () |
int | cmd_puti2c () |
int | cmd_getnx () |
int | cmd_getroc () |
int | cmd_help () |
int | cmd_ident () |
int | cmd_idsigch () |
int | cmd_initfeb () |
int | cmd_printadc () |
int | cmd_printdata () |
int | cmd_printdatadbg () |
int | cmd_printfeb () |
int | cmd_printgpio () |
int | cmd_printid () |
int | cmd_printmon () |
int | cmd_printnx () |
int | cmd_printroc () |
int | cmd_printrocmap () |
int | cmd_printstatus () |
int | cmd_putroc () |
int | cmd_quit () |
int | cmd_resetnxi2cbus () |
int | cmd_resetnxi2creg () |
int | cmd_resetrocnxts () |
int | cmd_restartbrd () |
int | cmd_saverocconf () |
int | cmd_scanadclat () |
int | cmd_scanmonadc () |
int | cmd_scanvbiasf () |
int | cmd_scanvbiass () |
int | cmd_setadc () |
int | cmd_setadcclock () |
int | cmd_setadcdef () |
int | cmd_setadcpatt () |
int | cmd_setaux () |
int | cmd_setdebug () |
int | cmd_setfebdef () |
int | cmd_seti2c () |
int | cmd_setlhwater () |
int | cmd_setnx () |
int | cmd_setnxaddr () |
int | cmd_setnxdef () |
int | cmd_setnxmask () |
int | cmd_setnxmode () |
int | cmd_setnxoff () |
int | cmd_setnxpower () |
int | cmd_setnxtrim () |
int | cmd_setbrddef () |
int | cmd_setrocdef () |
int | cmd_setsyncm () |
int | cmd_setsyncs () |
int | cmd_settrace () |
int | cmd_testadccntl () |
int | cmd_testadcdata () |
int | cmd_testfebcntl () |
int | cmd_testnxcntl () |
int | cmd_testnxdata () |
int | cmd_testnxregs () |
int | cmd_testrocaux () |
int | cmd_testrocsync () |
void | add_cmdlist (cmditem_t *lst) |
void | reset_cmdlist () |
int | check_feb (bool needfeb=true) |
Check whether FEB connection is required and available. | |
int | check_daq (bool needdaq) |
Check whether ROC connection in DAQ mode required and available. | |
int | args_check (int needs) |
Final check on argument processing phase. | |
void | trim_whitespace (std::string &str) |
Remove leading/trailing white space (blank, tab) from a string. | |
bool | cmd_full_short (const char *cmd, std::string &cmdfull, std::string &cmdshort) |
std::string | get_timestamp (const char *fields="dtm") |
int | print_opererr (const char *text, int rc) |
void | print_loop_stats (const char *text, int ecnt) |
void | print_daq_stats (const char *text, uint64_t cnt, int ecnt) |
int | get_arg (std::string &arg, const char *aname, bool &defaulting) |
Get a string argument, returns also defaulting status. | |
int | get_arg (std::string &arg, const char *aname=0) |
Get a string argument. | |
int | get_arg (int32_t &arg, const char *aname=0, int32_t min=(1<< 31), int32_t max=~(1<< 31)) |
Get a int32_t type argument. | |
int | get_arg (double &arg, const char *aname=0) |
Get a double type argument. | |
int | get_arg (bool &arg, const char *aname=0) |
Get a bool type argument. | |
int | get_nxind (int32_t &nx, const char *aname=0) |
Get a nXYTER index type argument. | |
int | get_nxrange (int32_t &nxbeg, int32_t &nxend, const char *aname=0) |
Get a 'range of nXYTER index' type argument. | |
bool | get_opt (const std::string &opt) |
Get an command option of the form "-x". | |
bool | check_nxoffline (int nxind, int nxbeg, int nxend) |
Check for nx 'offline' flag in case a nxind range is used. | |
void | print_40f_41f (float val) |
void | print_dfa_ent_med_w50 (int vb, int ncha, nxyter::DistFunc &df_ent, nxyter::DistFunc &df_med, nxyter::DistFunc &df_w50, bool mode_ent, bool phead) |
void | get_vbiass_data (int nxind, int vb, float &med, int npuls, bool opt_v, bool phead) |
int | autoped_issue_system_message (uint32_t type) |
int | autoped_setnxmode (bool testtrig) |
void | acquire_data (int nxind, std::vector< std::vector< float > > &data, float time) |
void | acquire_data (int nxind, std::vector< int > &nhits, float time) |
void | autotrim_print_rates (const std::vector< int > &npulses, double time) |
void | autotrim_print_trim (const nxyter::NxContext &cntx_trim) |
void | autotrim_print_trim_dbg (const nxyter::NxContext &cntx_trim, const std::vector< int > &trim_min, const std::vector< int > &trim_max) |
float | get_npuls_avg (const std::vector< int > &npuls, int nchactive) |
float | get_mean (std::vector< float > const &vect) |
int | process_command (const std::string &line, int level) |
void | hdl_int (int sig, siginfo_t *info, void *cnxt) |
int | main (int argc, char *argv[]) |
Variables | |
base::Board * | gBaseBoard = 0 |
roc::Board * | gRocBoard = 0 |
sp605::Board * | gSP605Board = 0 |
base::Gpio * | gGpio = 0 |
nxyter::RocNx * | gRocNx = 0 |
nxyter::FebBase * | gFeb = 0 |
nxyter::QuickDaq * | gQdaq = 0 |
nxyter::FebUtil * | gUtil = 0 |
std::string | gBoardName |
int | gIntCount = 0 |
std::vector< std::string > | argspos |
std::vector< std::string > | argsopt |
std::vector< cmditem_t * > | cmdlist |
cmditem_t | cmdlist_base [] |
cmditem_t | cmdlist_board [] |
cmditem_t | cmdlist_sp605 [] |
cmditem_t | cmdlist_nxyter [] |
cmditem_t | cmdlist_gpio [] |
cmditem_t | cmdlist_roc [] |
static const char * | history_file = "./.rocutil_history" |
static const int | history_max = 250 |
enum ArgNeedConstants |
Definition at line 83 of file UtilityApp.cxx.
void acquire_data | ( | int | nxind, | |
std::vector< std::vector< float > > & | data, | |||
float | time | |||
) |
Definition at line 4154 of file UtilityApp.cxx.
References roc::Message::getNxAdcValue(), roc::Message::getNxChNum(), roc::Message::getNxNumber(), roc::Message::isHitMsg(), nxyter::QuickDaqStats::kPrintError, nxyter::QuickDaq::msg(), nxyter::QuickDaq::startRun(), nxyter::QuickDaq::stats(), and nxyter::QuickDaq::testRun().
Referenced by cmd_autotrim(), and cmd_idsigch().
void acquire_data | ( | int | nxind, | |
std::vector< int > & | nhits, | |||
float | time | |||
) |
Definition at line 4189 of file UtilityApp.cxx.
References roc::Message::getNxChNum(), roc::Message::getNxNumber(), roc::Message::isHitMsg(), nxyter::QuickDaqStats::kPrintError, nxyter::QuickDaq::msg(), nxyter::QuickDaq::startRun(), nxyter::QuickDaq::stats(), and nxyter::QuickDaq::testRun().
void add_cmdlist | ( | cmditem_t * | lst | ) |
Definition at line 786 of file UtilityApp.cxx.
References cmditem_t::name.
Referenced by cmd_board(), and reset_cmdlist().
int args_check | ( | int | needs | ) |
Final check on argument processing phase.
Checks whether all given positional and optional arguments where used and whether the command pre-conditions are fulfilled.
needs | mask of command requirements, the or of
|
Definition at line 849 of file UtilityApp.cxx.
References argsopt, argspos, check_daq(), check_feb(), kNeedBoard, kNeedDaq, kNeedFeb, and kNeedRocBoard.
Referenced by cmd_autoped(), cmd_autotrim(), cmd_autovbiass(), cmd_board(), cmd_discover(), cmd_feb(), cmd_firepulser(), cmd_getadcdirect(), cmd_geti2c(), cmd_getnx(), cmd_getroc(), cmd_idsigch(), cmd_printadc(), cmd_printdata(), cmd_printdatadbg(), cmd_printfeb(), cmd_printgpio(), cmd_printid(), cmd_printmon(), cmd_printnx(), cmd_printroc(), cmd_printrocmap(), cmd_printstatus(), cmd_puti2c(), cmd_putroc(), cmd_resetnxi2cbus(), cmd_resetnxi2creg(), cmd_restartbrd(), cmd_saverocconf(), cmd_scanadclat(), cmd_scanmonadc(), cmd_scanvbiasf(), cmd_scanvbiass(), cmd_setadc(), cmd_setadcclock(), cmd_setadcdef(), cmd_setadcpatt(), cmd_setaux(), cmd_setbrddef(), cmd_setdebug(), cmd_setfebdef(), cmd_seti2c(), cmd_setnx(), cmd_setnxaddr(), cmd_setnxdef(), cmd_setnxmask(), cmd_setnxmode(), cmd_setnxoff(), cmd_setnxpower(), cmd_setnxtrim(), cmd_setrocdef(), cmd_setsyncm(), cmd_setsyncs(), cmd_settrace(), cmd_testadccntl(), cmd_testadcdata(), cmd_testfebcntl(), cmd_testnxcntl(), cmd_testnxdata(), cmd_testnxregs(), cmd_testrocaux(), and cmd_testrocsync().
int autoped_issue_system_message | ( | uint32_t | type | ) |
Definition at line 3757 of file UtilityApp.cxx.
References base::Board::operPPP(), print_opererr(), ROC_ADDSYSMSG, and ROC_NX_FIFO_RESET.
Referenced by cmd_autoped().
int autoped_setnxmode | ( | bool | testtrig | ) |
Definition at line 3770 of file UtilityApp.cxx.
References check_nxoffline(), nxyter::NxChip::i2c(), nxyter::FebBase::numNx(), nxyter::FebBase::nx(), print_opererr(), and nxyter::NxI2c::setTestModes().
Referenced by cmd_autoped().
void autotrim_print_rates | ( | const std::vector< int > & | npulses, | |
double | time | |||
) |
Definition at line 4217 of file UtilityApp.cxx.
Referenced by cmd_autotrim().
void autotrim_print_trim | ( | const nxyter::NxContext & | cntx_trim | ) |
Definition at line 4230 of file UtilityApp.cxx.
References nxyter::NxContext::getThresholdTrim().
Referenced by cmd_autotrim().
void autotrim_print_trim_dbg | ( | const nxyter::NxContext & | cntx_trim, | |
const std::vector< int > & | trim_min, | |||
const std::vector< int > & | trim_max | |||
) |
Definition at line 4244 of file UtilityApp.cxx.
References nxyter::NxContext::getThresholdTrim().
int check_daq | ( | bool | needdaq | ) |
Check whether ROC connection in DAQ mode required and available.
needdaq | if true a ROC connection in DAQ mode is required |
Definition at line 825 of file UtilityApp.cxx.
Referenced by args_check().
int check_feb | ( | bool | needfeb = true |
) |
Check whether FEB connection is required and available.
needfeb | if true a FEB connection is required |
Definition at line 809 of file UtilityApp.cxx.
Referenced by args_check(), get_nxind(), and get_nxrange().
bool check_nxoffline | ( | int | nxind, | |
int | nxbeg, | |||
int | nxend | |||
) |
Check for nx 'offline' flag in case a nxind range is used.
Definition at line 1193 of file UtilityApp.cxx.
References nxyter::FebBase::getNxOffline().
Referenced by autoped_setnxmode(), cmd_autovbiass(), cmd_getnx(), cmd_idsigch(), cmd_scanmonadc(), cmd_scanvbiasf(), cmd_scanvbiass(), cmd_setnx(), cmd_setnxdef(), cmd_setnxmask(), cmd_setnxmode(), cmd_setnxpower(), cmd_setnxtrim(), cmd_testnxcntl(), and cmd_testnxregs().
int cmd_autoped | ( | ) |
Definition at line 3786 of file UtilityApp.cxx.
References args_check(), autoped_issue_system_message(), autoped_setnxmode(), nxyter::RocNx::fireTestPulse(), get_arg(), get_timestamp(), base::Gpio::getConfig(), kNeedFeb, base::Gpio::packConfig(), print_opererr(), base::Gpio::setConfig(), nxyter::FebUtil::startLoop(), roc::SYSMSG_USER_CALIBR_OFF, roc::SYSMSG_USER_CALIBR_ON, roc::SYSMSG_USER_RECONFIGURE, nxyter::FebUtil::testLoop(), and base::Gpio::unpackConfig().
int cmd_autosettrh | ( | ) |
Definition at line 4916 of file UtilityApp.cxx.
References counter, nxyter::RocNx::fireTestPulse(), get_arg(), roc::Message::getNxAdcValue(), roc::Message::getNxChNum(), roc::Message::getNxNumber(), nxyter::NxChip::i2c(), roc::Message::isHitMsg(), nxyter::kDoMask, nxyter::QuickDaq::msg(), nxyter::FebBase::numNx(), nxyter::FebBase::nx(), nxyter::NxContext::setChannelMaskBit(), nxyter::NxI2c::setContext(), roc::I2cDevice::setRegister(), nxyter::QuickDaq::startRun(), and nxyter::QuickDaq::testRun().
int cmd_autotrim | ( | ) |
Definition at line 4271 of file UtilityApp.cxx.
References acquire_data(), args_check(), autotrim_print_rates(), autotrim_print_trim(), get_arg(), get_npuls_avg(), get_nxrange(), get_opt(), nxyter::NxContext::getChannelMaskBit(), nxyter::NxI2c::getContext(), roc::I2cDevice::getRegister(), nxyter::NxContext::getThresholdTrim(), nxyter::NxChip::i2c(), nxyter::kDoMask, nxyter::kDoTrim, kNeedDaq, kNeedFeb, nxyter::kNxRegVth, nxyter::FebBase::nx(), print_opererr(), nxyter::NxI2c::setContext(), roc::I2cDevice::setRegister(), and nxyter::NxContext::setThresholdTrim().
int cmd_autovbiass | ( | ) |
Definition at line 2914 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_arg(), get_nxrange(), get_opt(), get_vbiass_data(), nxyter::NxI2c::getContext(), nxyter::NxChip::i2c(), nxyter::kDoCore, kNeedDaq, kNeedFeb, nxyter::kNxRegVbiasS, nxyter::FebBase::nx(), print_opererr(), nxyter::FebBase::printNxHeadLine(), nxyter::NxI2c::setContext(), roc::I2cDevice::setRegister(), nxyter::NxI2c::setTestModes(), nxyter::FebUtil::startLoop(), and nxyter::FebUtil::testLoop().
int cmd_board | ( | ) |
Definition at line 1366 of file UtilityApp.cxx.
References add_cmdlist(), feet::RocFeet::addAddrMap(), nxyter::MainAdc::addAddrMap(), nxyter::RocNx::addAddrMap(), base::Gpio::addAddrMap(), roc::I2cDevice::addAddrMap(), args_check(), base::Board::Connect(), gBoardName, base::Board::get(), get_arg(), base::Board::getFrontendKind(), base::Board::getRole(), base::Board::isFile(), base::kind_newNX, base::kind_nXYTER, base::kind_oldFEET, print_opererr(), reset_cmdlist(), ROC_HWV, and ROC_NX_DELAY_LTS.
int cmd_discover | ( | ) |
Definition at line 1522 of file UtilityApp.cxx.
References args_check(), get_opt(), kNeedRocBoard, and nxyter::FebUtil::probe().
int cmd_dlm | ( | ) |
Definition at line 1532 of file UtilityApp.cxx.
References get_arg(), and roc::Board::invokeDLM().
int cmd_feb | ( | ) |
Definition at line 1547 of file UtilityApp.cxx.
References args_check(), nxyter::FebBase::discoverFebs(), get_arg(), base::Board::getRole(), kNeedBoard, nxyter::FebBase::newFeb(), and nxyter::FebBase::typeToString().
int cmd_firepulser | ( | ) |
Definition at line 2179 of file UtilityApp.cxx.
References args_check(), delay(), nxyter::RocNx::fireTestPulse(), get_arg(), get_opt(), base::Gpio::getConfig(), kNeedBoard, base::Gpio::packConfig(), print_opererr(), base::Gpio::setConfig(), and base::Gpio::unpackConfig().
bool cmd_full_short | ( | const char * | cmd, | |
std::string & | cmdfull, | |||
std::string & | cmdshort | |||
) |
Definition at line 907 of file UtilityApp.cxx.
Referenced by cmd_help(), and process_command().
int cmd_getadcdirect | ( | ) |
Definition at line 2684 of file UtilityApp.cxx.
References nxyter::FebBase::adc(), args_check(), get_opt(), nxyter::MainAdc::getAdcDirect(), kNeedFeb, and print_opererr().
int cmd_geti2c | ( | ) |
Definition at line 2534 of file UtilityApp.cxx.
References args_check(), get_arg(), get_opt(), nxyter::FebBase::getPortNumber(), kNeedBoard, kNeedFeb, base::Board::operErrToString(), print_loop_stats(), nxyter::FebUtil::startLoop(), and nxyter::FebUtil::testLoop().
int cmd_getnx | ( | ) |
Definition at line 2310 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_arg(), get_nxrange(), nxyter::FebBase::getPortNumber(), roc::I2cDevice::getRegister(), roc::I2cDevice::getSlaveAddr(), nxyter::NxChip::i2c(), kNeedFeb, nxyter::kNxRegdelayClock1, nxyter::kNxRegdelayClock2, nxyter::kNxRegdelayClock3, nxyter::kNxRegdelayTestPuls, nxyter::kNxRegdelayTestTrig, nxyter::kNxRegTrimDAQPower, nxyter::FebBase::nx(), print_opererr(), nxyter::NxI2c::registerName(), and nxyter::NxI2c::settingToDelay().
int cmd_getroc | ( | ) |
Definition at line 4052 of file UtilityApp.cxx.
References args_check(), base::Board::findRegAddressByName(), base::Board::get(), get_arg(), base::Board::kAddrError, kNeedBoard, and print_opererr().
int cmd_help | ( | ) |
Definition at line 1202 of file UtilityApp.cxx.
References cmd_full_short(), get_arg(), and get_opt().
int cmd_ident | ( | ) |
Definition at line 1494 of file UtilityApp.cxx.
References gBoardName, and get_timestamp().
int cmd_idsigch | ( | ) |
Definition at line 4608 of file UtilityApp.cxx.
References acquire_data(), nxyter::FebUtil::acquireTestTriggerData(), nxyter::NxDataSummary::analyse(), args_check(), check_nxoffline(), get_mean(), get_nxrange(), nxyter::NxI2c::getContext(), nxyter::NxDataSummary::getMedian(), nxyter::NxChip::i2c(), nxyter::kDoCore, kNeedDaq, kNeedFeb, nxyter::FebBase::nx(), print_opererr(), nxyter::FebBase::printNxHeadLine(), nxyter::DistFuncArray::setMaxEntries(), nxyter::NxI2c::setTestModes(), nxyter::FebUtil::startLoop(), and nxyter::FebUtil::testLoop().
int cmd_initfeb | ( | ) |
Definition at line 1507 of file UtilityApp.cxx.
References nxyter::FebBase::initRoc().
int cmd_printadc | ( | ) |
Definition at line 1780 of file UtilityApp.cxx.
References nxyter::FebBase::adc(), args_check(), kNeedFeb, and nxyter::MainAdc::printRegisters().
int cmd_printdata | ( | ) |
Definition at line 3639 of file UtilityApp.cxx.
References nxyter::NxDataSummary::analyse(), args_check(), nxyter::RocNx::fireTestPulse(), get_arg(), get_opt(), get_timestamp(), nxyter::QuickDaq::getMsgEpoch(), roc::Message::getNxAdcValue(), roc::Message::getNxChNum(), roc::Message::getNxNumber(), nxyter::QuickDaq::getStartTime(), nxyter::QuickDaq::getStopTime(), base::Board::isFile(), roc::Message::isHitMsg(), kNeedDaq, nxyter::QuickDaq::msg(), roc::msg_print_Prefix, nxyter::NxDataSummary::print(), print_opererr(), roc::Message::printData(), nxyter::RocNx::resetRocNxTs(), nxyter::QuickDaq::startRun(), nxyter::QuickDaq::stats(), and nxyter::QuickDaq::testRun().
int cmd_printdatadbg | ( | ) |
Definition at line 4095 of file UtilityApp.cxx.
References args_check(), roc::Board::clearRocFifo(), get_arg(), get_opt(), nxyter::RocNx::getDataDebug(), kNeedDaq, print_opererr(), nxyter::RocNx::resetRocNxTs(), nxyter::RocNx::setDebugMode(), nxyter::FebUtil::startLoop(), and nxyter::FebUtil::testLoop().
int cmd_printfeb | ( | ) |
Definition at line 1760 of file UtilityApp.cxx.
References args_check(), get_opt(), nxyter::kDoCore, nxyter::kDoMask, nxyter::kDoTrim, kNeedFeb, and nxyter::FebBase::printRegisters().
int cmd_printgpio | ( | ) |
Definition at line 1972 of file UtilityApp.cxx.
References args_check(), base::Gpio::getConfig(), base::Gpio::getSyncBaud(), base::Gpio::getSyncScale(), kNeedBoard, print_opererr(), and base::Gpio::unpackConfig().
int cmd_printid | ( | ) |
Definition at line 1725 of file UtilityApp.cxx.
References args_check(), base::Board::get(), base::Board::getTransportKind(), kNeedRocBoard, ROC_ETH_HWV, ROC_ETH_SWV, ROC_HWV, ROC_NX_HWV, ROC_OPTICS_HWV, ROC_TYPE, and base::Board::versionToString().
int cmd_printmon | ( | ) |
Definition at line 1815 of file UtilityApp.cxx.
References args_check(), nxyter::FebBase::getMonAdc(), kNeedFeb, nxyter::FebBase::monAdcSupport(), and print_opererr().
int cmd_printnx | ( | ) |
Definition at line 1789 of file UtilityApp.cxx.
References args_check(), get_nxrange(), get_opt(), nxyter::FebBase::getNxOffline(), nxyter::NxChip::i2c(), nxyter::kDoCore, nxyter::kDoMask, nxyter::kDoTrim, kNeedFeb, nxyter::FebBase::nx(), nxyter::FebBase::printNxHeadLine(), and nxyter::NxI2c::printRegisters().
int cmd_printroc | ( | ) |
Definition at line 1642 of file UtilityApp.cxx.
References args_check(), base::Board::findRegNameByAddress(), base::Board::get(), roc::Board::getRocFrontendKind(), base::Board::getTransportKind(), kNeedRocBoard, base::Board::operErrToString(), ROC_ETH_SWV, ROC_ETH_TEMAC_REG0, and ROC_NX_HWV.
int cmd_printrocmap | ( | ) |
Definition at line 4006 of file UtilityApp.cxx.
References args_check(), get_opt(), kNeedBoard, and base::Board::printRegAddressMap().
int cmd_printstatus | ( | ) |
Definition at line 2066 of file UtilityApp.cxx.
References args_check(), base::Gpio::getConfig(), nxyter::NxI2c::getContext(), nxyter::NxChip::getNxNumber(), nxyter::FebBase::getNxOffline(), nxyter::FebBase::getPortNumber(), nxyter::NxContext::getRegister(), base::Gpio::getSyncScale(), nxyter::NxChip::i2c(), nxyter::kDoCore, kNeedRocBoard, nxyter::kNxC0TestPulsEnable, nxyter::kNxC0TestTrigEnable, nxyter::kNxC1FrontEndPolarity, nxyter::kNxRegConfig0, nxyter::kNxRegConfig1, nxyter::kNxRegiTWC, nxyter::kNxRegVbiasF, nxyter::kNxRegVbiasS, nxyter::kNxRegVcg, nxyter::kNxRegVth, nxyter::FebBase::numNx(), nxyter::FebBase::nx(), base::Board::operErrToString(), print_opererr(), and base::Gpio::unpackConfig().
int cmd_puti2c | ( | ) |
Definition at line 2597 of file UtilityApp.cxx.
References args_check(), get_arg(), nxyter::FebBase::getPortNumber(), kNeedBoard, kNeedFeb, and base::Board::operErrToString().
int cmd_putroc | ( | ) |
Definition at line 4017 of file UtilityApp.cxx.
References args_check(), base::Board::findRegAddressByName(), get_arg(), base::Board::kAddrError, kNeedBoard, print_opererr(), and base::Board::put().
int cmd_quit | ( | ) |
Definition at line 1359 of file UtilityApp.cxx.
int cmd_resetnxi2cbus | ( | ) |
Definition at line 2484 of file UtilityApp.cxx.
References args_check(), kNeedFeb, and nxyter::FebBase::resetNxI2cBus().
int cmd_resetnxi2creg | ( | ) |
Definition at line 2493 of file UtilityApp.cxx.
References args_check(), kNeedFeb, and nxyter::FebBase::resetNxI2cRegister().
int cmd_resetrocnxts | ( | ) |
Definition at line 4084 of file UtilityApp.cxx.
References print_opererr(), and nxyter::RocNx::resetRocNxTs().
int cmd_restartbrd | ( | ) |
Definition at line 3992 of file UtilityApp.cxx.
References args_check(), kNeedBoard, and base::Board::restartBoard().
int cmd_saverocconf | ( | ) |
Definition at line 3976 of file UtilityApp.cxx.
References args_check(), kNeedRocBoard, and roc::UdpBoard::saveConfig().
int cmd_scanadclat | ( | ) |
Definition at line 3106 of file UtilityApp.cxx.
References nxyter::FebUtil::acquireTestTriggerData(), nxyter::FebBase::adc(), args_check(), nxyter::NxDataSummary::full(), get_arg(), get_nxind(), get_opt(), nxyter::MainAdc::getChannelLatency(), nxyter::MainAdc::getClockDelayBufg(), nxyter::MainAdc::getClockDelaySrInit(), nxyter::NxI2c::getContext(), nxyter::NxDataSummary::getMax(), nxyter::NxDataSummary::getMedian(), nxyter::NxDataSummary::getMin(), nxyter::NxChip::getNxNumber(), nxyter::NxContext::getRegister(), nxyter::NxDataSummary::getWidth50(), nxyter::NxDataSummary::getWidth80(), nxyter::NxChip::i2c(), nxyter::kDoCore, nxyter::kDoMask, kNeedDaq, kNeedFeb, nxyter::kNxC0TestTrigEnable, nxyter::kNxRegConfig0, nxyter::kNxRegVbiasS, nxyter::NxDataSummary::numEntries(), nxyter::FebBase::nx(), print_opererr(), nxyter::MainAdc::setChannelLatency(), nxyter::NxContext::setChannelMaskBit(), nxyter::MainAdc::setClockDelay(), nxyter::MainAdc::setClockDelayBufg(), nxyter::MainAdc::setClockDelaySrInit(), nxyter::NxI2c::setContext(), nxyter::NxContext::setRegister(), nxyter::NxContext::setToDefault(), nxyter::FebUtil::startLoop(), and nxyter::FebUtil::testLoop().
int cmd_scanmonadc | ( | ) |
Definition at line 2810 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_arg(), get_nxrange(), nxyter::NxI2c::getContext(), nxyter::FebBase::getMonAdc(), nxyter::NxChip::i2c(), nxyter::kDoCore, kNeedFeb, nxyter::FebBase::nx(), print_opererr(), nxyter::FebBase::printNxHeadLine(), nxyter::NxI2c::setContext(), roc::I2cDevice::setRegister(), nxyter::FebUtil::startLoop(), and nxyter::FebUtil::testLoop().
int cmd_scanvbiasf | ( | ) |
Definition at line 3034 of file UtilityApp.cxx.
References nxyter::FebUtil::acquireTestPulserData(), nxyter::DistFunc::addEntry(), args_check(), check_nxoffline(), get_arg(), get_nxrange(), get_opt(), nxyter::NxI2c::getContext(), nxyter::NxDataSummary::getMedian(), nxyter::NxChip::getNxNumber(), nxyter::NxDataSummary::getWidth50(), nxyter::NxChip::i2c(), nxyter::kDoCore, nxyter::kDoMask, kNeedDaq, kNeedFeb, nxyter::kNxRegVbiasF, nxyter::NxDataSummary::numEntries(), nxyter::FebBase::nx(), nxyter::NxDataSummary::print(), print_dfa_ent_med_w50(), print_opererr(), nxyter::FebBase::printNxHeadLine(), nxyter::NxI2c::setContext(), roc::I2cDevice::setRegister(), nxyter::NxI2c::setTestModes(), nxyter::FebUtil::startLoop(), nxyter::QuickDaq::stats(), and nxyter::FebUtil::testLoop().
int cmd_scanvbiass | ( | ) |
Definition at line 2866 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_arg(), get_nxrange(), get_opt(), get_vbiass_data(), nxyter::NxI2c::getContext(), nxyter::NxChip::i2c(), nxyter::kDoCore, kNeedDaq, kNeedFeb, nxyter::FebBase::nx(), print_opererr(), nxyter::FebBase::printNxHeadLine(), nxyter::NxI2c::setContext(), nxyter::NxI2c::setTestModes(), nxyter::FebUtil::startLoop(), and nxyter::FebUtil::testLoop().
int cmd_setadc | ( | ) |
Definition at line 2638 of file UtilityApp.cxx.
References nxyter::FebBase::adc(), args_check(), get_arg(), kNeedFeb, print_opererr(), and nxyter::MainAdc::setRegister().
int cmd_setadcclock | ( | ) |
Definition at line 2673 of file UtilityApp.cxx.
References nxyter::FebBase::adc(), args_check(), get_arg(), kNeedFeb, and nxyter::MainAdc::setClockDelay().
int cmd_setadcdef | ( | ) |
Definition at line 2628 of file UtilityApp.cxx.
References nxyter::FebBase::adc(), args_check(), kNeedFeb, print_opererr(), and nxyter::MainAdc::setToDefault().
int cmd_setadcpatt | ( | ) |
Definition at line 2652 of file UtilityApp.cxx.
References nxyter::FebBase::adc(), args_check(), get_arg(), kNeedFeb, print_opererr(), nxyter::MainAdc::setTestMode(), and nxyter::MainAdc::setUserPattern().
int cmd_setaux | ( | ) |
Definition at line 1928 of file UtilityApp.cxx.
References args_check(), get_arg(), kNeedBoard, print_opererr(), and base::Gpio::setConfig().
int cmd_setbrddef | ( | ) |
Definition at line 1841 of file UtilityApp.cxx.
References args_check(), kNeedBoard, print_opererr(), and base::Board::setToDefault().
int cmd_setdebug | ( | ) |
Definition at line 1470 of file UtilityApp.cxx.
References args_check(), get_arg(), kNeedRocBoard, and base::Board::setVerbosity().
int cmd_setfebdef | ( | ) |
Definition at line 2241 of file UtilityApp.cxx.
References args_check(), get_arg(), kNeedFeb, print_opererr(), and nxyter::FebBase::setToDefault().
int cmd_seti2c | ( | ) |
Definition at line 2502 of file UtilityApp.cxx.
References args_check(), get_arg(), get_opt(), nxyter::FebBase::getPortNumber(), kNeedFeb, base::Board::operErrToString(), print_loop_stats(), nxyter::FebUtil::startLoop(), and nxyter::FebUtil::testLoop().
int cmd_setlhwater | ( | ) |
Definition at line 1952 of file UtilityApp.cxx.
References get_arg(), and roc::UdpBoard::setRocLowHighWater().
int cmd_setnx | ( | ) |
Definition at line 2272 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), nxyter::NxI2c::delayToSetting(), get_arg(), get_nxrange(), nxyter::NxChip::i2c(), kNeedFeb, nxyter::kNxRegdelayClock1, nxyter::kNxRegdelayClock2, nxyter::kNxRegdelayClock3, nxyter::kNxRegdelayTestPuls, nxyter::kNxRegdelayTestTrig, nxyter::kNxRegTrimDAQPower, nxyter::FebBase::nx(), print_opererr(), and roc::I2cDevice::setRegister().
int cmd_setnxaddr | ( | ) |
Definition at line 1614 of file UtilityApp.cxx.
References args_check(), get_arg(), get_nxind(), nxyter::NxChip::i2c(), kNeedFeb, nxyter::FebBase::nx(), and roc::I2cDevice::setSlaveAddr().
int cmd_setnxdef | ( | ) |
Definition at line 2255 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_arg(), get_nxrange(), nxyter::NxChip::i2c(), kNeedFeb, nxyter::FebBase::nx(), print_opererr(), and nxyter::NxI2c::setToDefault().
int cmd_setnxmask | ( | ) |
Definition at line 2387 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_arg(), get_nxrange(), nxyter::NxI2c::getContext(), nxyter::NxChip::i2c(), nxyter::kDoMask, kNeedFeb, nxyter::FebBase::nx(), print_opererr(), nxyter::NxContext::setChannelMaskBit(), and nxyter::NxI2c::setContext().
int cmd_setnxmode | ( | ) |
Definition at line 2363 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_arg(), get_nxrange(), nxyter::NxChip::i2c(), kNeedFeb, nxyter::FebBase::nx(), print_opererr(), and nxyter::NxI2c::setTestModes().
int cmd_setnxoff | ( | ) |
Definition at line 1628 of file UtilityApp.cxx.
References args_check(), get_arg(), get_nxind(), kNeedFeb, and nxyter::FebBase::setNxOffline().
int cmd_setnxpower | ( | ) |
Definition at line 2451 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_arg(), get_nxrange(), nxyter::NxI2c::getContext(), nxyter::NxChip::i2c(), nxyter::kDoTrim, kNeedFeb, nxyter::FebBase::nx(), print_opererr(), nxyter::NxI2c::setContext(), and nxyter::NxContext::setPowerOffMaskBit().
int cmd_setnxtrim | ( | ) |
Definition at line 2419 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_arg(), get_nxrange(), nxyter::NxI2c::getContext(), nxyter::NxChip::i2c(), nxyter::kDoTrim, kNeedFeb, nxyter::FebBase::nx(), print_opererr(), nxyter::NxI2c::setContext(), and nxyter::NxContext::setThresholdTrim().
int cmd_setrocdef | ( | ) |
Definition at line 1853 of file UtilityApp.cxx.
References args_check(), kNeedBoard, print_opererr(), nxyter::RocNx::setToDefault(), and base::Board::setToDefault().
int cmd_setsyncm | ( | ) |
Definition at line 1870 of file UtilityApp.cxx.
References args_check(), get_arg(), kNeedBoard, print_opererr(), base::Gpio::setSyncBaud(), and base::Gpio::setSyncScale().
int cmd_setsyncs | ( | ) |
Definition at line 1896 of file UtilityApp.cxx.
References args_check(), get_arg(), kNeedBoard, print_opererr(), base::Gpio::setConfig(), and base::Gpio::setSyncBaud().
int cmd_settrace | ( | ) |
Definition at line 1482 of file UtilityApp.cxx.
References args_check(), get_arg(), kNeedBoard, and base::Board::setOperTrace().
int cmd_testadccntl | ( | ) |
Definition at line 3603 of file UtilityApp.cxx.
References args_check(), get_arg(), kNeedFeb, print_loop_stats(), and nxyter::FebUtil::testMainAdcControlPath().
int cmd_testadcdata | ( | ) |
Definition at line 3615 of file UtilityApp.cxx.
References args_check(), get_arg(), kNeedFeb, print_loop_stats(), and nxyter::FebUtil::testMainAdcDataPath().
int cmd_testfebcntl | ( | ) |
Definition at line 3627 of file UtilityApp.cxx.
References args_check(), get_arg(), kNeedFeb, print_loop_stats(), and nxyter::FebUtil::testFebControlPathCombo().
int cmd_testnxcntl | ( | ) |
Definition at line 3564 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_arg(), get_nxrange(), nxyter::FebUtil::getLoopState(), kNeedFeb, print_loop_stats(), and nxyter::FebUtil::testNxControlPath().
int cmd_testnxdata | ( | ) |
Definition at line 3879 of file UtilityApp.cxx.
References args_check(), nxyter::RocNx::fireTestPulse(), get_arg(), get_opt(), kNeedDaq, kNeedFeb, nxyter::FebBase::numNx(), print_opererr(), nxyter::FebBase::setNxRegisterAll(), nxyter::FebBase::setNxTestModes(), nxyter::FebBase::setToDefault(), nxyter::FebUtil::startLoop(), nxyter::QuickDaq::startRun(), and nxyter::FebUtil::testLoop().
int cmd_testnxregs | ( | ) |
Definition at line 3585 of file UtilityApp.cxx.
References args_check(), check_nxoffline(), get_nxrange(), nxyter::FebUtil::getLoopState(), kNeedFeb, print_loop_stats(), and nxyter::FebUtil::testNxRegisters().
int cmd_testrocaux | ( | ) |
Definition at line 3454 of file UtilityApp.cxx.
References args_check(), get_arg(), get_opt(), get_timestamp(), roc::Message::getAuxChNum(), roc::Message::getAuxFalling(), roc::Message::getAuxTs(), nxyter::QuickDaq::getMsgTime(), nxyter::QuickDaq::getStartTime(), nxyter::QuickDaq::getStopTime(), roc::Message::isAuxMsg(), kNeedDaq, nxyter::QuickDaq::msg(), print_daq_stats(), nxyter::QuickDaq::startRun(), nxyter::QuickDaq::stats(), and nxyter::QuickDaq::testRun().
int cmd_testrocsync | ( | ) |
Definition at line 3326 of file UtilityApp.cxx.
References args_check(), get_arg(), get_opt(), get_timestamp(), nxyter::QuickDaq::getMsgTime(), nxyter::QuickDaq::getStartTime(), nxyter::QuickDaq::getStopTime(), roc::Message::getSyncChNum(), roc::Message::getSyncData(), roc::Message::getSyncTs(), roc::Message::getSysMesData(), roc::Message::getSysMesType(), roc::Message::isSyncMsg(), roc::Message::isSysMsg(), kNeedDaq, nxyter::QuickDaq::msg(), print_daq_stats(), nxyter::QuickDaq::startRun(), nxyter::QuickDaq::stats(), and nxyter::QuickDaq::testRun().
int get_arg | ( | std::string & | arg, | |
const char * | aname = 0 | |||
) |
int get_arg | ( | std::string & | arg, | |
const char * | aname, | |||
bool & | defaulting | |||
) |
Get a string
argument, returns also defaulting status.
Definition at line 999 of file UtilityApp.cxx.
References argsopt, and argspos.
Referenced by cmd_autoped(), cmd_autosettrh(), cmd_autotrim(), cmd_autovbiass(), cmd_board(), cmd_dlm(), cmd_feb(), cmd_firepulser(), cmd_geti2c(), cmd_getnx(), cmd_getroc(), cmd_help(), cmd_printdata(), cmd_printdatadbg(), cmd_puti2c(), cmd_putroc(), cmd_scanadclat(), cmd_scanmonadc(), cmd_scanvbiasf(), cmd_scanvbiass(), cmd_setadc(), cmd_setadcclock(), cmd_setadcpatt(), cmd_setaux(), cmd_setdebug(), cmd_setfebdef(), cmd_seti2c(), cmd_setlhwater(), cmd_setnx(), cmd_setnxaddr(), cmd_setnxdef(), cmd_setnxmask(), cmd_setnxmode(), cmd_setnxoff(), cmd_setnxpower(), cmd_setnxtrim(), cmd_setsyncm(), cmd_setsyncs(), cmd_settrace(), cmd_testadccntl(), cmd_testadcdata(), cmd_testfebcntl(), cmd_testnxcntl(), cmd_testnxdata(), cmd_testrocaux(), cmd_testrocsync(), get_arg(), get_nxind(), and get_nxrange().
int get_arg | ( | bool & | arg, | |
const char * | aname = 0 | |||
) |
int get_arg | ( | int32_t & | arg, | |
const char * | aname = 0 , |
|||
int32_t | min = (1<<31) , |
|||
int32_t | max = ~(1<<31) | |||
) |
Get a int32_t
type argument.
Definition at line 1037 of file UtilityApp.cxx.
References get_arg(), and trim_whitespace().
int get_arg | ( | double & | arg, | |
const char * | aname = 0 | |||
) |
Get a double
type argument.
Definition at line 1081 of file UtilityApp.cxx.
References get_arg(), and trim_whitespace().
float get_mean | ( | std::vector< float > const & | vect | ) |
Definition at line 4597 of file UtilityApp.cxx.
Referenced by cmd_idsigch().
float get_npuls_avg | ( | const std::vector< int > & | npuls, | |
int | nchactive | |||
) |
Definition at line 4258 of file UtilityApp.cxx.
Referenced by cmd_autotrim().
int get_nxind | ( | int32_t & | nx, | |
const char * | aname = 0 | |||
) |
Get a nXYTER index type argument.
Definition at line 1123 of file UtilityApp.cxx.
References check_feb(), get_arg(), and nxyter::FebBase::numNx().
Referenced by cmd_scanadclat(), cmd_setnxaddr(), and cmd_setnxoff().
int get_nxrange | ( | int32_t & | nxbeg, | |
int32_t & | nxend, | |||
const char * | aname = 0 | |||
) |
Get a 'range of nXYTER index' type argument.
Definition at line 1139 of file UtilityApp.cxx.
References check_feb(), get_arg(), nxyter::FebBase::numNx(), and trim_whitespace().
Referenced by cmd_autotrim(), cmd_autovbiass(), cmd_getnx(), cmd_idsigch(), cmd_printnx(), cmd_scanmonadc(), cmd_scanvbiasf(), cmd_scanvbiass(), cmd_setnx(), cmd_setnxdef(), cmd_setnxmask(), cmd_setnxmode(), cmd_setnxpower(), cmd_setnxtrim(), cmd_testnxcntl(), and cmd_testnxregs().
bool get_opt | ( | const std::string & | opt | ) |
Get an command option of the form "-x".
Definition at line 1179 of file UtilityApp.cxx.
References argsopt.
Referenced by cmd_autotrim(), cmd_autovbiass(), cmd_discover(), cmd_firepulser(), cmd_getadcdirect(), cmd_geti2c(), cmd_help(), cmd_printdata(), cmd_printdatadbg(), cmd_printfeb(), cmd_printnx(), cmd_printrocmap(), cmd_scanadclat(), cmd_scanvbiasf(), cmd_scanvbiass(), cmd_seti2c(), cmd_testnxdata(), cmd_testrocaux(), and cmd_testrocsync().
std::string get_timestamp | ( | const char * | fields = "dtm" |
) |
Definition at line 924 of file UtilityApp.cxx.
Referenced by cmd_autoped(), cmd_ident(), cmd_printdata(), cmd_testrocaux(), and cmd_testrocsync().
void get_vbiass_data | ( | int | nxind, | |
int | vb, | |||
float & | med, | |||
int | npuls, | |||
bool | opt_v, | |||
bool | phead | |||
) |
Definition at line 2776 of file UtilityApp.cxx.
References nxyter::FebUtil::acquireTestTriggerData(), nxyter::DistFunc::addEntry(), nxyter::DistFunc::getMedian(), nxyter::NxDataSummary::getMedian(), nxyter::NxChip::getNxNumber(), nxyter::NxDataSummary::getWidth50(), nxyter::NxChip::i2c(), nxyter::kNxRegVbiasS, nxyter::NxDataSummary::numEntries(), nxyter::FebBase::nx(), nxyter::NxDataSummary::print(), print_dfa_ent_med_w50(), print_opererr(), roc::I2cDevice::setRegister(), and nxyter::QuickDaq::stats().
Referenced by cmd_autovbiass(), and cmd_scanvbiass().
void hdl_int | ( | int | sig, | |
siginfo_t * | info, | |||
void * | cnxt | |||
) |
Definition at line 4820 of file UtilityApp.cxx.
References gIntCount, nxyter::FebUtil::interruptLoop(), and nxyter::QuickDaq::interruptRun().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 4845 of file UtilityApp.cxx.
References base::Board::Close(), process_command(), reset_cmdlist(), and trim_whitespace().
void print_40f_41f | ( | float | val | ) |
Definition at line 2712 of file UtilityApp.cxx.
Referenced by print_dfa_ent_med_w50().
void print_daq_stats | ( | const char * | text, | |
uint64_t | cnt, | |||
int | ecnt | |||
) |
Definition at line 980 of file UtilityApp.cxx.
References nxyter::QuickDaq::getStartTime(), and nxyter::QuickDaq::getStopTime().
Referenced by cmd_testrocaux(), and cmd_testrocsync().
void print_dfa_ent_med_w50 | ( | int | vb, | |
int | ncha, | |||
nxyter::DistFunc & | df_ent, | |||
nxyter::DistFunc & | df_med, | |||
nxyter::DistFunc & | df_w50, | |||
bool | mode_ent, | |||
bool | phead | |||
) |
Definition at line 2724 of file UtilityApp.cxx.
References nxyter::DistFunc::getMax(), nxyter::DistFunc::getMedian(), nxyter::DistFunc::getMin(), nxyter::DistFunc::getWidth(), and print_40f_41f().
Referenced by cmd_scanvbiasf(), and get_vbiass_data().
void print_loop_stats | ( | const char * | text, | |
int | ecnt | |||
) |
Definition at line 963 of file UtilityApp.cxx.
References nxyter::FebUtil::getLoopCount(), nxyter::FebUtil::getStartLoopTime(), and nxyter::FebUtil::now().
Referenced by cmd_geti2c(), cmd_seti2c(), cmd_testadccntl(), cmd_testadcdata(), cmd_testfebcntl(), cmd_testnxcntl(), and cmd_testnxregs().
int print_opererr | ( | const char * | text, | |
int | rc | |||
) |
Definition at line 951 of file UtilityApp.cxx.
References base::Board::operErrToString().
Referenced by autoped_issue_system_message(), autoped_setnxmode(), cmd_autoped(), cmd_autotrim(), cmd_autovbiass(), cmd_board(), cmd_firepulser(), cmd_getadcdirect(), cmd_getnx(), cmd_getroc(), cmd_idsigch(), cmd_printdata(), cmd_printdatadbg(), cmd_printgpio(), cmd_printmon(), cmd_printstatus(), cmd_putroc(), cmd_resetrocnxts(), cmd_scanadclat(), cmd_scanmonadc(), cmd_scanvbiasf(), cmd_scanvbiass(), cmd_setadc(), cmd_setadcdef(), cmd_setadcpatt(), cmd_setaux(), cmd_setbrddef(), cmd_setfebdef(), cmd_setnx(), cmd_setnxdef(), cmd_setnxmask(), cmd_setnxmode(), cmd_setnxpower(), cmd_setnxtrim(), cmd_setrocdef(), cmd_setsyncm(), cmd_setsyncs(), cmd_testnxdata(), and get_vbiass_data().
int process_command | ( | const std::string & | line, | |
int | level | |||
) |
Definition at line 4674 of file UtilityApp.cxx.
References argsopt, argspos, cmd_full_short(), gIntCount, and trim_whitespace().
Referenced by main().
void reset_cmdlist | ( | ) |
Definition at line 793 of file UtilityApp.cxx.
References add_cmdlist().
Referenced by cmd_board(), and main().
void trim_whitespace | ( | std::string & | str | ) |
Remove leading/trailing white space (blank, tab) from a string.
Will remove all leading and trailing white space characters from str.
str | string to be trimmed of white space |
Definition at line 894 of file UtilityApp.cxx.
Referenced by get_arg(), get_nxrange(), main(), and process_command().
std::vector<std::string> argsopt |
Definition at line 81 of file UtilityApp.cxx.
Referenced by args_check(), get_arg(), get_opt(), and process_command().
std::vector<std::string> argspos |
Definition at line 80 of file UtilityApp.cxx.
Referenced by args_check(), get_arg(), and process_command().
Definition at line 175 of file UtilityApp.cxx.
Definition at line 178 of file UtilityApp.cxx.
Generic list for any kind of board
Definition at line 212 of file UtilityApp.cxx.
Definition at line 430 of file UtilityApp.cxx.
Command list for nXYTER-frontentds
Definition at line 307 of file UtilityApp.cxx.
Definition at line 470 of file UtilityApp.cxx.
{ { name: "set605def", func: cmd_setrocdef, shelp:" : set SP605 registers to default values", lhelp:" Note: use after board boot" }, { name: 0, func: 0, shelp:0, lhelp:0 } }
Command list for SP605 board
Definition at line 293 of file UtilityApp.cxx.
base::Board* gBaseBoard = 0 |
Definition at line 67 of file UtilityApp.cxx.
std::string gBoardName |
Definition at line 76 of file UtilityApp.cxx.
Referenced by cmd_board(), and cmd_ident().
nxyter::FebBase* gFeb = 0 |
Definition at line 72 of file UtilityApp.cxx.
base::Gpio* gGpio = 0 |
Definition at line 70 of file UtilityApp.cxx.
int gIntCount = 0 |
Definition at line 78 of file UtilityApp.cxx.
Referenced by hdl_int(), and process_command().
nxyter::QuickDaq* gQdaq = 0 |
Definition at line 73 of file UtilityApp.cxx.
roc::Board* gRocBoard = 0 |
Definition at line 68 of file UtilityApp.cxx.
nxyter::RocNx* gRocNx = 0 |
Definition at line 71 of file UtilityApp.cxx.
sp605::Board* gSP605Board = 0 |
Definition at line 69 of file UtilityApp.cxx.
nxyter::FebUtil* gUtil = 0 |
Definition at line 74 of file UtilityApp.cxx.
const char* history_file = "./.rocutil_history" [static] |
Definition at line 4842 of file UtilityApp.cxx.
const int history_max = 250 [static] |
Definition at line 4843 of file UtilityApp.cxx.