mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 08:10:02 +02:00
moench: allow power chip
This commit is contained in:
parent
1b996d1703
commit
7859cf78e9
Binary file not shown.
@ -3941,7 +3941,7 @@ int power_chip(int file_des) {
|
|||||||
return printSocketReadError();
|
return printSocketReadError();
|
||||||
FILE_LOG(logDEBUG1, ("Powering chip to %d\n", arg));
|
FILE_LOG(logDEBUG1, ("Powering chip to %d\n", arg));
|
||||||
|
|
||||||
#if !defined(JUNGFRAUD) && !defined(MOENCHD) && !defined(MYTHEN3D) && !defined(GOTTHARD2D)
|
#if !defined(JUNGFRAUD) && !defined(MYTHEN3D) && !defined(GOTTHARD2D)
|
||||||
functionNotImplemented();
|
functionNotImplemented();
|
||||||
#else
|
#else
|
||||||
// set & get
|
// set & get
|
||||||
|
@ -238,10 +238,10 @@ class Detector {
|
|||||||
|
|
||||||
Result<int> getHighVoltage(Positions pos = {}) const;
|
Result<int> getHighVoltage(Positions pos = {}) const;
|
||||||
|
|
||||||
/** [Jungfrau][Mythen3][Gotthard2] */
|
/** [Jungfrau][Mythen3][Gotthard2][Moench] */
|
||||||
Result<bool> getPowerChip(Positions pos = {}) const;
|
Result<bool> getPowerChip(Positions pos = {}) const;
|
||||||
|
|
||||||
/** [Jungfrau][Mythen3][Gotthard2] */
|
/** [Jungfrau][Mythen3][Gotthard2][Moench] */
|
||||||
void setPowerChip(bool on, Positions pos = {});
|
void setPowerChip(bool on, Positions pos = {});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1081,7 +1081,7 @@ class CmdProxy {
|
|||||||
"\n\t[Jungfrau][Ctb][Moench] [0|60-200]");
|
"\n\t[Jungfrau][Ctb][Moench] [0|60-200]");
|
||||||
|
|
||||||
INTEGER_COMMAND(powerchip, getPowerChip, setPowerChip, std::stoi,
|
INTEGER_COMMAND(powerchip, getPowerChip, setPowerChip, std::stoi,
|
||||||
"[0, 1]\n\t[Jungfrau][Mythen3][Gotthard2] Power the chip. Default 0."
|
"[0, 1]\n\t[Jungfrau][Mythen3][Gotthard2][Moench] Power the chip. Default 0."
|
||||||
"\n\t[Jungfrau] Get will return power status."
|
"\n\t[Jungfrau] Get will return power status."
|
||||||
"Can be off if temperature event occured (temperature over temp_threshold with temp_control enabled."
|
"Can be off if temperature event occured (temperature over temp_threshold with temp_control enabled."
|
||||||
"\n\t[Mythen3] If module not connected or wrong module, 1 will fail. By default, not powered on"
|
"\n\t[Mythen3] If module not connected or wrong module, 1 will fail. By default, not powered on"
|
||||||
|
@ -8,5 +8,5 @@
|
|||||||
#define APIRECEIVER 0x200227
|
#define APIRECEIVER 0x200227
|
||||||
#define APIGUI 0x200227
|
#define APIGUI 0x200227
|
||||||
#define APICTB 0x200227
|
#define APICTB 0x200227
|
||||||
#define APIMOENCH 0x200303
|
|
||||||
#define APIGOTTHARD2 0x200304
|
#define APIGOTTHARD2 0x200304
|
||||||
|
#define APIMOENCH 0x200304
|
||||||
|
Loading…
x
Reference in New Issue
Block a user