#include <CSCTMBTrailer.h>
Public Member Functions | |
bool | check () const |
unsigned int | crc22 () const |
CSCTMBTrailer (int wordCount, int firmwareVersion) | |
don't forget to pass in the size of the tmb header + clct data More... | |
CSCTMBTrailer (const uint16_t *buf, unsigned short int firmwareVersion) | |
CSCTMBTrailer (const CSCTMBStatusDigi &digi) | |
unsigned short * | data () |
void | setCRC (int crc) |
uint16_t | sizeInBytes () const |
int | sizeInWords () const |
in 16-bit frames More... | |
int | wordCount () const |
Static Public Member Functions | |
static void | selfTest () |
Private Member Functions | |
int | crcOffset () const |
int | de0fOffset () const |
Private Attributes | |
unsigned short | theData [7] |
unsigned short int | theFirmwareVersion |
int | thePadding |
Defined to begin at the 6E0C word 2006 format 6E0C 2AAA (optional) 5555 (optional) D8+CRC22(10) D8+CRC22(10) DE0F D8+WordCount D2007 format 6E0C 2AAA (optional) 5555 (optional) DE0F D8+CRC22(10) D8+CRC22(10) D8+WordCount
Definition at line 30 of file CSCTMBTrailer.h.
CSCTMBTrailer::CSCTMBTrailer | ( | int | wordCount, |
int | firmwareVersion | ||
) |
don't forget to pass in the size of the tmb header + clct data
Definition at line 6 of file CSCTMBTrailer.cc.
References de0fOffset(), mps_fire::i, theData, thePadding, and wordCount().
CSCTMBTrailer::CSCTMBTrailer | ( | const uint16_t * | buf, |
unsigned short int | firmwareVersion | ||
) |
in 2007 format de0f line moved
Definition at line 34 of file CSCTMBTrailer.cc.
References theData, and thePadding.
|
inline |
Definition at line 37 of file CSCTMBTrailer.h.
References sizeInBytes(), and CSCTMBStatusDigi::trailer().
|
inline |
unsigned int CSCTMBTrailer::crc22 | ( | ) | const |
Definition at line 58 of file CSCTMBTrailer.cc.
References crcOffset(), and theData.
Referenced by CSCTMBData::getCRC(), selfTest(), and sizeInBytes().
|
inlineprivate |
Definition at line 53 of file CSCTMBTrailer.h.
References theFirmwareVersion, and thePadding.
Referenced by crc22(), and setCRC().
|
inline |
Definition at line 48 of file CSCTMBTrailer.h.
References selfTest(), theData, and wordCount().
Referenced by CSCTMBData::pack().
|
inlineprivate |
Definition at line 54 of file CSCTMBTrailer.h.
References theFirmwareVersion, and thePadding.
Referenced by CSCTMBTrailer().
|
static |
Definition at line 76 of file CSCTMBTrailer.cc.
References crc22(), and setCRC().
Referenced by data().
void CSCTMBTrailer::setCRC | ( | int | crc | ) |
Definition at line 65 of file CSCTMBTrailer.cc.
References crcOffset(), and theData.
Referenced by CSCTMBData::pack(), selfTest(), and sizeInBytes().
|
inline |
Definition at line 42 of file CSCTMBTrailer.h.
References crc22(), and setCRC().
Referenced by CSCTMBTrailer().
|
inline |
in 16-bit frames
Definition at line 47 of file CSCTMBTrailer.h.
References thePadding.
Referenced by CSCTMBData::pack(), and CSCTMBData::UnpackTMB().
int CSCTMBTrailer::wordCount | ( | ) | const |
Definition at line 72 of file CSCTMBTrailer.cc.
References theData, and thePadding.
Referenced by CSCTMBTrailer(), data(), and cscdqm::EventProcessor::processCSC().
|
private |
Definition at line 56 of file CSCTMBTrailer.h.
Referenced by check(), crc22(), CSCTMBTrailer(), data(), setCRC(), and wordCount().
|
private |
Definition at line 58 of file CSCTMBTrailer.h.
Referenced by crcOffset(), and de0fOffset().
|
private |
Definition at line 57 of file CSCTMBTrailer.h.
Referenced by crcOffset(), CSCTMBTrailer(), de0fOffset(), sizeInWords(), and wordCount().