2#ifndef PFLIB_PACKING_SINGLEECONTCAPTUREFRAME_H
3#define PFLIB_PACKING_SINGLEECONTCAPTUREFRAME_H
7#include "pflib/logging/Logging.h"
8#include "pflib/packing/ECONTCaptureHeader.h"
9#include "pflib/packing/Reader.h"
11namespace pflib::packing {
53 mutable ::pflib::logging::logger the_log_{
61 void from(std::span<uint32_t> data);
63 int stc_sum(
int i_stc)
const;
64 int max_tc(
int i_stc)
const;
70 void from(std::span<uint32_t> data);
72 int bx(std::optional<int> i_sample = {})
const;
73 int stc_sum(
int i_stc, std::optional<int> i_sample = {})
const;
74 int max_tc(
int i_stc, std::optional<int> i_sample = {})
const;
75 const ECONTCaptureHeader& header()
const;
79 int pre_samples()
const;
83 ECONTCaptureHeader header_;
Reading a raw data stream with some underlying backend.
Definition Reader.h:19
Each ECON-T sample has the following struture, assuming.
Definition SingleECONTCaptureFrame.h:52
A capture frame has one or more SingleECONTSamples along with two headers written by the firmware tha...
Definition SingleECONTCaptureFrame.h:18
void from(std::span< uint32_t > data)
Definition SingleECONTCaptureFrame.cxx:44
logger get(const std::string &name)
Gets a logger with the input name for its channel.
Definition Logging.cxx:24