read back of csr

This commit is contained in:
Erik Frojdh
2021-03-26 17:46:11 +01:00
parent a2007b78e7
commit 7c4f9ee044
12 changed files with 52 additions and 7 deletions

View File

@@ -1308,6 +1308,10 @@ class Detector {
Result<bool> getMaster(Positions pos = {}) const;
//TODO! check if we really want to expose this !!!!!
Result<int> getChipStatusRegister(Positions pos = {}) const;
///@{
/** @name CTB / Moench Specific */

View File

@@ -1615,6 +1615,10 @@ Result<bool> Detector::getMaster(Positions pos) const{
return pimpl->Parallel(&Module::isMaster, pos);
}
Result<int> Detector::getChipStatusRegister(Positions pos) const{
return pimpl->Parallel(&Module::getChipStatusRegister, pos);
}
// CTB/ Moench Specific

View File

@@ -1998,6 +1998,10 @@ bool Module::isMaster() const{
return sendToDetector<int>(F_GET_MASTER);
}
int Module::getChipStatusRegister() const{
return sendToDetector<int>(F_GET_CSR);
}
// CTB / Moench Specific
int Module::getNumberOfAnalogSamples() const {
return sendToDetector<int>(F_GET_NUM_ANALOG_SAMPLES);

View File

@@ -426,6 +426,7 @@ class Module : public virtual slsDetectorDefs {
void setGateDelay(int gateIndex, int64_t value);
std::array<time::ns, 3> getGateDelayForAllGates() const;
bool isMaster() const;
int getChipStatusRegister() const;
/**************************************************
* *