|
pflib v3.9.5-8-gf71a60f
Pretty Fine HGCROC Interaction Library
|
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::ostream & | operator<< (std::ostream &o, const DAQSampleHeader &h) |
| output stream operator to make logging easier | |
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
| 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.