mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
M3: fixed gain bits with negative polarity
This commit is contained in:
@ -1314,6 +1314,8 @@ class Detector {
|
||||
|
||||
void setGainCaps(int caps, Positions pos = {});
|
||||
|
||||
Result<int> getGainCaps(Positions pos = {});
|
||||
|
||||
///@{
|
||||
|
||||
/** @name CTB / Moench Specific */
|
||||
|
@ -1992,7 +1992,7 @@ std::string CmdProxy::GainCaps(int action){
|
||||
if (!args.empty())
|
||||
WrongNumberOfParameters(0);
|
||||
|
||||
auto tmp = det->getChipStatusRegister();
|
||||
auto tmp = det->getGainCaps();
|
||||
sls::Result<defs::M3_GainCaps> csr;
|
||||
for (auto val : tmp){
|
||||
if (val)
|
||||
|
@ -1623,6 +1623,10 @@ void Detector::setGainCaps(int caps, Positions pos){
|
||||
return pimpl->Parallel(&Module::setGainCaps, pos, caps);
|
||||
}
|
||||
|
||||
Result<int> Detector::getGainCaps(Positions pos){
|
||||
return pimpl->Parallel(&Module::getGainCaps, pos);
|
||||
}
|
||||
|
||||
|
||||
// CTB/ Moench Specific
|
||||
|
||||
|
@ -2006,6 +2006,10 @@ void Module::setGainCaps(int caps){
|
||||
sendToDetector<int>(F_SET_GAIN_CAPS, caps);
|
||||
}
|
||||
|
||||
int Module::getGainCaps(){
|
||||
return sendToDetector<int>(F_GET_GAIN_CAPS);
|
||||
}
|
||||
|
||||
// CTB / Moench Specific
|
||||
int Module::getNumberOfAnalogSamples() const {
|
||||
return sendToDetector<int>(F_GET_NUM_ANALOG_SAMPLES);
|
||||
|
@ -428,6 +428,7 @@ class Module : public virtual slsDetectorDefs {
|
||||
bool isMaster() const;
|
||||
int getChipStatusRegister() const;
|
||||
void setGainCaps(int caps);
|
||||
int getGainCaps();
|
||||
|
||||
/**************************************************
|
||||
* *
|
||||
|
Reference in New Issue
Block a user