pflib v3.9.5-8-gf71a60f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::packing::DAQSampleHeader Struct Reference

The header that is inserted by the DAQ firmware (on the Bittware) or emulated by software (on the ZCU) More...

#include <DAQSampleHeader.h>

Public Member Functions

void from (uint32_t word)
 decode a DAQSampleHeader from the input word
 
uint32_t to () const
 construct a header word from our data
 
bool is_ending_trailer () const
 A special form of this DAQ header is used to signal the end of a multi-sample sequence.
 

Static Public Member Functions

static uint32_t ending_trailer ()
 Construct the special trailer form of this header.
 

Public Attributes

uint32_t version {0}
 
uint32_t econd_id {0}
 
uint32_t i_l1a {0}
 
bool is_soi {false}
 
uint32_t econd_len {0}
 

Friends

std::ostreamoperator<< (std::ostream &o, const DAQSampleHeader &h)
 output stream operator to make logging easier
 

Detailed Description

The header that is inserted by the DAQ firmware (on the Bittware) or emulated by software (on the ZCU)

This needs to be its own class since it is used in both MultiSamleECONDEventPacket::from and MultiSampleECONDEventPacket::read as well as DAQ::read_event_sw_header

4b vers | 10b ECON ID | 5b il1a | S | 12b length

  • vers is the format version
  • ECOND ID is what it was configured in the software to be
  • il1a is the index of the sample relative to this event
  • S signals if this is the sample of interest (1) or not (0)
  • length is the total length of this link subpacket NOT including this header

Member Function Documentation

◆ is_ending_trailer()

bool pflib::packing::DAQSampleHeader::is_ending_trailer ( ) const

A special form of this DAQ header is used to signal the end of a multi-sample sequence.

Both i_l1a and econd_id are set to their maximum values.


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