mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-31 15:54:57 +01:00
3. Dev/voltage to power (#816)
* getVoltageList, getVoltage /set, getMeasuredVoltage, getVoltageNames /set, getVoltageIndex moved to 'Power' as its misleading * added cstdint and names slowadc, added division to mV * changed uV to mV in command line slow adc help. removed all python slowadcs (as it was already implemented as slowadc --------- Co-authored-by: Erik Frojdh <erik.frojdh@gmail.com>
This commit is contained in:
@@ -8,19 +8,19 @@ class CtbConfig {
|
||||
static constexpr size_t num_dacs = 18;
|
||||
static constexpr size_t num_adcs = 32;
|
||||
static constexpr size_t num_signals = 64;
|
||||
static constexpr size_t num_voltages = 5;
|
||||
static constexpr size_t num_powers = 5;
|
||||
static constexpr size_t num_slowADCs = 8;
|
||||
static constexpr const char *shm_tag_ = "ctbdacs";
|
||||
char dacnames[name_length * num_dacs]{};
|
||||
char adcnames[name_length * num_adcs]{};
|
||||
char signalnames[name_length * num_signals]{};
|
||||
char voltagenames[name_length * num_voltages]{};
|
||||
char powernames[name_length * num_powers]{};
|
||||
char slowADCnames[name_length * num_slowADCs]{};
|
||||
|
||||
void check_dac_index(size_t i) const;
|
||||
void check_adc_index(size_t i) const;
|
||||
void check_signal_index(size_t i) const;
|
||||
void check_voltage_index(size_t i) const;
|
||||
void check_power_index(size_t i) const;
|
||||
void check_slow_adc_index(size_t i) const;
|
||||
void check_size(const std::string &name) const;
|
||||
|
||||
@@ -46,10 +46,10 @@ class CtbConfig {
|
||||
std::string getSignalName(size_t index) const;
|
||||
std::vector<std::string> getSignalNames() const;
|
||||
|
||||
void setVoltageNames(const std::vector<std::string> &names);
|
||||
void setVoltageName(size_t index, const std::string &name);
|
||||
std::string getVoltageName(size_t index) const;
|
||||
std::vector<std::string> getVoltageNames() const;
|
||||
void setPowerNames(const std::vector<std::string> &names);
|
||||
void setPowerName(size_t index, const std::string &name);
|
||||
std::string getPowerName(size_t index) const;
|
||||
std::vector<std::string> getPowerNames() const;
|
||||
|
||||
void setSlowADCNames(const std::vector<std::string> &names);
|
||||
void setSlowADCName(size_t index, const std::string &name);
|
||||
|
||||
Reference in New Issue
Block a user