mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-24 02:27:59 +02:00
WIP
This commit is contained in:
@ -475,35 +475,35 @@ typedef struct {
|
||||
} __attribute__((packed));
|
||||
#endif
|
||||
|
||||
|
||||
/** pattern structure */
|
||||
#ifdef __cplusplus
|
||||
struct patternParameters {
|
||||
#else
|
||||
typedef struct __attribute__((packed)){
|
||||
typedef struct __attribute__((packed)) {
|
||||
#endif
|
||||
uint64_t word[MAX_PATTERN_LENGTH];
|
||||
uint64_t patioctrl;
|
||||
uint32_t patlimits[2];
|
||||
uint32_t patloop[6];
|
||||
uint32_t patnloop[3];
|
||||
uint32_t patwait[3];
|
||||
uint64_t patwaittime[3];
|
||||
uint64_t ioctrl;
|
||||
uint32_t limits[2];
|
||||
// loop0 start, loop0 stop .. loop2 start, loop2 stop
|
||||
uint32_t loop[6];
|
||||
uint32_t nloop[3];
|
||||
uint32_t wait[3];
|
||||
uint64_t waittime[3];
|
||||
#ifdef __cplusplus
|
||||
public:
|
||||
patternParameters(){
|
||||
// Since the def has to be c compatible we can't use {} for the members
|
||||
public:
|
||||
patternParameters() {
|
||||
// Since the def has to be c compatible we can't use {} for the
|
||||
// members
|
||||
memset(this, 0, sizeof(patternParameters));
|
||||
}
|
||||
void load(const std::string& fname);
|
||||
void load(const std::string &fname);
|
||||
void save(const std::string &fname);
|
||||
void validate() const;
|
||||
} __attribute__((packed));
|
||||
#else
|
||||
} patternParameters;
|
||||
} patternParameters;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
protected:
|
||||
#endif
|
||||
|
@ -217,6 +217,7 @@ enum detFuncs {
|
||||
F_START_READOUT,
|
||||
F_SET_DEFAULT_DACS,
|
||||
F_IS_VIRTUAL,
|
||||
F_GET_PATTERN,
|
||||
|
||||
NUM_DET_FUNCTIONS,
|
||||
RECEIVER_ENUM_START = 256, /**< detector function should not exceed this
|
||||
@ -539,6 +540,7 @@ const char* getFunctionNameFromEnum(enum detFuncs func) {
|
||||
case F_START_READOUT: return "F_START_READOUT";
|
||||
case F_SET_DEFAULT_DACS: return "F_SET_DEFAULT_DACS";
|
||||
case F_IS_VIRTUAL: return "F_IS_VIRTUAL";
|
||||
case F_GET_PATTERN: return "F_GET_PATTERN";
|
||||
|
||||
case NUM_DET_FUNCTIONS: return "NUM_DET_FUNCTIONS";
|
||||
case RECEIVER_ENUM_START: return "RECEIVER_ENUM_START";
|
||||
|
Reference in New Issue
Block a user