mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 05:47:14 +02:00
merge from developer on commit b6db097800
to properly clear udp destination in fpga for jungfrau mainly
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.
Binary file not shown.
@ -9220,8 +9220,25 @@ int clear_all_udp_dst(int file_des) {
|
|||||||
if (check_detector_idle("clear all udp destinations") == OK) {
|
if (check_detector_idle("clear all udp destinations") == OK) {
|
||||||
memset(udpDetails, 0, sizeof(udpDetails));
|
memset(udpDetails, 0, sizeof(udpDetails));
|
||||||
// minimum 1 destination in fpga
|
// minimum 1 destination in fpga
|
||||||
numUdpDestinations = 1;
|
int numdest = 1;
|
||||||
configure_mac();
|
// set number of destinations
|
||||||
|
#if defined(JUNGFRAUD) || defined(EIGERD)
|
||||||
|
if (setNumberofDestinations(numdest) == FAIL) {
|
||||||
|
ret = FAIL;
|
||||||
|
strcpy(mess, "Could not clear udp destinations to 1 entry.\n");
|
||||||
|
LOG(logERROR, (mess));
|
||||||
|
} else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
numUdpDestinations = numdest;
|
||||||
|
LOG(logINFOBLUE, ("Number of UDP Destinations: %d\n",
|
||||||
|
numUdpDestinations));
|
||||||
|
ret = configureMAC();
|
||||||
|
if (ret == FAIL) {
|
||||||
|
strcpy(mess, "Could not clear all destinations in the fpga.\n");
|
||||||
|
LOG(logERROR, (mess));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Server_SendResult(file_des, INT32, NULL, 0);
|
return Server_SendResult(file_des, INT32, NULL, 0);
|
||||||
|
@ -5,10 +5,11 @@
|
|||||||
#define APILIB 0x211125
|
#define APILIB 0x211125
|
||||||
#define APIRECEIVER 0x211124
|
#define APIRECEIVER 0x211124
|
||||||
#define APIGUI 0x211124
|
#define APIGUI 0x211124
|
||||||
#define APICTB 0x220321
|
|
||||||
#define APIGOTTHARD 0x220321
|
#define APICTB 0x220902
|
||||||
#define APIGOTTHARD2 0x220321
|
#define APIGOTTHARD 0x220902
|
||||||
#define APIJUNGFRAU 0x220321
|
#define APIGOTTHARD2 0x220902
|
||||||
#define APIMYTHEN3 0x220321
|
#define APIJUNGFRAU 0x220902
|
||||||
#define APIMOENCH 0x220321
|
#define APIMYTHEN3 0x220902
|
||||||
#define APIEIGER 0x220321
|
#define APIMOENCH 0x220902
|
||||||
|
#define APIEIGER 0x220902
|
||||||
|
Reference in New Issue
Block a user