mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-10-31 07:01:40 +01:00
cli and test side wip
This commit is contained in:
1 parent
6df1aba669
commit
86ff8e7e79
13 files changed
+195
-4
No files matched your search
@@ -46,6 +46,7 @@ std::string ToString(const defs::gainMode s);
|
||||
std::string ToString(const defs::polarity s);
|
||||
std::string ToString(const defs::timingInfoDecoder s);
|
||||
std::string ToString(const defs::collectionMode s);
|
||||
std::string ToString(const defs::operationMode s);
|
||||
|
||||
std::string ToString(bool value);
|
||||
|
||||
@@ -59,6 +60,9 @@ std::ostream &operator<<(std::ostream &os,
|
||||
std::string ToString(const slsDetectorDefs::scanParameters &r);
|
||||
std::ostream &operator<<(std::ostream &os,
|
||||
const slsDetectorDefs::scanParameters &r);
|
||||
std::string ToString(const slsDetectorDefs::hdrParameters &r);
|
||||
std::ostream &operator<<(std::ostream &os,
|
||||
const slsDetectorDefs::hdrParameters &r);
|
||||
std::string ToString(const slsDetectorDefs::currentSrcParameters &r);
|
||||
std::ostream &operator<<(std::ostream &os,
|
||||
const slsDetectorDefs::currentSrcParameters &r);
|
||||
@@ -324,6 +328,7 @@ template <> defs::gainMode StringTo(const std::string &s);
|
||||
template <> defs::polarity StringTo(const std::string &s);
|
||||
template <> defs::timingInfoDecoder StringTo(const std::string &s);
|
||||
template <> defs::collectionMode StringTo(const std::string &s);
|
||||
template <> defs::operationMode StringTo(const std::string &s);
|
||||
|
||||
template <> uint8_t StringTo(const std::string &s);
|
||||
template <> uint16_t StringTo(const std::string &s);
|
||||
|
||||
@@ -527,6 +527,7 @@ enum streamingInterface {
|
||||
enum polarity { POSITIVE, NEGATIVE };
|
||||
enum timingInfoDecoder { SWISSFEL, SHINE };
|
||||
enum collectionMode { HOLE, ELECTRON };
|
||||
enum operationMode {SYNCHROTRON, FEL}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -560,6 +561,20 @@ enum streamingInterface {
|
||||
}
|
||||
} __attribute__((packed));
|
||||
|
||||
/** hdr structure */
|
||||
struct hdrParameters {
|
||||
int enable;
|
||||
operationMode opMode;
|
||||
|
||||
/** disable hdr mode */
|
||||
hdrParameters() : enable(0), opMode(SYNCHROTRON) {}
|
||||
/** enable hdr mode */
|
||||
hdrParameters(operationMode mode) : enable(1), opMode(mode) {}
|
||||
constexpr bool operator==(const hdrParameters &other) const {
|
||||
return ((enable == other.enable) && (opMode == other.opMode));
|
||||
}
|
||||
} __attribute__((packed));
|
||||
|
||||
struct currentSrcParameters {
|
||||
int enable;
|
||||
int fix;
|
||||
|
||||
Reference in new issue
Block a user