mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 00:07:13 +02:00
tsquash
This commit is contained in:
@ -345,9 +345,7 @@ void Detector::startReadOut() {
|
||||
pimpl->Parallel(&slsDetector::startReadOut, {});
|
||||
}
|
||||
|
||||
void Detector::readAll() {
|
||||
pimpl->Parallel(&slsDetector::readAll, {});
|
||||
}
|
||||
void Detector::readAll() { pimpl->Parallel(&slsDetector::readAll, {}); }
|
||||
|
||||
void Detector::configureMAC(Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::configureMAC, pos);
|
||||
@ -565,7 +563,14 @@ Result<bool> Detector::getAutoCompDisable(Positions pos) const {
|
||||
}
|
||||
|
||||
void Detector::setPowerChip(bool on, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::powerChip, pos, static_cast<int>(on));
|
||||
if (on && pimpl->getNumberOfDetectors() > 3) {
|
||||
for (int i = 0; i != pimpl->getNumberOfDetectors(); ++i) {
|
||||
pimpl->powerChip(static_cast<int>(on), i);
|
||||
usleep(1000 * 1000);
|
||||
}
|
||||
} else {
|
||||
pimpl->Parallel(&slsDetector::powerChip, pos, static_cast<int>(on));
|
||||
}
|
||||
}
|
||||
|
||||
Result<bool> Detector::getPowerChip(Positions pos) const {
|
||||
@ -653,8 +658,7 @@ void Detector::setTrimEn(std::vector<int> energies, Positions pos) {
|
||||
}
|
||||
|
||||
void Detector::setGapPixelsEnable(bool enable, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::enableGapPixels, pos,
|
||||
static_cast<int>(enable));
|
||||
pimpl->setGapPixelsEnable(enable, pos);
|
||||
}
|
||||
|
||||
Result<bool> Detector::getGapPixelEnable(Positions pos) const {
|
||||
@ -683,47 +687,47 @@ Result<bool> Detector::getRxPadDeactivatedMod(Positions pos) const {
|
||||
return pimpl->Parallel(&slsDetector::setDeactivatedRxrPaddingMode, pos, -1);
|
||||
}
|
||||
|
||||
void Detector::setActive(bool active, Positions pos){
|
||||
void Detector::setActive(bool active, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::activate, pos, static_cast<int>(active));
|
||||
}
|
||||
|
||||
Result<bool> Detector::getActive(Positions pos) const{
|
||||
Result<bool> Detector::getActive(Positions pos) const {
|
||||
return pimpl->Parallel(&slsDetector::activate, pos, -1);
|
||||
}
|
||||
|
||||
void Detector::writeAdcRegister(uint32_t addr, uint32_t value, Positions pos){
|
||||
void Detector::writeAdcRegister(uint32_t addr, uint32_t value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::writeAdcRegister, pos, addr, value);
|
||||
}
|
||||
|
||||
Result<int> Detector::getReceiverDbitOffset(Positions pos) const{
|
||||
Result<int> Detector::getReceiverDbitOffset(Positions pos) const {
|
||||
return pimpl->Parallel(&slsDetector::getReceiverDbitOffset, pos);
|
||||
}
|
||||
|
||||
void Detector::setReceiverDbitOffset(int value, Positions pos){
|
||||
void Detector::setReceiverDbitOffset(int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setReceiverDbitOffset, pos, value);
|
||||
}
|
||||
|
||||
Result<std::vector<int>> Detector::getReceiverDbitList(Positions pos) const{
|
||||
Result<std::vector<int>> Detector::getReceiverDbitList(Positions pos) const {
|
||||
return pimpl->Parallel(&slsDetector::getReceiverDbitList, pos);
|
||||
}
|
||||
|
||||
void Detector::setReceiverDbitList(std::vector<int> list, Positions pos){
|
||||
void Detector::setReceiverDbitList(std::vector<int> list, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setReceiverDbitList, pos, list);
|
||||
}
|
||||
|
||||
Result<int> Detector::getExternalSampling(Positions pos) const{
|
||||
Result<int> Detector::getExternalSampling(Positions pos) const {
|
||||
return pimpl->Parallel(&slsDetector::getExternalSampling, pos);
|
||||
}
|
||||
|
||||
void Detector::setExternalSampling(bool value, Positions pos){
|
||||
void Detector::setExternalSampling(bool value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setExternalSampling, pos, value);
|
||||
}
|
||||
|
||||
Result<int> Detector::getExternalSamplingSource(Positions pos) const{
|
||||
Result<int> Detector::getExternalSamplingSource(Positions pos) const {
|
||||
return pimpl->Parallel(&slsDetector::getExternalSamplingSource, pos);
|
||||
}
|
||||
|
||||
void Detector::setExternalSamplingSource(int value, Positions pos){
|
||||
|
||||
void Detector::setExternalSamplingSource(int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setExternalSamplingSource, pos, value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user