mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 17:18:00 +02:00
WIP
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#include "sls_detector_exceptions.h"
|
||||
#include <algorithm>
|
||||
#include <bitset>
|
||||
#include <chrono>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#else
|
||||
@ -451,6 +452,24 @@ typedef struct {
|
||||
uint32_t patwait[3]{};
|
||||
uint64_t patwaittime[3]{};
|
||||
} __attribute__((packed));
|
||||
|
||||
/** scan structure */
|
||||
struct scanParameters {
|
||||
dacIndex dacInd{DAC_0};
|
||||
int startOffset{0};
|
||||
int stopOffset{0};
|
||||
int stepSize{0};
|
||||
int64_t dacSettleTime_ns{100 * 1000};
|
||||
|
||||
scanParameters() = default;
|
||||
scanParameters(
|
||||
dacIndex dac, int start, int stop, int step,
|
||||
std::chrono::nanoseconds t = std::chrono::nanoseconds{10000})
|
||||
: dacInd(dac), startOffset(start), stopOffset(stop),
|
||||
stepSize(step) {
|
||||
dacSettleTime_ns = t.count();
|
||||
}
|
||||
} __attribute__((packed));
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user