mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-18 07:47:12 +02:00
WIP
This commit is contained in:
@ -33,6 +33,10 @@ void Detector::setHostname(const std::vector<std::string> &value) {
|
||||
pimpl->setHostname(value);
|
||||
}
|
||||
|
||||
void Detector::setVirtualDetectorServers(int numServers, int startingPort) {
|
||||
pimpl->setVirtualDetectorServers(numServers, startingPort);
|
||||
}
|
||||
|
||||
int Detector::getShmId() const { return pimpl->getMultiId(); }
|
||||
|
||||
std::string Detector::getPackageVersion() const {
|
||||
@ -201,6 +205,42 @@ void Detector::setADCPhaseInDegrees(int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setSpeed, pos, defs::ADC_PHASE, value, 1);
|
||||
}
|
||||
|
||||
Result<int> Detector::getClockFrequency(int clkIndex, Positions pos) {
|
||||
return pimpl->Parallel(&slsDetector::getClockFrequency, pos, clkIndex);
|
||||
}
|
||||
|
||||
void Detector::setClockFrequency(int clkIndex, int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setClockFrequency, pos, clkIndex, value);
|
||||
}
|
||||
|
||||
Result<int> Detector::getClockPhase(int clkIndex, Positions pos) {
|
||||
return pimpl->Parallel(&slsDetector::getClockPhase, pos, clkIndex, false);
|
||||
}
|
||||
|
||||
void Detector::setClockPhase(int clkIndex, int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setClockPhase, pos, clkIndex, value, false);
|
||||
}
|
||||
|
||||
Result<int> Detector::getMaxClockPhaseShift(int clkIndex, Positions pos) {
|
||||
return pimpl->Parallel(&slsDetector::getMaxClockPhaseShift, pos, clkIndex);
|
||||
}
|
||||
|
||||
Result<int> Detector::getClockPhaseinDegrees(int clkIndex, Positions pos) {
|
||||
return pimpl->Parallel(&slsDetector::getClockPhase, pos, clkIndex, true);
|
||||
}
|
||||
|
||||
void Detector::setClockPhaseinDegrees(int clkIndex, int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setClockPhase, pos, clkIndex, value, true);
|
||||
}
|
||||
|
||||
Result<int> Detector::getClockDivider(int clkIndex, Positions pos) {
|
||||
return pimpl->Parallel(&slsDetector::getClockDivider, pos, clkIndex);
|
||||
}
|
||||
|
||||
void Detector::setClockDivider(int clkIndex, int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setClockDivider, pos, clkIndex, value);
|
||||
}
|
||||
|
||||
Result<int> Detector::getHighVoltage(Positions pos) const {
|
||||
return pimpl->Parallel(&slsDetector::setDAC, pos, -1, defs::HIGH_VOLTAGE,
|
||||
0);
|
||||
@ -1576,42 +1616,6 @@ Result<uint64_t> Detector::getRxCurrentFrameIndex(Positions pos) const {
|
||||
return pimpl->Parallel(&slsDetector::getReceiverCurrentFrameIndex, pos);
|
||||
}
|
||||
|
||||
Result<int> Detector::getClockFrequency(int clkIndex, Positions pos) {
|
||||
return pimpl->Parallel(&slsDetector::getClockFrequency, pos, clkIndex);
|
||||
}
|
||||
|
||||
void Detector::setClockFrequency(int clkIndex, int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setClockFrequency, pos, clkIndex, value);
|
||||
}
|
||||
|
||||
Result<int> Detector::getClockPhase(int clkIndex, Positions pos) {
|
||||
return pimpl->Parallel(&slsDetector::getClockPhase, pos, clkIndex, false);
|
||||
}
|
||||
|
||||
void Detector::setClockPhase(int clkIndex, int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setClockPhase, pos, clkIndex, value, false);
|
||||
}
|
||||
|
||||
Result<int> Detector::getMaxClockPhaseShift(int clkIndex, Positions pos) {
|
||||
return pimpl->Parallel(&slsDetector::getMaxClockPhaseShift, pos, clkIndex);
|
||||
}
|
||||
|
||||
Result<int> Detector::getClockPhaseinDegrees(int clkIndex, Positions pos) {
|
||||
return pimpl->Parallel(&slsDetector::getClockPhase, pos, clkIndex, true);
|
||||
}
|
||||
|
||||
void Detector::setClockPhaseinDegrees(int clkIndex, int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setClockPhase, pos, clkIndex, value, true);
|
||||
}
|
||||
|
||||
Result<int> Detector::getClockDivider(int clkIndex, Positions pos) {
|
||||
return pimpl->Parallel(&slsDetector::getClockDivider, pos, clkIndex);
|
||||
}
|
||||
|
||||
void Detector::setClockDivider(int clkIndex, int value, Positions pos) {
|
||||
pimpl->Parallel(&slsDetector::setClockDivider, pos, clkIndex, value);
|
||||
}
|
||||
|
||||
std::vector<int> Detector::getPortNumbers(int start_port) {
|
||||
int num_sockets_per_detector = 1;
|
||||
switch (getDetectorType({}).squash()) {
|
||||
|
Reference in New Issue
Block a user