mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 00:07:13 +02:00
added udp_numdst
This commit is contained in:
@ -858,6 +858,7 @@ class CmdProxy {
|
||||
{"numinterfaces", &CmdProxy::numinterfaces},
|
||||
{"selinterface", &CmdProxy::selinterface},
|
||||
{"udp_dstlist", &CmdProxy::UDPDestinationList},
|
||||
{"udp_numdst", &CmdProxy::udp_numdst},
|
||||
{"udp_srcip", &CmdProxy::udp_srcip},
|
||||
{"udp_srcip2", &CmdProxy::udp_srcip2},
|
||||
{"udp_dstip", &CmdProxy::UDPDestinationIP},
|
||||
@ -1532,6 +1533,12 @@ class CmdProxy {
|
||||
"[0, 1]\n\t[Jungfrau] The udp interface to stream data from detector. "
|
||||
"Effective only when number of interfaces is 1. Default: 0 (outer)");
|
||||
|
||||
INTEGER_COMMAND_VEC_ID(udp_numdst, getNumberofUDPDestinations,
|
||||
setNumberofUDPDestinations, StringTo<int>,
|
||||
"[1 - 32]\n\t[Jungfrau][Eiger] One can set upto 32 "
|
||||
"destinations that the detector will stream images "
|
||||
"out in a round robin fashion. Default: 1");
|
||||
|
||||
INTEGER_COMMAND_VEC_ID(
|
||||
udp_srcip, getSourceUDPIP, setSourceUDPIP, IpAddr,
|
||||
"[x.x.x.x]\n\tIp address of the detector (source) udp "
|
||||
|
@ -921,6 +921,14 @@ void Detector::setDestinationUDPList(const defs::udpDestination dest,
|
||||
pimpl->Parallel(&Module::setDestinationUDPList, {module_id}, dest);
|
||||
}
|
||||
|
||||
Result<int> Detector::getNumberofUDPDestinations(Positions pos) const {
|
||||
return pimpl->Parallel(&Module::getNumberofUDPDestinations, pos);
|
||||
}
|
||||
|
||||
void Detector::setNumberofUDPDestinations(const int value, Positions pos) {
|
||||
pimpl->Parallel(&Module::setNumberofUDPDestinations, pos, value);
|
||||
}
|
||||
|
||||
Result<IpAddr> Detector::getDestinationUDPIP(Positions pos) const {
|
||||
return pimpl->Parallel(&Module::getDestinationUDPIP, pos);
|
||||
}
|
||||
|
@ -962,6 +962,14 @@ void Module::setDestinationUDPList(const slsDetectorDefs::udpDestination dest) {
|
||||
}
|
||||
}
|
||||
|
||||
int Module::getNumberofUDPDestinations() const {
|
||||
return sendToDetector<int>(F_GET_NUM_DEST_UDP);
|
||||
}
|
||||
|
||||
void Module::setNumberofUDPDestinations(const int value) {
|
||||
sendToDetector(F_SET_NUM_DEST_UDP, value, nullptr);
|
||||
}
|
||||
|
||||
sls::IpAddr Module::getDestinationUDPIP() const {
|
||||
return sendToDetector<sls::IpAddr>(F_GET_DEST_UDP_IP);
|
||||
}
|
||||
|
@ -224,6 +224,8 @@ class Module : public virtual slsDetectorDefs {
|
||||
void setSourceUDPMAC2(const sls::MacAddr mac);
|
||||
udpDestination getDestinationUDPList(const uint32_t entry) const;
|
||||
void setDestinationUDPList(const defs::udpDestination dest);
|
||||
int getNumberofUDPDestinations() const;
|
||||
void setNumberofUDPDestinations(const int value);
|
||||
sls::IpAddr getDestinationUDPIP() const;
|
||||
void setDestinationUDPIP(const sls::IpAddr ip);
|
||||
sls::IpAddr getDestinationUDPIP2() const;
|
||||
|
Reference in New Issue
Block a user