1#ifndef pflib_decoding_LinkPacket_h
2#define pflib_decoding_LinkPacket_h 1
24 LinkPacket(
const uint32_t* header_ptr,
int len);
smallest formatted packet being readout by the HGCROC-Polarfire pipeline
Definition: LinkPacket.h:19
bool has_chan(int ichan) const
Check if a channel exists by attempting to comput its offset.
Definition: LinkPacket.cxx:44
int get_adc(int ichan) const
Get the decoded ADC value for the input channel.
Definition: LinkPacket.cxx:60
int get_toa(int ichan) const
Get the decoded TOA value for the input channel.
Definition: LinkPacket.cxx:54
int offset_to_chan(int ichan) const
Calculate the offset to a specific channel index by referencing the readout map for this link packet.
Definition: LinkPacket.cxx:74
LinkPacket(const uint32_t *header_ptr, int len)
Wrap the input C-style array as a LinkPacket.
Definition: LinkPacket.cxx:7
const uint32_t * data_
handle to zero'th entry in data array we are wrapping
Definition: LinkPacket.h:124
int get_tot(int ichan) const
Get the decoded TOT value for the input channel.
Definition: LinkPacket.cxx:48
int wadd() const
Get the WADD as reported by the HGC ROC reading out this link.
Definition: LinkPacket.cxx:25
int bxid() const
Get the BX ID as reported by the HGC ROC reading out this link.
Definition: LinkPacket.cxx:20
bool good_idle() const
Check if this link has a good trailing idle.
Definition: LinkPacket.cxx:39
int crc() const
Get the CRC checksum for this link.
Definition: LinkPacket.cxx:15
int linkid() const
Get the link ID for this link.
Definition: LinkPacket.cxx:10
bool good_bxheader() const
Check if this link has a good BX header.
Definition: LinkPacket.cxx:34
void dump() const
Print human-readable/decoded link packet to terminal.
Definition: LinkPacket.cxx:66
int length() const
Get the length of this link packet.
Definition: LinkPacket.cxx:30
int length_
length of data array we have wrapped
Definition: LinkPacket.h:126
Polarfire Interaction Library.
Definition: Backend.h:8