* added api in detector class for adcvpp, taken out of dac list
This commit is contained in:
Dhanya Thattil
2022-10-20 10:58:56 +02:00
committed by GitHub
parent af300e0276
commit b7cdfbb4d2
8 changed files with 65 additions and 14 deletions

View File

@ -1999,6 +1999,14 @@ void Detector::setVoltage(defs::dacIndex index, int value, Positions pos) {
pimpl->Parallel(&Module::setDAC, pos, value, index, true);
}
Result<int> Detector::getADCVpp(bool mV, Positions pos) const {
return pimpl->Parallel(&Module::getDAC, pos, defs::ADC_VPP, mV);
}
void Detector::setADCVpp(int value, bool mV, Positions pos) {
pimpl->Parallel(&Module::setDAC, pos, value, defs::ADC_VPP, mV);
}
Result<uint32_t> Detector::getADCEnableMask(Positions pos) const {
return pimpl->Parallel(&Module::getADCEnableMask, pos);
}