Go to the documentation of this file.
32 unsigned char* trailer, uint32_t lenght, uint16_t crc, uint8_t evtStatus, uint8_t ttsBits,
bool moreTrailers) {
34 fedt_t*
t = reinterpret_cast<fedt_t*>(trailer);
#define FED_CRC_MODIFIED_EXTRACT(a)
#define FED_MORE_TRAILERS_WIDTH
bool wrongFedId() const
True if the FED_ID given by the FED is not the one expected by the FRL.
uint16_t crc() const
Cyclic Redundancy Code of the event fragment including header and trailer.
#define FED_MORE_TRAILERS_SHIFT
uint8_t evtStatus() const
Event fragment status information.
bool check() const
Check that the trailer is OK.
struct fedt_struct fedt_t
#define FED_SLINK_END_MARKER
#define FED_MORE_TRAILERS_EXTRACT(a)
bool slinkError() const
True if the FRL has detected a transmission error over the s-link cable.
FEDTrailer(const unsigned char *trailer)
Constructor.
#define FED_TCTRLID_EXTRACT(a)
bool moreTrailers() const
#define FED_TCTRLID_SHIFT
bool crcModified() const
True if the CRC value has been modified by the S-link sender card.
static void set(unsigned char *trailer, uint32_t lenght, uint16_t crc, uint8_t evt_stat, uint8_t tts, bool moreTrailers=false)
Set all fields in the trailer.
#define FED_EVSZ_EXTRACT(a)
uint32_t conscheck() const
Return the word containing the consistency checks.
#define FED_CRCS_EXTRACT(a)
static const uint32_t length
const fedt_struct * theTrailer
#define FED_SLINK_ERROR_EXTRACT(a)
uint8_t ttsBits() const
Current value of the Trigger Throttling System bits.
#define FED_STAT_EXTRACT(a)
virtual ~FEDTrailer()
Destructor.
#define FED_TTSI_EXTRACT(a)
#define FED_WRONG_FEDID_EXTRACT(a)
uint32_t fragmentLength() const
The length of the event fragment counted in 64-bit words including header and trailer.