pflib v3.9.4-21-gd880bab
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::packing::DAQHeader Class Reference

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

Public Member Functions

void from (uint32_t word)
 
bool is_ending_trailer () const
 A special form of this DAQ header is used to signal the end of a multi-sample sequence.
 
uint32_t version () const
 
uint32_t econd_id () const
 
uint32_t i_l1a () const
 
bool is_soi () const
 
uint32_t econd_len () const
 

Private Attributes

uint32_t version_
 
uint32_t econd_id_
 
uint32_t i_l1a_
 
bool is_soi_
 
uint32_t econd_len_
 

Friends

std::ostreamoperator<< (std::ostream &o, const DAQHeader &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

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::DAQHeader::is_ending_trailer ( ) const
inline

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 class was generated from the following file: