mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-16 14:57:13 +02:00
inbetween WIP, startstatemachien ugly
This commit is contained in:
@ -451,6 +451,22 @@ void Module::setStartingFrameNumber(uint64_t value) {
|
||||
|
||||
void Module::sendSoftwareTrigger() { sendToDetectorStop(F_SOFTWARE_TRIGGER); }
|
||||
|
||||
bool Module::getScan() const {
|
||||
return static_cast<bool>(sendToDetector<int>(F_GET_SCAN));
|
||||
}
|
||||
|
||||
int Module::getNumberOfScanSteps() const {
|
||||
return sendToDetector<int>(F_GET_NUM_SCAN_STEPS);
|
||||
}
|
||||
|
||||
void Module::disableScan() { sendToDetector(F_DISABLE_SCAN); }
|
||||
|
||||
void Module::enableScan(const defs::dacIndex dac, const int start_offset,
|
||||
const int end_offset, const int step_size) {
|
||||
int args[]{static_cast<int>(dac), start_offset, end_offset, step_size};
|
||||
sendToDetector(F_ENABLE_SCAN, args, nullptr);
|
||||
}
|
||||
|
||||
// Network Configuration (Detector<->Receiver)
|
||||
|
||||
int Module::getNumberofUDPInterfacesFromShm() {
|
||||
|
Reference in New Issue
Block a user