mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 22:40:02 +02:00
merge fix
This commit is contained in:
commit
9f6b951988
Binary file not shown.
@ -2634,7 +2634,28 @@ enum vetoAlgorithm getVetoAlgorithm(enum ethernetInterface interface) {
|
||||
}
|
||||
|
||||
void setVetoAlgorithm(enum ethernetInterface interface,
|
||||
enum vetoAlgorithm alg) {}
|
||||
enum vetoAlgorithm alg) {
|
||||
uint32_t addr = CONFIG_REG;
|
||||
uint32_t value = bus_r(addr);
|
||||
switch (alg) {
|
||||
// more to follow
|
||||
case DEFAULT_ALGORITHM:
|
||||
if (interface == I3GBE) {
|
||||
LOG(logINFO, ("Setting default veto algorithm for 3Gbe\n"));
|
||||
value &= (~CONFIG_VETO_CH_3GB_ALG_MSK);
|
||||
value |= CONFIG_VETO_CH_3GB_ALG_DEFAULT_VAL;
|
||||
} else {
|
||||
LOG(logINFO, ("Setting default veto algorithm for 10Gbe\n"));
|
||||
value &= (~CONFIG_VETO_CH_10GB_ALG_MSK);
|
||||
value |= CONFIG_VETO_CH_10GB_ALG_DEFAULT_VAL;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
LOG(logERROR, ("unknown algorithm %d for 3gbe\n", alg));
|
||||
return;
|
||||
}
|
||||
bus_w(addr, value);
|
||||
}
|
||||
|
||||
void setBadChannels(int nch, int *channels) {
|
||||
LOG(logINFO, ("Setting %d bad channels\n", nch));
|
||||
|
@ -8,5 +8,5 @@
|
||||
#define APIJUNGFRAU 0x210722
|
||||
#define APIMOENCH 0x210722
|
||||
#define APIEIGER 0x210727
|
||||
#define APIGOTTHARD2 0x210727
|
||||
#define APIMYTHEN3 0x210727
|
||||
#define APIGOTTHARD2 0x210806
|
||||
|
Loading…
x
Reference in New Issue
Block a user