Public Member Functions | |
virtual | ~QEleInterface () |
destructor | |
Bool_t | ReadChannel (QEleChannelConfig &config, Bool_t useCache) |
read hardware configuration for the requested channel | |
Bool_t | ReadChannel (QEleChannelConfig &config) |
same as ReadChannel(config, true) | |
Bool_t | WriteChannel (const QEleChannelConfig &info, Bool_t useCache) |
write configuration to hardware | |
Bool_t | WriteChannel (const QEleChannelConfig &config) |
same as WriteChannel(config, true) | |
const QError & | GetError () const |
get QError object associated to last occurred error | |
void | SetSettingsBasket (UInt_t basket) |
reset cache and set settings basket to be used | |
void | Reset () |
reset cache | |
Static Public Member Functions | |
static QEleInterface & | GetInstance () |
singleton getter | |
Private Member Functions | |
QEleInterface () | |
constructor | |
Bool_t | ReadHardware (QEleChannelConfig &config) |
read data from hardware | |
Bool_t | InitClient (QSlowControlClient &client) |
perform slow control client initialization | |
void | ResetError () |
Private Attributes | |
QError | fError |
std::map< UInt_t, QEleChannelConfig > | fChannelsConfig |
UInt_t | fSettingsBasket |
Bool_t QEleInterface::ReadChannel | ( | QEleChannelConfig & | config, | |
Bool_t | useCache | |||
) |
read hardware configuration for the requested channel
config | this object stores the informations read from the hardware | |
useCache | whether or not to use cached data instead of reading data from a channel that was already read in the past. |
References fChannelsConfig, QEleChannelConfig::GetLg(), and ReadHardware().
Referenced by ReadChannel().
Bool_t QEleInterface::WriteChannel | ( | const QEleChannelConfig & | info, | |
Bool_t | useCache | |||
) |
write configuration to hardware
info | object storing configuration to be written | |
useCache | whether or not to use cached data as reference when writing new configuration to hardware |
References fChannelsConfig, fError, QEleChannelConfig::GetBias(), QEleChannelConfig::GetBiasPolarity(), QBaseClient::GetError(), QEleChannelConfig::GetGain(), QEleChannelConfig::GetInput(), QEleChannelConfig::GetLg(), QEleChannelConfig::GetLoadResistance(), QEleChannelConfig::GetOffsetDac(), QEleChannelConfig::GetOffsetHiBits(), QEleChannelConfig::GetOffsetPolarity(), QEleChannelConfig::GetOffsetSBit(), QEleChannelConfig::GetTestSignalNeg(), QEleChannelConfig::GetTestSignalPos(), InitClient(), ReadHardware(), QSlowControlClient::SetFEBias(), QSlowControlClient::SetFEBiasPolarity(), QSlowControlClient::SetFEGain(), QSlowControlClient::SetFEInput(), QSlowControlClient::SetFELoadResistor(), QSlowControlClient::SetFEOffsetDAC(), QSlowControlClient::SetFEOffsetMSB(), QSlowControlClient::SetFEOffsetPolarity(), QSlowControlClient::SetFEOffsetSpecialBit(), and QSlowControlClient::SetFETestSignal().
Referenced by ApplyElectronicsConfiguration(), and WriteChannel().
void QEleInterface::SetSettingsBasket | ( | UInt_t | basket | ) |
reset cache and set settings basket to be used
Do nothing if basket is the same as the one stored in this object
References Reset().
Referenced by QGuiEleMain::Init(), and QGuiEleMain::UpdateBasket().
Bool_t QEleInterface::ReadHardware | ( | QEleChannelConfig & | config | ) | [private] |
read data from hardware
config | object that will store read informations |
References fError, QBaseClient::GetError(), QSlowControlClient::GetFEBias(), QSlowControlClient::GetFEBiasPolarity(), QSlowControlClient::GetFEGain(), QSlowControlClient::GetFEInput(), QSlowControlClient::GetFELoadResistor(), QSlowControlClient::GetFEOffsetDAC(), QSlowControlClient::GetFEOffsetMSB(), QSlowControlClient::GetFEOffsetPolarity(), QSlowControlClient::GetFEOffsetSpecialBit(), QSlowControlClient::GetFETestSignal(), QEleChannelConfig::GetIsCold(), QEleChannelConfig::GetLg(), InitClient(), QEleChannelConfig::SetBias(), QEleChannelConfig::SetBiasPolarity(), QEleChannelConfig::SetGain(), QEleChannelConfig::SetInput(), QEleChannelConfig::SetLoadResistance(), QEleChannelConfig::SetOffsetDac(), QEleChannelConfig::SetOffsetHiBits(), QEleChannelConfig::SetOffsetPolarity(), QEleChannelConfig::SetOffsetSBit(), QEleChannelConfig::SetTestSignalNeg(), and QEleChannelConfig::SetTestSignalPos().
Referenced by ReadChannel(), and WriteChannel().
QError QEleInterface::fError [private] |
QError object storing last occurred error
Referenced by GetError(), InitClient(), ReadHardware(), and WriteChannel().
std::map<UInt_t, QEleChannelConfig> QEleInterface::fChannelsConfig [private] |
key: lg channel, value: object storing electronics parameters
Referenced by ReadChannel(), Reset(), and WriteChannel().