mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
jungfrau: connected number of destinations
This commit is contained in:
Binary file not shown.
@ -1331,6 +1331,16 @@ int getNumberofUDPInterfaces() {
|
||||
return ((bus_r(CONFIG_REG) & CONFIG_OPRTN_MDE_2_X_10GbE_MSK) ? 2 : 1);
|
||||
}
|
||||
|
||||
int getNumberofDestinations() {
|
||||
return (((bus_r(CONTROL_REG) & CONTROL_RX_ADDTNL_ENDPTS_NUM_MSK) >> CONTROL_RX_ADDTNL_ENDPTS_NUM_OFST) + 1);
|
||||
}
|
||||
|
||||
void setNumberofDestinations(int value) {
|
||||
LOG(logINFO, ("Setting number of entries to %d\n", value));
|
||||
--value;
|
||||
bus_w(CONTROL_REG, bus_r(CONTROL_REG) | ((value << CONTROL_RX_ADDTNL_ENDPTS_NUM_OFST) & CONTROL_RX_ADDTNL_ENDPTS_NUM_MSK));
|
||||
}
|
||||
|
||||
void selectPrimaryInterface(int val) {
|
||||
uint32_t addr = CONFIG_REG;
|
||||
|
||||
@ -1522,7 +1532,7 @@ int configureMAC() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setNumberofDestinations(numUdpDestinations);
|
||||
setNumberofUDPInterfaces(numInterfaces);
|
||||
selectPrimaryInterface(selInterface);
|
||||
|
||||
|
Reference in New Issue
Block a user