lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
XpmInfo.hh File Reference

xpmInfo(), which turns an XPM link address word into connection-info JSON. More...

#include "rapidjson/document.h"

Namespaces

namespace  Drp
 This class services detectors whose event data is formatted from the AxiStreamBatcherEventBuilder firmware module This class depends upon the existence of a python module "psdaq.configdb.<detType>_config.py", which contains the following functions: <detType>_init (str) - returns a handle (PyObject) for interacting with the device configuration <detType>_connect (handle) - returns a dictionary with "paddr" element for Xpm link ID.
 

Functions

static nlohmann::json Drp::xpmInfo (unsigned paddr)
 Return JSON with xpm_id set to bits 23-16 of paddr and xpm_port set to bits 7-0.
 

Detailed Description

xpmInfo(), which turns an XPM link address word into connection-info JSON.