mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
gotthard2: copy #frames and period when switching between continuous and burst mode
This commit is contained in:
parent
6118567959
commit
c03bc4a6b4
Binary file not shown.
@ -1799,10 +1799,19 @@ int setBurstModeinFPGA(enum burstMode value) {
|
||||
int setBurstMode(enum burstMode burst) {
|
||||
FILE_LOG(logINFO, ("Setting burst mode to %s\n", burst == BURST_OFF ? "off" : (burst == BURST_INTERNAL ? "internal" : "external")));
|
||||
|
||||
// remember the number of frames and period (before changing burst mode)
|
||||
int64_t frames = getNumFrames();
|
||||
int64_t period = getPeriod();
|
||||
|
||||
if (setBurstModeinFPGA(burst) == FAIL) {
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
// set number of frames and period again (set registers according to timing mode)
|
||||
FILE_LOG(logINFO, ("\tUpdating #frames and period registers"));
|
||||
setNumFrames(frames);
|
||||
setPeriod(period);
|
||||
|
||||
FILE_LOG(logINFO, ("\tSetting %s Mode in Chip\n", burstMode == BURST_OFF ? "Continuous" : "Burst"));
|
||||
int value = burstMode ? ASIC_GLOBAL_BURST_VALUE : ASIC_GLOBAL_CONT_VALUE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user