This commit is contained in:
Erik Frojdh
2019-08-09 15:35:33 +02:00
parent 56703c4886
commit 206740efd6
2 changed files with 14 additions and 2 deletions

View File

@ -8,8 +8,7 @@
class multiSlsDetector; class multiSlsDetector;
namespace sls { namespace sls {
using ns = std::chrono::nanoseconds; using ns = std::chrono::nanoseconds;
using Positions = const std::vector<int> &; class MacAddr;
using defs = slsDetectorDefs;
/** /**
* \class Detector * \class Detector
@ -1289,6 +1288,12 @@ class Detector {
/** [Eiger][Jungfrau] */ /** [Eiger][Jungfrau] */
void setReceiverUDPPort(int udpport, Positions pos = {}); void setReceiverUDPPort(int udpport, Positions pos = {});
/** [Jungfrau] */
Result<MacAddr> getReceiverUDPMAC2(Positions pos = {}) const;
/** [Jungfrau] */
void setReceiverUDPMAC2(const std::string &udpmac, Positions pos = {});
}; };
} // namespace sls } // namespace sls

View File

@ -1113,4 +1113,11 @@ void Detector::setReceiverUDPPort(int udpport, Positions pos){
pimpl->Parallel(&slsDetector::setReceiverUDPPort2, pos, udpport); pimpl->Parallel(&slsDetector::setReceiverUDPPort2, pos, udpport);
} }
Result<MacAddr> Detector::getReceiverUDPMAC2(Positions pos) const{
return pimpl->Parallel(&slsDetector::getReceiverUDPMAC2, pos);
}
void Detector::setReceiverUDPMAC2(const std::string &udpmac, Positions pos){
pimpl->Parallel(&slsDetector::setReceiverUDPMAC2, pos, udpmac);
}
} // namespace sls } // namespace sls