mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-01 07:14:57 +01:00
gotthard2: on chip dacs
This commit is contained in:
@@ -1510,6 +1510,20 @@ int slsDetector::setDAC(int val, dacIndex index, int mV) {
|
||||
return retval;
|
||||
}
|
||||
|
||||
int slsDetector::getOnChipDAC(slsDetectorDefs::dacIndex index, int chipIndex) {
|
||||
int args[]{static_cast<int>(index), chipIndex};
|
||||
int retval = -1;
|
||||
sendToDetector(F_GET_ON_CHIP_DAC, args, retval);
|
||||
FILE_LOG(logDEBUG1) << "On chip DAC " << index << " (chip index:" << chipIndex << "): " << retval;
|
||||
return retval;
|
||||
}
|
||||
|
||||
void slsDetector::setOnChipDAC(slsDetectorDefs::dacIndex index, int chipIndex, int value) {
|
||||
int args[]{static_cast<int>(index), chipIndex, value};
|
||||
FILE_LOG(logDEBUG1) << "Setting On chip DAC " << index << " (chip index:" << chipIndex << ") to " << value;
|
||||
sendToDetector(F_SET_ON_CHIP_DAC, args, nullptr);
|
||||
}
|
||||
|
||||
int slsDetector::getADC(dacIndex index) {
|
||||
int retval = -1;
|
||||
FILE_LOG(logDEBUG1) << "Getting ADC " << index;
|
||||
|
||||
Reference in New Issue
Block a user