mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 11:20:04 +02:00
autogenerated commands and make format
This commit is contained in:
parent
f9bc2eb126
commit
9d8f9a9ba9
@ -39,7 +39,7 @@ class qDefs : public QWidget {
|
|||||||
/**
|
/**
|
||||||
* Empty Constructor
|
* Empty Constructor
|
||||||
*/
|
*/
|
||||||
qDefs(){};
|
qDefs() {};
|
||||||
|
|
||||||
static QFont GetDefaultFont() {
|
static QFont GetDefaultFont() {
|
||||||
return QFont("Cantarell", 10, QFont::Normal);
|
return QFont("Cantarell", 10, QFont::Normal);
|
||||||
|
@ -7,11 +7,9 @@
|
|||||||
#define MIN_REQRD_VRSN_T_RD_API 0x181130
|
#define MIN_REQRD_VRSN_T_RD_API 0x181130
|
||||||
#define REQRD_FRMWR_VRSN 0x230705
|
#define REQRD_FRMWR_VRSN 0x230705
|
||||||
|
|
||||||
#define NUM_HARDWARE_VERSIONS (1)
|
#define NUM_HARDWARE_VERSIONS (1)
|
||||||
#define HARDWARE_VERSION_NUMBERS \
|
#define HARDWARE_VERSION_NUMBERS {0x3f}
|
||||||
{ 0x3f }
|
#define HARDWARE_VERSION_NAMES {"5.1"}
|
||||||
#define HARDWARE_VERSION_NAMES \
|
|
||||||
{ "5.1" }
|
|
||||||
|
|
||||||
#define LINKED_SERVER_NAME "ctbDetectorServer"
|
#define LINKED_SERVER_NAME "ctbDetectorServer"
|
||||||
|
|
||||||
|
@ -634,8 +634,8 @@ int Feb_Control_SetTrimbits(unsigned int *trimbits, int top) {
|
|||||||
<< ((7 - i) * 4); // upper
|
<< ((7 - i) * 4); // upper
|
||||||
}
|
}
|
||||||
} // end column loop i
|
} // end column loop i
|
||||||
} // end supercolumn loop sc
|
} // end supercolumn loop sc
|
||||||
} // end row loop
|
} // end row loop
|
||||||
|
|
||||||
if (Feb_Control_activated) {
|
if (Feb_Control_activated) {
|
||||||
if (!Feb_Interface_WriteMemoryInLoops(Feb_Control_leftAddress,
|
if (!Feb_Interface_WriteMemoryInLoops(Feb_Control_leftAddress,
|
||||||
@ -652,7 +652,7 @@ int Feb_Control_SetTrimbits(unsigned int *trimbits, int top) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // end row_set loop (groups of 16 rows)
|
} // end row_set loop (groups of 16 rows)
|
||||||
} // end l_r loop
|
} // end l_r loop
|
||||||
|
|
||||||
memcpy(Feb_Control_last_downloaded_trimbits, trimbits,
|
memcpy(Feb_Control_last_downloaded_trimbits, trimbits,
|
||||||
Feb_Control_trimbit_size * sizeof(unsigned int));
|
Feb_Control_trimbit_size * sizeof(unsigned int));
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
|
|
||||||
#define NUM_HARDWARE_VERSIONS (2)
|
#define NUM_HARDWARE_VERSIONS (2)
|
||||||
#define HARDWARE_VERSION_NUMBERS {0x0, 0x1};
|
#define HARDWARE_VERSION_NUMBERS {0x0, 0x1};
|
||||||
#define HARDWARE_VERSION_NAMES \
|
#define HARDWARE_VERSION_NAMES {"FX70T", "FX30T"}
|
||||||
{ "FX70T", "FX30T" }
|
|
||||||
|
|
||||||
#define REQUIRED_FIRMWARE_VERSION (32)
|
#define REQUIRED_FIRMWARE_VERSION (32)
|
||||||
// virtual ones renamed for consistency
|
// virtual ones renamed for consistency
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
|
|
||||||
#define NUM_HARDWARE_VERSIONS (2)
|
#define NUM_HARDWARE_VERSIONS (2)
|
||||||
#define HARDWARE_VERSION_NUMBERS {0x0, 0x2};
|
#define HARDWARE_VERSION_NUMBERS {0x0, 0x2};
|
||||||
#define HARDWARE_VERSION_NAMES \
|
#define HARDWARE_VERSION_NAMES {"1.0", "1.2"}
|
||||||
{ "1.0", "1.2" }
|
|
||||||
|
|
||||||
#define LINKED_SERVER_NAME "gotthard2DetectorServer"
|
#define LINKED_SERVER_NAME "gotthard2DetectorServer"
|
||||||
|
|
||||||
|
@ -8,11 +8,9 @@
|
|||||||
#define REQRD_FRMWRE_VRSN_BOARD2 0x250209 // 1.0 pcb (version = 010)
|
#define REQRD_FRMWRE_VRSN_BOARD2 0x250209 // 1.0 pcb (version = 010)
|
||||||
#define REQRD_FRMWRE_VRSN 0x250208 // 2.0 pcb (version = 011)
|
#define REQRD_FRMWRE_VRSN 0x250208 // 2.0 pcb (version = 011)
|
||||||
|
|
||||||
#define NUM_HARDWARE_VERSIONS (2)
|
#define NUM_HARDWARE_VERSIONS (2)
|
||||||
#define HARDWARE_VERSION_NUMBERS \
|
#define HARDWARE_VERSION_NUMBERS {0x2, 0x3}
|
||||||
{ 0x2, 0x3 }
|
#define HARDWARE_VERSION_NAMES {"1.0", "2.0"}
|
||||||
#define HARDWARE_VERSION_NAMES \
|
|
||||||
{ "1.0", "2.0" }
|
|
||||||
|
|
||||||
#define ID_FILE "detid_jungfrau.txt"
|
#define ID_FILE "detid_jungfrau.txt"
|
||||||
#define LINKED_SERVER_NAME "jungfrauDetectorServer"
|
#define LINKED_SERVER_NAME "jungfrauDetectorServer"
|
||||||
@ -214,13 +212,11 @@ enum DACINDEX {
|
|||||||
enum MASTERINDEX { MASTER_HARDWARE, OW_MASTER, OW_SLAVE };
|
enum MASTERINDEX { MASTER_HARDWARE, OW_MASTER, OW_SLAVE };
|
||||||
#define MASTER_NAMES "hardware", "master", "slave"
|
#define MASTER_NAMES "hardware", "master", "slave"
|
||||||
|
|
||||||
#define NUMSETTINGS (2)
|
#define NUMSETTINGS (2)
|
||||||
#define NSPECIALDACS (3)
|
#define NSPECIALDACS (3)
|
||||||
#define SPECIALDACINDEX {J_VREF_PRECH, J_VREF_DS, J_VREF_COMP};
|
#define SPECIALDACINDEX {J_VREF_PRECH, J_VREF_DS, J_VREF_COMP};
|
||||||
#define SPECIAL_DEFAULT_DYNAMIC_GAIN_VALS \
|
#define SPECIAL_DEFAULT_DYNAMIC_GAIN_VALS {1450, 480, 420}
|
||||||
{ 1450, 480, 420 }
|
#define SPECIAL_DEFAULT_DYNAMICHG0_GAIN_VALS {1550, 450, 620}
|
||||||
#define SPECIAL_DEFAULT_DYNAMICHG0_GAIN_VALS \
|
|
||||||
{ 1550, 450, 620 }
|
|
||||||
|
|
||||||
enum NETWORKINDEX { TXN_FRAME, FLOWCTRL_10G };
|
enum NETWORKINDEX { TXN_FRAME, FLOWCTRL_10G };
|
||||||
enum CLKINDEX { RUN_CLK, ADC_CLK, DBIT_CLK, NUM_CLOCKS };
|
enum CLKINDEX { RUN_CLK, ADC_CLK, DBIT_CLK, NUM_CLOCKS };
|
||||||
|
@ -7,11 +7,9 @@
|
|||||||
#define REQRD_FRMWRE_VRSN_BOARD2 0x444445 // 1.0 pcb (version = 010)
|
#define REQRD_FRMWRE_VRSN_BOARD2 0x444445 // 1.0 pcb (version = 010)
|
||||||
#define REQRD_FRMWRE_VRSN 0x231026 // 2.0 pcb (version = 011)
|
#define REQRD_FRMWRE_VRSN 0x231026 // 2.0 pcb (version = 011)
|
||||||
|
|
||||||
#define NUM_HARDWARE_VERSIONS (2)
|
#define NUM_HARDWARE_VERSIONS (2)
|
||||||
#define HARDWARE_VERSION_NUMBERS \
|
#define HARDWARE_VERSION_NUMBERS {0x2, 0x3}
|
||||||
{ 0x2, 0x3 }
|
#define HARDWARE_VERSION_NAMES {"1.0", "2.0"}
|
||||||
#define HARDWARE_VERSION_NAMES \
|
|
||||||
{ "1.0", "2.0" }
|
|
||||||
|
|
||||||
#define ID_FILE ("detid_moench.txt")
|
#define ID_FILE ("detid_moench.txt")
|
||||||
#define LINKED_SERVER_NAME "moenchDetectorServer"
|
#define LINKED_SERVER_NAME "moenchDetectorServer"
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
|
|
||||||
#define NUM_HARDWARE_VERSIONS (2)
|
#define NUM_HARDWARE_VERSIONS (2)
|
||||||
#define HARDWARE_VERSION_NUMBERS {0x0, 0x2};
|
#define HARDWARE_VERSION_NUMBERS {0x0, 0x2};
|
||||||
#define HARDWARE_VERSION_NAMES \
|
#define HARDWARE_VERSION_NAMES {"1.0", "1.2"}
|
||||||
{ "1.0", "1.2" }
|
|
||||||
|
|
||||||
#define LINKED_SERVER_NAME "mythen3DetectorServer"
|
#define LINKED_SERVER_NAME "mythen3DetectorServer"
|
||||||
|
|
||||||
@ -130,15 +129,12 @@ enum DACINDEX {
|
|||||||
|
|
||||||
enum ADCINDEX { TEMP_FPGA };
|
enum ADCINDEX { TEMP_FPGA };
|
||||||
|
|
||||||
#define NUMSETTINGS (3)
|
#define NUMSETTINGS (3)
|
||||||
#define NSPECIALDACS (2)
|
#define NSPECIALDACS (2)
|
||||||
#define SPECIALDACINDEX {M_VRPREAMP, M_VRSHAPER};
|
#define SPECIALDACINDEX {M_VRPREAMP, M_VRSHAPER};
|
||||||
#define SPECIAL_DEFAULT_STANDARD_DAC_VALS \
|
#define SPECIAL_DEFAULT_STANDARD_DAC_VALS {1100, 1280}
|
||||||
{ 1100, 1280 }
|
#define SPECIAL_DEFAULT_FAST_DAC_VALS {300, 1500}
|
||||||
#define SPECIAL_DEFAULT_FAST_DAC_VALS \
|
#define SPECIAL_DEFAULT_HIGHGAIN_DAC_VALS {1300, 1100}
|
||||||
{ 300, 1500 }
|
|
||||||
#define SPECIAL_DEFAULT_HIGHGAIN_DAC_VALS \
|
|
||||||
{ 1300, 1100 }
|
|
||||||
|
|
||||||
enum CLKINDEX { SYSTEM_C0, SYSTEM_C1, SYSTEM_C2, NUM_CLOCKS };
|
enum CLKINDEX { SYSTEM_C0, SYSTEM_C1, SYSTEM_C2, NUM_CLOCKS };
|
||||||
#define NUM_CLOCKS_TO_SET (1)
|
#define NUM_CLOCKS_TO_SET (1)
|
||||||
|
@ -8341,9 +8341,10 @@ rx_dbitreorder:
|
|||||||
store_result_in_t: false
|
store_result_in_t: false
|
||||||
command_name: rx_dbitreorder
|
command_name: rx_dbitreorder
|
||||||
function_alias: rx_dbitreorder
|
function_alias: rx_dbitreorder
|
||||||
help: "[0, 1]\n\t[Ctb] Reorder digital data to group together all samples per signal.\
|
help: "[0, 1]\n\t[Ctb] Reorder digital data such that it groups each signal (0-63)\
|
||||||
\ Default is 1. Setting to 0 means 'do not reorder' and to keep what the board\
|
\ from all the different samples together . Default is 1. Setting to 0 means 'do\
|
||||||
\ spits out, which is that all signals in a sample are grouped together."
|
\ not reorder' and to keep what the board spits out, which is that all signals\
|
||||||
|
\ in a sample are grouped together."
|
||||||
infer_action: true
|
infer_action: true
|
||||||
template: true
|
template: true
|
||||||
rx_discardpolicy:
|
rx_discardpolicy:
|
||||||
|
@ -32,7 +32,7 @@ template <class T, class Allocator = std::allocator<T>> class Result {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
Result() = default;
|
Result() = default;
|
||||||
Result(std::initializer_list<T> list) : vec(list){};
|
Result(std::initializer_list<T> list) : vec(list) {};
|
||||||
|
|
||||||
/** Custom constructor from integer type to Result<ns> or Result<bool> */
|
/** Custom constructor from integer type to Result<ns> or Result<bool> */
|
||||||
template <typename V, typename = typename std::enable_if<
|
template <typename V, typename = typename std::enable_if<
|
||||||
|
@ -17,7 +17,7 @@ class detectorData {
|
|||||||
: progressIndex(progressIndex), fileName(fileName),
|
: progressIndex(progressIndex), fileName(fileName),
|
||||||
fileIndex(fileIndex), nx(nx), ny(ny), data(data),
|
fileIndex(fileIndex), nx(nx), ny(ny), data(data),
|
||||||
databytes(databytes), dynamicRange(dynamicRange),
|
databytes(databytes), dynamicRange(dynamicRange),
|
||||||
completeImage(completeImage){};
|
completeImage(completeImage) {};
|
||||||
|
|
||||||
detectorData(double progressIndex, std::string fileName, int nx, int ny,
|
detectorData(double progressIndex, std::string fileName, int nx, int ny,
|
||||||
char *data, int databytes, int dynamicRange,
|
char *data, int databytes, int dynamicRange,
|
||||||
@ -26,11 +26,11 @@ class detectorData {
|
|||||||
: progressIndex(progressIndex), fileName(fileName),
|
: progressIndex(progressIndex), fileName(fileName),
|
||||||
fileIndex(fileIndex), nx(nx), ny(ny), data(data),
|
fileIndex(fileIndex), nx(nx), ny(ny), data(data),
|
||||||
databytes(databytes), dynamicRange(dynamicRange),
|
databytes(databytes), dynamicRange(dynamicRange),
|
||||||
completeImage(completeImage), rxRoi(rxRoi){};
|
completeImage(completeImage), rxRoi(rxRoi) {};
|
||||||
/**
|
/**
|
||||||
* data has to be deleted by caller
|
* data has to be deleted by caller
|
||||||
*/
|
*/
|
||||||
~detectorData(){};
|
~detectorData() {};
|
||||||
|
|
||||||
int64_t getChannel(int i) {
|
int64_t getChannel(int i) {
|
||||||
int off = dynamicRange / 8;
|
int off = dynamicRange / 8;
|
||||||
|
@ -171,7 +171,7 @@ class DataProcessor : private virtual slsDetectorDefs, public ThreadObject {
|
|||||||
uint32_t streamingTimerInMs;
|
uint32_t streamingTimerInMs;
|
||||||
uint32_t streamingStartFnum;
|
uint32_t streamingStartFnum;
|
||||||
uint32_t currentFreqCount{0};
|
uint32_t currentFreqCount{0};
|
||||||
struct timespec timerbegin{};
|
struct timespec timerbegin {};
|
||||||
bool framePadding;
|
bool framePadding;
|
||||||
std::vector<int> ctbDbitList{};
|
std::vector<int> ctbDbitList{};
|
||||||
int ctbDbitOffset{0};
|
int ctbDbitOffset{0};
|
||||||
|
@ -16,8 +16,8 @@ namespace sls {
|
|||||||
class File : private virtual slsDetectorDefs {
|
class File : private virtual slsDetectorDefs {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
File(){};
|
File() {};
|
||||||
virtual ~File(){};
|
virtual ~File() {};
|
||||||
|
|
||||||
virtual fileFormat GetFileFormat() const = 0;
|
virtual fileFormat GetFileFormat() const = 0;
|
||||||
virtual void CloseFile() = 0;
|
virtual void CloseFile() = 0;
|
||||||
|
@ -28,22 +28,22 @@ class ClientSocket : public DataSocket {
|
|||||||
class ReceiverSocket : public ClientSocket {
|
class ReceiverSocket : public ClientSocket {
|
||||||
public:
|
public:
|
||||||
ReceiverSocket(const std::string &hostname, uint16_t port_number)
|
ReceiverSocket(const std::string &hostname, uint16_t port_number)
|
||||||
: ClientSocket("Receiver", hostname, port_number){};
|
: ClientSocket("Receiver", hostname, port_number) {};
|
||||||
ReceiverSocket(struct sockaddr_in addr) : ClientSocket("Receiver", addr){};
|
ReceiverSocket(struct sockaddr_in addr) : ClientSocket("Receiver", addr) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
class DetectorSocket : public ClientSocket {
|
class DetectorSocket : public ClientSocket {
|
||||||
public:
|
public:
|
||||||
DetectorSocket(const std::string &hostname, uint16_t port_number)
|
DetectorSocket(const std::string &hostname, uint16_t port_number)
|
||||||
: ClientSocket("Detector", hostname, port_number){};
|
: ClientSocket("Detector", hostname, port_number) {};
|
||||||
DetectorSocket(struct sockaddr_in addr) : ClientSocket("Detector", addr){};
|
DetectorSocket(struct sockaddr_in addr) : ClientSocket("Detector", addr) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
class GuiSocket : public ClientSocket {
|
class GuiSocket : public ClientSocket {
|
||||||
public:
|
public:
|
||||||
GuiSocket(const std::string &hostname, uint16_t port_number)
|
GuiSocket(const std::string &hostname, uint16_t port_number)
|
||||||
: ClientSocket("Gui", hostname, port_number){};
|
: ClientSocket("Gui", hostname, port_number) {};
|
||||||
GuiSocket(struct sockaddr_in addr) : ClientSocket("Gui", addr){};
|
GuiSocket(struct sockaddr_in addr) : ClientSocket("Gui", addr) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
}; // namespace sls
|
}; // namespace sls
|
||||||
|
@ -33,5 +33,5 @@ class Timer {
|
|||||||
std::string name_;
|
std::string name_;
|
||||||
};
|
};
|
||||||
|
|
||||||
}; // namespace sls
|
}; // namespace sls
|
||||||
#endif // TIMER_H
|
#endif // TIMER_H
|
||||||
|
@ -47,7 +47,7 @@ class Logger {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
Logger() = default;
|
Logger() = default;
|
||||||
explicit Logger(TLogLevel level) : level(level){};
|
explicit Logger(TLogLevel level) : level(level) {};
|
||||||
~Logger() {
|
~Logger() {
|
||||||
// output in the destructor to allow for << syntax
|
// output in the destructor to allow for << syntax
|
||||||
os << RESET << '\n';
|
os << RESET << '\n';
|
||||||
|
@ -125,7 +125,7 @@ class slsDetectorDefs {
|
|||||||
int x{0};
|
int x{0};
|
||||||
int y{0};
|
int y{0};
|
||||||
xy() = default;
|
xy() = default;
|
||||||
xy(int x, int y) : x(x), y(y){};
|
xy(int x, int y) : x(x), y(y) {};
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -227,9 +227,9 @@ class slsDetectorDefs {
|
|||||||
int ymin{-1};
|
int ymin{-1};
|
||||||
int ymax{-1};
|
int ymax{-1};
|
||||||
ROI() = default;
|
ROI() = default;
|
||||||
ROI(int xmin, int xmax) : xmin(xmin), xmax(xmax){};
|
ROI(int xmin, int xmax) : xmin(xmin), xmax(xmax) {};
|
||||||
ROI(int xmin, int xmax, int ymin, int ymax)
|
ROI(int xmin, int xmax, int ymin, int ymax)
|
||||||
: xmin(xmin), xmax(xmax), ymin(ymin), ymax(ymax){};
|
: xmin(xmin), xmax(xmax), ymin(ymin), ymax(ymax) {};
|
||||||
constexpr std::array<int, 4> getIntArray() const {
|
constexpr std::array<int, 4> getIntArray() const {
|
||||||
return std::array<int, 4>({xmin, xmax, ymin, ymax});
|
return std::array<int, 4>({xmin, xmax, ymin, ymax});
|
||||||
}
|
}
|
||||||
|
@ -531,7 +531,7 @@ void ZmqSocket::PrintError() {
|
|||||||
|
|
||||||
// Nested class to do RAII handling of socket descriptors
|
// Nested class to do RAII handling of socket descriptors
|
||||||
ZmqSocket::mySocketDescriptors::mySocketDescriptors(bool server)
|
ZmqSocket::mySocketDescriptors::mySocketDescriptors(bool server)
|
||||||
: server(server), contextDescriptor(nullptr), socketDescriptor(nullptr){};
|
: server(server), contextDescriptor(nullptr), socketDescriptor(nullptr) {};
|
||||||
ZmqSocket::mySocketDescriptors::~mySocketDescriptors() {
|
ZmqSocket::mySocketDescriptors::~mySocketDescriptors() {
|
||||||
Disconnect();
|
Disconnect();
|
||||||
Close();
|
Close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user