|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Module-wide EPICS control PVs of an XPM, created by allocate(); most PV callbacks call the Module under the semaphore. More...
#include <PVCtrls.hh>
Public Member Functions | |
| PVCtrls (Module &, Semaphore &sem) | |
| Store the module and semaphore and make this object the target of notify_thread(). | |
| ~PVCtrls () | |
| Does nothing; the PVs are not deleted. | |
| void | allocate (const std::string &title) |
| Delete earlier PVs and create the control PVs named title, a colon and the control name, plus one PVSeq under SEQENG:0 for a new Module::sequenceEngine(). | |
| void | update () |
| Declared but not defined in PVCtrls.cc. | |
| void | dump () const |
| Does nothing; empty body. | |
| void | checkPoint (unsigned iseq, unsigned addr) |
| Forward addr to PVSeq::checkPoint() of sequence engine PV set iseq (no range check). | |
| void | resetMmcm (unsigned) |
| Reset MMCM i (3 or above selects the AMC MMCM), wait until the AMC MMCM is ready, and publish the delay scans of MMCM PVs not yet written. | |
| Module & | module () |
| Return the Module. | |
| Semaphore & | sem () |
| Return the semaphore taken around Module register access. | |
| XpmSequenceEngine * | seq () |
| Return the sequence engine pointer. | |
Static Public Member Functions | |
| static void * | notify_thread (void *) |
| Thread body: connect a UDP socket to port 8197 of the XPM at the IP address string arg, send a 4-byte datagram, then read datagrams until read() fails. | |
Module-wide EPICS control PVs of an XPM, created by allocate(); most PV callbacks call the Module under the semaphore.
The last constructed object receives the sequence checkpoint notifications of notify_thread().
Store the module and semaphore and make this object the target of notify_thread().
| Pds::Xpm::PVCtrls::~PVCtrls | ( | ) |
Does nothing; the PVs are not deleted.
| void Pds::Xpm::PVCtrls::allocate | ( | const std::string & | title | ) |
Delete earlier PVs and create the control PVs named title, a colon and the control name, plus one PVSeq under SEQENG:0 for a new Module::sequenceEngine().
If Module::feature_rev() is above 0, first wait until the AMC MMCM is ready and publish the delay scan of each MMCM whose XTPG:MMCMn PV is already connected. Then enable all 24 links; the sequencer programming code after the return statement is never reached.
| void Pds::Xpm::PVCtrls::checkPoint | ( | unsigned | iseq, |
| unsigned | addr | ||
| ) |
Forward addr to PVSeq::checkPoint() of sequence engine PV set iseq (no range check).
| void Pds::Xpm::PVCtrls::dump | ( | ) | const |
Does nothing; empty body.
|
static |
Thread body: connect a UDP socket to port 8197 of the XPM at the IP address string arg, send a 4-byte datagram, then read datagrams until read() fails.
In each datagram, the first 16-bit word is a mask and, for each set bit i, the next 16-bit word is passed to checkPoint(i, word). Returns null.
| void Pds::Xpm::PVCtrls::resetMmcm | ( | unsigned | ) |
Reset MMCM i (3 or above selects the AMC MMCM), wait until the AMC MMCM is ready, and publish the delay scans of MMCM PVs not yet written.
Does nothing if Module::feature_rev() is 0.
| XpmSequenceEngine * Pds::Xpm::PVCtrls::seq | ( | ) |
Return the sequence engine pointer.
It stays null, because the code in allocate() that sets it is after an unconditional return.
| void Pds::Xpm::PVCtrls::update | ( | ) |
Declared but not defined in PVCtrls.cc.