1#ifndef PFLIB_ROC_H_INCLUDED
2#define PFLIB_ROC_H_INCLUDED
11#include "pflib/logging/Logging.h"
19 static const int N_REGISTERS_PER_PAGE = 32;
24 void setRunMode(
bool active =
true);
29 uint8_t getValue(
int page,
int offset);
30 void setValue(
int page,
int offset, uint8_t value);
34 bool getDirectAccess(
int reg,
int bit);
35 void setDirectAccess(
const std::string& name,
bool val);
36 void setDirectAccess(
int reg,
int bit,
bool val);
115 const uint64_t& val);
156 const uint64_t& val);
Definition of compiling and decompiling functions between page numbers, register numbers,...
The object that does the compiling.
Definition Compile.h:55
Base class which encapsulates the I2C interface, represents a single bus.
Definition I2C.h:18
Build a TestParameters parameter by parameter.
Definition ROC.h:149
test certain parameters before setting them back to old values
Definition ROC.h:129
TestParameters(const TestParameters &)=delete
cannot copy or assign this lock
~TestParameters()
applies the unset parameters to the ROC
Definition ROC.cxx:333
TestParameters(ROC &roc, std::map< std::string, std::map< std::string, uint64_t > > new_params)
Construct a set of test parameters.
Definition ROC.cxx:327
void dumpSettings(const std::string &filepath, bool decompile)
Dump the settings of the HGCROC into the input filepath.
Definition ROC.cxx:278
std::map< int, std::map< int, uint8_t > > applyParameters(const std::map< std::string, std::map< std::string, uint64_t > > ¶meters)
Apply the input parameter mapping onto the chip.
Definition ROC.cxx:217
void loadParameters(const std::string &file_path, bool prepend_defaults)
Load the input parameters onto the chip.
Definition ROC.cxx:249
std::map< std::string, uint64_t > getParameters(const std::string &page)
Get the parameters for the input page.
Definition ROC.cxx:191
TestParameters::Builder testParameters()
start a set of test parameters
Definition ROC.cxx:357
void setRegisters(const std::map< int, std::map< int, uint8_t > > ®isters)
set registers on the HGCROC to specific values
Definition ROC.cxx:140
void loadRegisters(const std::string &file_path)
set registers on the HGCROC to specific values
Definition ROC.cxx:180
std::map< std::string, std::map< std::string, uint64_t > > defaults()
Retrieve all of the manual-documented defaults for all parameters.
Definition ROC.cxx:213
std::map< int, std::map< int, uint8_t > > getRegisters(const std::map< int, std::map< int, uint8_t > > &selected={})
get registers from the HGCROC
Definition ROC.cxx:148
void applyParameter(const std::string &page, const std::string ¶m, const uint64_t &val)
Short-hand for applying a single parameter.
Definition ROC.cxx:271
logger get(const std::string &name)
Gets a logger with the input name for its channel.
Definition Logging.cxx:24
This version of the fast control code interfaces with the CMS Fast control library which can be contr...
Definition Backend.cxx:3
static void roc(const std::string &cmd, Target *pft)
ROC menu commands.
Definition roc.cxx:119