mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
merge conflict
This commit is contained in:
@ -38,6 +38,7 @@ std::string ToString(const defs::burstMode s);
|
||||
std::string ToString(const defs::timingSourceType s);
|
||||
std::string ToString(const defs::M3_GainCaps s);
|
||||
std::string ToString(const defs::portPosition s);
|
||||
std::string ToString(const defs::EthernetInterface s);
|
||||
|
||||
std::string ToString(const slsDetectorDefs::xy &coord);
|
||||
std::ostream &operator<<(std::ostream &os, const slsDetectorDefs::xy &coord);
|
||||
@ -301,6 +302,7 @@ template <> defs::burstMode StringTo(const std::string &s);
|
||||
template <> defs::timingSourceType StringTo(const std::string &s);
|
||||
template <> defs::M3_GainCaps StringTo(const std::string &s);
|
||||
template <> defs::portPosition StringTo(const std::string &s);
|
||||
template <> defs::EthernetInterface StringTo(const std::string &s);
|
||||
|
||||
template <> uint32_t StringTo(const std::string &s);
|
||||
template <> uint64_t StringTo(const std::string &s);
|
||||
|
@ -403,6 +403,17 @@ typedef struct {
|
||||
|
||||
enum portPosition { LEFT, RIGHT, TOP, BOTTOM };
|
||||
|
||||
#ifdef __cplusplus
|
||||
enum class EthernetInterface {
|
||||
#else
|
||||
enum EthernetInterface {
|
||||
#endif
|
||||
NONE = 0,
|
||||
I3GBE = 1 << 1,
|
||||
I10GBE = 1 << 2,
|
||||
ALL = I3GBE | I10GBE
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
/** scan structure */
|
||||
@ -496,8 +507,18 @@ typedef struct {
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
inline slsDetectorDefs::EthernetInterface
|
||||
operator|( const slsDetectorDefs::EthernetInterface &a,
|
||||
const slsDetectorDefs::EthernetInterface &b) {
|
||||
return slsDetectorDefs::EthernetInterface(static_cast<int32_t>(a) |
|
||||
static_cast<int32_t>(b));
|
||||
};
|
||||
|
||||
inline slsDetectorDefs::EthernetInterface operator&( const slsDetectorDefs::EthernetInterface &a,
|
||||
const slsDetectorDefs::EthernetInterface &b) {
|
||||
return slsDetectorDefs::EthernetInterface(static_cast<int32_t>(a) & static_cast<int32_t>(b));
|
||||
};
|
||||
#endif
|
||||
;
|
||||
|
||||
#ifdef __cplusplus
|
||||
struct detParameters {
|
||||
@ -644,3 +665,4 @@ using Positions = const std::vector<int> &;
|
||||
using defs = slsDetectorDefs;
|
||||
} // namespace sls
|
||||
#endif
|
||||
|
||||
|
@ -226,6 +226,8 @@ enum detFuncs {
|
||||
F_GET_GAIN_CAPS,
|
||||
F_GET_DATASTREAM,
|
||||
F_SET_DATASTREAM,
|
||||
F_GET_VETO_STREAM,
|
||||
F_SET_VETO_STREAM,
|
||||
|
||||
NUM_DET_FUNCTIONS,
|
||||
RECEIVER_ENUM_START = 256, /**< detector function should not exceed this
|
||||
@ -554,8 +556,12 @@ const char* getFunctionNameFromEnum(enum detFuncs func) {
|
||||
case F_LOAD_DEFAULT_PATTERN: return "F_LOAD_DEFAULT_PATTERN";
|
||||
case F_GET_ALL_THRESHOLD_ENERGY: return "F_GET_ALL_THRESHOLD_ENERGY";
|
||||
case F_GET_MASTER: return "F_GET_MASTER";
|
||||
case F_SET_GAIN_CAPS: return "F_SET_GAIN_CAPS";
|
||||
case F_GET_GAIN_CAPS: return "F_GET_GAIN_CAPS";
|
||||
case F_GET_DATASTREAM: return "F_GET_DATASTREAM";
|
||||
case F_SET_DATASTREAM: return "F_SET_DATASTREAM";
|
||||
case F_GET_VETO_STREAM: return "F_GET_VETO_STREAM";
|
||||
case F_SET_VETO_STREAM: return "F_SET_VETO_STREAM";
|
||||
|
||||
case NUM_DET_FUNCTIONS: return "NUM_DET_FUNCTIONS";
|
||||
case RECEIVER_ENUM_START: return "RECEIVER_ENUM_START";
|
||||
|
@ -5,9 +5,8 @@
|
||||
#define APIGUI 0x210225
|
||||
#define APICTB 0x210621
|
||||
#define APIGOTTHARD 0x210621
|
||||
#define APIGOTTHARD2 0x210621
|
||||
#define APIJUNGFRAU 0x210621
|
||||
#define APIGOTTHARD2 0x210715
|
||||
#define APIJUNGFRAU 0x210714
|
||||
#define APIMYTHEN3 0x210621
|
||||
#define APIMOENCH 0x210621
|
||||
|
||||
#define APIEIGER 0x210721
|
||||
#define APIEIGER 0x210721
|
||||
|
Reference in New Issue
Block a user