31 const uint8_t* cArrByt =
reinterpret_cast<const uint8_t*
>(&
fuData);
34 char cPrev = os.fill(
'0');
35 os <<
"BE = " << std::hex << std::setw(2) << static_cast<uint16_t>(cArrByt[0]) <<
":" << std::setw(2)
36 <<
static_cast<uint16_t
>(cArrByt[1]) <<
":" << std::setw(2) <<
static_cast<uint16_t
>(cArrByt[2]) <<
":"
37 << std::setw(2) <<
static_cast<uint16_t
>(cArrByt[3]) <<
" LE = " << std::hex << std::setw(2)
38 <<
static_cast<uint16_t
>(cArrByt[3]) <<
":" << std::setw(2) <<
static_cast<uint16_t
>(cArrByt[2]) <<
":"
39 << std::setw(2) <<
static_cast<uint16_t
>(cArrByt[1]) <<
":" << std::setw(2) <<
static_cast<uint16_t
>(cArrByt[0])
40 << std::dec <<
" => ";
66 os <<
" Epoch => " << std::setw(12) <<
GetEpochVal();
72 <<
" Status: 0x" << std::setw(4) << std::hex <<
GetStatusStatus() << std::dec <<
" Dpb TS: " << std::setw(3)
151 default:
return "Unknown";
XPU_D bool IsHitMissedEvts() const
For Hit data: Returns Missed event flag (1 bit field)
XPU_D uint32_t GetTsMsbValBinning() const
For TS MSB data: Returns the TS MSB 29 bit field)
XPU_D uint16_t GetStatusSxTs() const
For Status data: Returns the SMX TS from ACK frame (6 bit field)
XPU_D uint16_t GetHitAdc() const
For Hit data: Returns ADC value (5 bit field)
XPU_D uint16_t GetHitChannel() const
For Hit data: Returns StsXYTER channel number (7 bit field)
bool PrintMess(std::ostream &os, MessagePrintMask ctrl=MessagePrintMask::msg_print_Human, bool bBinning=true) const
XPU_D uint16_t GetLinkIndex() const
For all data: Returns the (global) index of the eLink on which the message was received (n bit field)
XPU_D bool IsCpFlagOn() const
For Status data: Returns the CP flag from ACK frame (1 bit field)
XPU_D uint16_t GetStatusStatus() const
For Status data: Returns the Status field from ACK frame (4 bit field)
XPU_D MessType GetMessType() const
Returns the message type, see enum MessType.
XPU_D uint16_t GetLinkIndexHitBinning() const
XPU_D uint16_t GetHitTime() const
For Hit data: Returns timestamp (8 bit field, 2 MSB bits overlap removed)
XPU_D uint32_t GetTsMsbVal() const
For TS MSB data: Returns the TS MSB 22 bit field)
XPU_D uint16_t GetHitTimeFull() const
For Hit data: Returns Full timestamp (10 bit field including 2 bits overlap)
XPU_D uint16_t GetHitTimeBinning() const
XPU_D uint32_t GetEpochVal() const
For Epoch data: Returns the Epoch (29 bit field)
XPU_D uint16_t GetStatusDpbTs() const
For Status data: Returns the DPB TS when frame received (9 bit field)
XPU_D uint16_t GetHitTimeOver() const
For Hit data: Returns timestamp overlap bits (2 bits field, overlap with 2 LSBs of TS_MSB message)
XPU_D uint16_t GetStatusLink() const
For Status data: Returns the Link Inedx (9 bit field)
static std::string PrintMessType(MessType type)
MessagePrintMask
Printout control.