mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
Dev/remove gotthard i (#1108)
* slsSupportLib done, at receiver rooting out in implementation * removed from receiver and client * removed everywhere except gui, python and client(commands.yaml and Detector.h) * updated python * fixed autocomplete to print what the issue is if there is one with ToString when running the autocomplete script to generate fixed.json. updated readme.md in generator folder * formatting * removed enums for dacs * udpating autocomplete and generating commands * removed gotthard from docs and release notes * removed dac test * bug from removing g1 * fixed virtual test for xilinx, was minor. so in this PR * gui done * binary in merge fix * formatting and removing enums * updated fixed and dump.json * bash autocomplete * updated doc on command line generation * removing increments in dac enums for backward compatibility. Not required * removed ROI from rxParameters (only in g1), not needed to be backward compatible * removed the phase shift option from det server staruip
This commit is contained in:
@ -92,7 +92,7 @@ class slsDetectorDefs {
|
||||
enum detectorType {
|
||||
GENERIC,
|
||||
EIGER,
|
||||
GOTTHARD,
|
||||
GOTTHARD /** deprecated */,
|
||||
JUNGFRAU,
|
||||
CHIPTESTBOARD,
|
||||
MOENCH,
|
||||
@ -333,13 +333,9 @@ typedef struct {
|
||||
VTHRESHOLD,
|
||||
IO_DELAY,
|
||||
VREF_DS,
|
||||
VCASCN_PB,
|
||||
VCASCP_PB,
|
||||
VOUT_CM,
|
||||
VCASC_OUT,
|
||||
VIN_CM,
|
||||
VREF_COMP,
|
||||
IB_TESTC,
|
||||
VB_COMP,
|
||||
VDD_PROT,
|
||||
VIN_COM,
|
||||
@ -648,7 +644,6 @@ enum streamingInterface {
|
||||
readoutMode roMode{ANALOG_ONLY};
|
||||
uint32_t adcMask{0};
|
||||
uint32_t adc10gMask{0};
|
||||
ROI roi;
|
||||
uint32_t countermask{0};
|
||||
burstMode burstType{BURST_INTERNAL};
|
||||
int64_t expTime1Ns{0};
|
||||
@ -704,12 +699,7 @@ struct detParameters {
|
||||
explicit detParameters(slsDetectorDefs::detectorType type) {
|
||||
switch (type) {
|
||||
case slsDetectorDefs::detectorType::GOTTHARD:
|
||||
nChanX = 128;
|
||||
nChanY = 1;
|
||||
nChipX = 10;
|
||||
nChipY = 1;
|
||||
nDacs = 8;
|
||||
break;
|
||||
throw sls::RuntimeError("Gotthard is deprecated from v10.0.0!");
|
||||
case slsDetectorDefs::detectorType::MOENCH:
|
||||
nChanX = 400;
|
||||
nChanY = 400;
|
||||
|
@ -60,7 +60,7 @@ enum detFuncs {
|
||||
F_SET_STORAGE_CELL_DELAY,
|
||||
F_GET_FRAMES_LEFT,
|
||||
F_GET_TRIGGERS_LEFT,
|
||||
F_GET_EXPTIME_LEFT,
|
||||
F_GET_EXPTIME_LEFT /** deprecated, kept for backward compatibility */,
|
||||
F_GET_PERIOD_LEFT,
|
||||
F_GET_DELAY_AFTER_TRIGGER_LEFT,
|
||||
F_GET_MEASURED_PERIOD,
|
||||
@ -69,8 +69,8 @@ enum detFuncs {
|
||||
F_GET_ACTUAL_TIME,
|
||||
F_GET_MEASUREMENT_TIME,
|
||||
F_SET_DYNAMIC_RANGE,
|
||||
F_SET_ROI,
|
||||
F_GET_ROI,
|
||||
F_SET_ROI /** deprecated, kept for backward compatibility */,
|
||||
F_GET_ROI /** deprecated, kept for backward compatibility */,
|
||||
F_LOCK_SERVER,
|
||||
F_GET_LAST_CLIENT_IP,
|
||||
F_ENABLE_TEN_GIGA,
|
||||
|
@ -1,13 +1,12 @@
|
||||
// SPDX-License-Identifier: LGPL-3.0-or-other
|
||||
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||
/** API versions */
|
||||
#define APIGOTTHARD "developer 0x241107"
|
||||
#define APIGOTTHARD2 "developer 0x241107"
|
||||
#define APIMOENCH "developer 0x241107"
|
||||
#define APIEIGER "developer 0x241107"
|
||||
#define APILIB "developer 0x241122"
|
||||
#define APIRECEIVER "developer 0x241122"
|
||||
#define APICTB "developer 0x250131"
|
||||
#define APIXILINXCTB "developer 0x250213"
|
||||
#define APIJUNGFRAU "developer 0x250224"
|
||||
#define APIMYTHEN3 "developer 0x250304"
|
||||
#define APICTB "developer 0x250310"
|
||||
#define APIGOTTHARD2 "developer 0x250310"
|
||||
#define APIJUNGFRAU "developer 0x250310"
|
||||
#define APIMYTHEN3 "developer 0x250310"
|
||||
#define APIMOENCH "developer 0x250310"
|
||||
#define APIXILINXCTB "developer 0x250310"
|
||||
#define APIEIGER "developer 0x250310"
|
||||
|
@ -69,8 +69,6 @@ std::string ToString(const slsDetectorDefs::rxParameters &r) {
|
||||
<< "roMode:" << r.roMode << std::endl
|
||||
<< "adcMask:" << r.adcMask << std::endl
|
||||
<< "adc10gMask:" << r.adc10gMask << std::endl
|
||||
<< "roi.xmin:" << r.roi.xmin << std::endl
|
||||
<< "roi.xmax:" << r.roi.xmax << std::endl
|
||||
<< "countermask:" << r.countermask << std::endl
|
||||
<< "burstType:" << r.burstType << std::endl
|
||||
<< "exptime1:" << ToString(std::chrono::nanoseconds(r.expTime1Ns))
|
||||
@ -429,20 +427,12 @@ std::string ToString(const defs::dacIndex s) {
|
||||
return std::string("vthreshold");
|
||||
case defs::VREF_DS:
|
||||
return std::string("vref_ds");
|
||||
case defs::VCASCN_PB:
|
||||
return std::string("vcascn_pb");
|
||||
case defs::VCASCP_PB:
|
||||
return std::string("vcascp_pb");
|
||||
case defs::VOUT_CM:
|
||||
return std::string("vout_cm");
|
||||
case defs::VCASC_OUT:
|
||||
return std::string("vcasc_out");
|
||||
case defs::VIN_CM:
|
||||
return std::string("vin_cm");
|
||||
case defs::VREF_COMP:
|
||||
return std::string("vref_comp");
|
||||
case defs::IB_TESTC:
|
||||
return std::string("ib_test_c");
|
||||
case defs::VB_COMP:
|
||||
return std::string("vb_comp");
|
||||
case defs::VDD_PROT:
|
||||
@ -918,20 +908,12 @@ template <> defs::dacIndex StringTo(const std::string &s) {
|
||||
return defs::VTHRESHOLD;
|
||||
if (s == "vref_ds")
|
||||
return defs::VREF_DS;
|
||||
if (s == "vcascn_pb")
|
||||
return defs::VCASCN_PB;
|
||||
if (s == "vcascp_pb")
|
||||
return defs::VCASCP_PB;
|
||||
if (s == "vout_cm")
|
||||
return defs::VOUT_CM;
|
||||
if (s == "vcasc_out")
|
||||
return defs::VCASC_OUT;
|
||||
if (s == "vin_cm")
|
||||
return defs::VIN_CM;
|
||||
if (s == "vref_comp")
|
||||
return defs::VREF_COMP;
|
||||
if (s == "ib_test_c")
|
||||
return defs::IB_TESTC;
|
||||
if (s == "vb_comp")
|
||||
return defs::VB_COMP;
|
||||
if (s == "vdd_prot")
|
||||
|
@ -130,7 +130,6 @@ TEST_CASE("string to std::chrono::duration", "[support]") {
|
||||
TEST_CASE("string to detectorType") {
|
||||
using dt = slsDetectorDefs::detectorType;
|
||||
REQUIRE(StringTo<dt>("Eiger") == dt::EIGER);
|
||||
REQUIRE(StringTo<dt>("Gotthard") == dt::GOTTHARD);
|
||||
REQUIRE(StringTo<dt>("Jungfrau") == dt::JUNGFRAU);
|
||||
REQUIRE(StringTo<dt>("ChipTestBoard") == dt::CHIPTESTBOARD);
|
||||
REQUIRE(StringTo<dt>("Moench") == dt::MOENCH);
|
||||
|
Reference in New Issue
Block a user