|
pflib v3.12.0-1-g716e801
Pretty Fine HGCROC Interaction Library
|
A capture frame has one or more SingleECONTSamples along with two headers written by the firmware that encode how many samples there are and which are important. More...
#include <SingleECONTCaptureFrame.h>
Classes | |
| class | SingleECONTSample |
| Each ECON-T sample has the following struture, assuming. More... | |
Public Member Functions | |
| SingleECONTCaptureFrame (std::span< uint32_t > data) | |
| Reader & | read (Reader &r) |
| void | from (std::span< uint32_t > data) |
| const SingleECONTSample & | sample (std::optional< int > i_sample={}) const |
| int | bx (std::optional< int > i_sample={}) const |
| int | stc_sum (int i_stc, std::optional< int > i_sample={}) const |
| int | max_tc (int i_stc, std::optional< int > i_sample={}) const |
| const ECONTCaptureHeader & | header () const |
| int | length () const |
| int | version () const |
| int | econ_id () const |
| int | pre_samples () const |
| std::size_t | n_samples () const |
Private Attributes | |
| mutable::pflib::logging::logger | the_log_ {::pflib::logging::get("decoding")} |
| ECONTCaptureHeader | header_ |
| std::vector< SingleECONTSample > | samples_ |
A capture frame has one or more SingleECONTSamples along with two headers written by the firmware that encode how many samples there are and which are important.
| void pflib::packing::SingleECONTCaptureFrame::from | ( | std::span< uint32_t > | data | ) |
and then, with ECON-T configured to be STC4 with 5M+4E encoding, we then see three 32b words for each sample (i.e. size should equal 2 + 3 * samples).