mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-16 01:21:20 +01:00
mythen3, gotthard2: bug fix- changing wrong pll phases when changing frequency
This commit is contained in:
Binary file not shown.
@@ -1710,7 +1710,7 @@ int setClockDivider(enum CLKINDEX ind, int val) {
|
||||
}
|
||||
|
||||
// phase is reset by pll (when setting output frequency)
|
||||
if (ind >= READOUT_C0) {
|
||||
if (ind < SYSTEM_C0) {
|
||||
clkPhase[READOUT_C0] = 0;
|
||||
clkPhase[READOUT_C1] = 0;
|
||||
} else {
|
||||
@@ -2500,4 +2500,4 @@ int getTotalNumberOfChannels() {
|
||||
}
|
||||
int getNumberOfChips() { return NCHIP; }
|
||||
int getNumberOfDACs() { return NDAC; }
|
||||
int getNumberOfChannelsPerChip() { return NCHAN; }
|
||||
int getNumberOfChannelsPerChip() { return NCHAN; }
|
||||
|
||||
Binary file not shown.
@@ -1929,7 +1929,7 @@ int setClockDivider(enum CLKINDEX ind, int val) {
|
||||
clkDivider[ind]));
|
||||
|
||||
// phase is reset by pll (when setting output frequency)
|
||||
if (ind >= READOUT_C0) {
|
||||
if (ind < SYSTEM_C0) {
|
||||
clkPhase[READOUT_C0] = 0;
|
||||
clkPhase[READOUT_C1] = 0;
|
||||
} else {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
#define APIGUI 0x200409
|
||||
#define APICTB 0x200703
|
||||
#define APIGOTTHARD 0x200703
|
||||
#define APIGOTTHARD2 0x200703
|
||||
#define APIJUNGFRAU 0x200703
|
||||
#define APIMOENCH 0x200702
|
||||
#define APIEIGER 0x200703
|
||||
#define APIMYTHEN3 0x200708
|
||||
#define APIGOTTHARD2 0x200713
|
||||
#define APIMYTHEN3 0x200713
|
||||
|
||||
Reference in New Issue
Block a user