mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-05-20 12:06:48 +02:00
Merge remote-tracking branch 'origin/developer' into dev/ctb_clocks
This commit is contained in:
Binary file not shown.
@@ -591,10 +591,9 @@ void setupDetector() {
|
||||
LTC2620_Configure();
|
||||
|
||||
// dacs only
|
||||
LOG(logINFOBLUE, ("Powering down all dacs\n"));
|
||||
LOG(logINFOBLUE, ("Setting all dacs to min (0 mV)\n"));
|
||||
for (int idac = 0; idac < NDAC_ONLY; ++idac) {
|
||||
initError =
|
||||
setDAC(idac, LTC2620_GetPowerDownValue(), false, initErrorMessage);
|
||||
initError = setDAC(idac, 0, false, initErrorMessage);
|
||||
if (initError == FAIL)
|
||||
return;
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -412,10 +412,9 @@ void setupDetector() {
|
||||
return;
|
||||
}
|
||||
// dacs only
|
||||
LOG(logINFOBLUE, ("Powering down all dacs\n"));
|
||||
LOG(logINFOBLUE, ("Setting all dacs to min (0 mV)\n"));
|
||||
for (int idac = 0; idac < NDAC_ONLY; ++idac) {
|
||||
initError = setDAC(idac, LTC2620_D_GetPowerDownValue(), false,
|
||||
initErrorMessage);
|
||||
initError = setDAC(idac, 0, false, initErrorMessage);
|
||||
if (initError == FAIL)
|
||||
return;
|
||||
}
|
||||
@@ -602,25 +601,6 @@ int powerChip(int on, char *mess) {
|
||||
LOG(logINFOBLUE, ("Powering chip: off\n"));
|
||||
bus_w(addr, bus_r(addr) & ~mask);
|
||||
chipConfigured = 0;
|
||||
if (FAIL == XILINX_FMC_disable_all(mess, MAX_STR_LENGTH)) {
|
||||
return FAIL;
|
||||
}
|
||||
#ifdef VIRTUAL
|
||||
setTransceiverAlignment(0);
|
||||
#endif
|
||||
// transceiver alignment should be reset at power off
|
||||
if (isTransceiverAligned()) {
|
||||
sprintf(mess, "Transceiver alignment not reset\n");
|
||||
LOG(logERROR, (mess));
|
||||
|
||||
// to be removed when fixed later
|
||||
LOG(logWARNING,
|
||||
("Bypassing this error for now. To be fixed later...\n"));
|
||||
return OK;
|
||||
|
||||
return FAIL;
|
||||
}
|
||||
LOG(logINFO, ("\tTransceiver alignment has been reset\n"));
|
||||
}
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
/** API versions */
|
||||
#define APILIB "0.0.0 0x250909"
|
||||
#define APIRECEIVER "0.0.0 0x250822"
|
||||
#define APICTB "0.0.0 0x260227"
|
||||
#define APICTB "0.0.0 0x260317"
|
||||
#define APIGOTTHARD2 "0.0.0 0x260227"
|
||||
#define APIMOENCH "0.0.0 0x260227"
|
||||
#define APIEIGER "0.0.0 0x260227"
|
||||
#define APIXILINXCTB "0.0.0 0x260227"
|
||||
#define APIXILINXCTB "0.0.0 0x260317"
|
||||
#define APIJUNGFRAU "0.0.0 0x260227"
|
||||
#define APIMYTHEN3 "0.0.0 0x260227"
|
||||
|
||||
Reference in New Issue
Block a user