mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-21 23:24:33 +01:00
now all the servers compile
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1599,26 +1599,15 @@ void setDAC(enum DACINDEX ind, int val, int mV, int counterEnableCheck) {
|
||||
|
||||
void setGeneralDAC(enum DACINDEX ind, int val, int mV) {
|
||||
char *dac_names[] = {DAC_NAMES};
|
||||
LOG(logDEBUG1, ("Setting dac[%d - %s]: %d %s \n", (int)ind, dac_names[ind],
|
||||
val, (mV ? "mV" : "dac units")));
|
||||
int dacval = val;
|
||||
|
||||
#ifdef VIRTUAL
|
||||
LOG(logINFO, ("Setting dac[%d - %s]: %d %s \n", (int)ind, dac_names[ind],
|
||||
val, (mV ? "mV" : "dac units")));
|
||||
if (!mV) {
|
||||
detectorDacs[ind] = val;
|
||||
}
|
||||
// convert to dac units
|
||||
else if (LTC2620_D_VoltageToDac(val, &dacval) == OK) {
|
||||
detectorDacs[ind] = dacval;
|
||||
}
|
||||
#else
|
||||
int dacval = -1;
|
||||
if (LTC2620_D_SetDACValue((int)ind, val, mV, dac_names[ind], &dacval) ==
|
||||
OK) {
|
||||
detectorDacs[ind] = dacval;
|
||||
}
|
||||
#endif
|
||||
|
||||
const int specialDacs[NSPECIALDACS] = SPECIALDACINDEX;
|
||||
for (int i = 0; i < NSPECIALDACS; ++i) {
|
||||
if ((int)ind == specialDacs[i]) {
|
||||
|
||||
@@ -1395,11 +1395,13 @@ int validateAndSetDac(enum dacIndex ind, int val, int mV) {
|
||||
}
|
||||
}
|
||||
}
|
||||
#elif MYTHEN3D
|
||||
#else
|
||||
#if MYTHEN3D
|
||||
// ignore counter enable to force vth dac values
|
||||
setDAC(serverDacIndex, val, mV, 0);
|
||||
#else
|
||||
setDAC(serverDacIndex, val, mV);
|
||||
#endif
|
||||
|
||||
retval = getDAC(serverDacIndex, mV);
|
||||
LOG(logDEBUG1, ("Dac (%d): %d %s\n", serverDacIndex, retval,
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#define APILIB "0.0.0 0x250909"
|
||||
#define APIRECEIVER "0.0.0 0x250822"
|
||||
#define APICTB "0.0.0 0x260116"
|
||||
#define APIGOTTHARD2 "0.0.0 0x260114"
|
||||
#define APIMOENCH "0.0.0 0x260107"
|
||||
#define APIEIGER "0.0.0 0x260107"
|
||||
#define APIGOTTHARD2 "0.0.0 0x260116"
|
||||
#define APIMOENCH "0.0.0 0x260116"
|
||||
#define APIEIGER "0.0.0 0x260116"
|
||||
#define APIXILINXCTB "0.0.0 0x260116"
|
||||
#define APIJUNGFRAU "0.0.0 0x260107"
|
||||
#define APIMYTHEN3 "0.0.0 0x260114"
|
||||
#define APIJUNGFRAU "0.0.0 0x260116"
|
||||
#define APIMYTHEN3 "0.0.0 0x260116"
|
||||
|
||||
Reference in New Issue
Block a user