Merge pull request #207 from slsdetectorgroup/m3counter

M3counter
This commit is contained in:
Dhanya Thattil 2020-10-20 12:06:51 +02:00 committed by GitHub
commit 0460d7e531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -886,8 +886,10 @@ void setCounterMask(uint32_t arg) {
updatePacketizing();
LOG(logINFO, ("\tUpdating Exptime and Gate Delay\n"));
for (int i = 0; i < 3; ++i) {
setExpTime(i, exptimeReg[i]);
setGateDelay(i, gateDelayReg[i]);
uint64_t ns = exptimeReg[i] / (1E-9 * getFrequency(SYSTEM_C0));
setExpTime(i, ns);
ns = gateDelayReg[i] / (1E-9 * getFrequency(SYSTEM_C0));
setGateDelay(i, ns);
}
}

View File

@ -8,5 +8,5 @@
#define APIGOTTHARD 0x201016
#define APIGOTTHARD2 0x201016
#define APIJUNGFRAU 0x201016
#define APIMYTHEN3 0x201016
#define APIMOENCH 0x201013
#define APIMYTHEN3 0x201020