pflib v3.12.0-1-g716e801
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::packing::SingleECONTCaptureFrame Class Reference

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>

Collaboration diagram for pflib::packing::SingleECONTCaptureFrame:
[legend]

Classes

class  SingleECONTSample
 Each ECON-T sample has the following struture, assuming. More...
 

Public Member Functions

 SingleECONTCaptureFrame (std::span< uint32_t > data)
 
Readerread (Reader &r)
 
void from (std::span< uint32_t > data)
 
const SingleECONTSamplesample (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 ECONTCaptureHeaderheader () 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< SingleECONTSamplesamples_
 

Detailed Description

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.

Member Function Documentation

◆ from()

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).


The documentation for this class was generated from the following files: