injectchannel WIP

This commit is contained in:
2019-11-13 15:11:11 +01:00
parent 5ee3f5cf4c
commit 28a5aa8342
13 changed files with 185 additions and 4 deletions

View File

@ -775,7 +775,9 @@ class CmdProxy {
{"extsig", &CmdProxy::extsig},
{"imagetest", &CmdProxy::imagetest},
/* Gotthard2 Specific */
/* Gotthard2 Specific */
{"inj_ch", &CmdProxy::InjectChannel},
/* CTB Specific */
{"samples", &CmdProxy::Samples},
{"asamples", &CmdProxy::asamples},

View File

@ -873,6 +873,19 @@ class Detector {
* Default is 0 */
void setImageTestMode(const int value, Positions pos = {});
/**************************************************
* *
* Gotthard2 Specific *
* *
* ************************************************/
/** [Gotthard2] offset channel, increment channel */
Result<std::array<int, 2>> getInjectChannel(Positions pos = {});
/** [Gotthard2]
* @param offsetChannel starting channel to be injected
* @param incrementChannel determines succeeding channels to be injected */
void setInjectChannel(int offsetChannel, int incrementChannel, Positions pos = {});
/**************************************************
* *
* CTB Specific *

View File

@ -1102,6 +1102,15 @@ class slsDetector : public virtual slsDetectorDefs {
* Default is 0 */
void setImageTestMode(const int value);
/** [Gotthard2] */
std::array<int, 2> getInjectChannel();
/** [Gotthard2]
* @param offsetChannel starting channel to be injected
* @param incrementChannel determines succeeding channels to be injected */
void setInjectChannel(int offsetChannel, int incrementChannel);
/**
* Set/get counter bit in detector (Gotthard)
* @param i is -1 to get, 0 to reset and any other value to set the counter