|
pflib v3.15.1-5-ge6391b0
Pretty Fine HGCROC Interaction Library
|
This represents the capture block in the ZCU trigpath firmware. More...
#include <TrigPathCaptureFrame.h>
Public Member Functions | |
| TrigPathCaptureFrame (std::span< uint32_t > data) | |
| Reader & | read (Reader &r) |
| void | from (std::span< uint32_t > data) |
| parse the header and then pass parsing onto the samples | |
| const SingleECONTSample & | sample (std::optional< int > i_sample={}) const |
| get a sample at a specific index | |
| const ECONTCaptureHeader & | header () const |
| get access to header | |
| int | length () const |
| get the total length of this frame | |
Private Attributes | |
| mutable::pflib::logging::logger | the_log_ {::pflib::logging::get("decoding")} |
| ECONTCaptureHeader | header_ |
| std::vector< SingleECONTSample > | samples_ |
This represents the capture block in the ZCU trigpath firmware.
It uses the information passed through the ECONTCaptureHeader words in order to deduce the number of ECONT Samples to parse.
| SingelECONTSample | This class must define how to decode a single sample from the ECONT(s). |
| void pflib::packing::TrigPathCaptureFrame< T >::from | ( | std::span< uint32_t > | data | ) |
parse the header and then pass parsing onto the samples
We do some checks on the packet length mostly to check for coding errors. This is where we require the SingleECONTSample class to define a static constant value WORD_LEN defining how many words are required per sample.
| const T & pflib::packing::TrigPathCaptureFrame< T >::sample | ( | std::optional< int > | i_sample = {} | ) | const |
get a sample at a specific index
| [in] | i_sample | index for desired sample, default is SoI as defined by capture header |