#include <AMCSpec.h>
Public Member Functions | |
BlockHeader () | |
BlockHeader (const uint64_t *data) | |
BlockHeader (unsigned int amc_no, unsigned int board_id, unsigned int size, unsigned int block=0) | |
unsigned int | getAMCNumber () const |
unsigned int | getBlocks () const |
unsigned int | getBlockSize () const |
unsigned int | getBoardID () const |
unsigned int | getMore () const |
unsigned int | getSegmented () const |
unsigned int | getSize () const |
operator uint64_t () const | |
uint64_t | raw () const |
unsigned int | validCRC () const |
Private Attributes | |
uint64_t | data_ |
Static Private Attributes | |
static const unsigned int | AmcNo_mask = 0xf |
static const unsigned int | AmcNo_shift = 16 |
static const unsigned int | BlkNo_mask = 0xff |
static const unsigned int | BlkNo_shift = 20 |
static const unsigned int | BoardID_mask = 0xffff |
static const unsigned int | BoardID_shift = 0 |
static const unsigned int | CRC_bit_shift = 56 |
static const unsigned int | Enabled_bit_shift = 59 |
static const unsigned int | Length_bit_shift = 62 |
static const unsigned int | More_bit_shift = 61 |
static const unsigned int | Present_bit_shift = 58 |
static const unsigned int | Segmented_bit_shift = 60 |
static const unsigned int | Size_mask = 0xffffff |
static const unsigned int | Size_shift = 32 |
static const unsigned int | Valid_bit_shift = 57 |
|
inline |
|
inline |
Definition at line 16 of file AMCSpec.h.
References groupFilesInBlocks::block, BlockHeader(), and findQualityFiles::size.
amc::BlockHeader::BlockHeader | ( | unsigned int | amc_no, |
unsigned int | board_id, | ||
unsigned int | size, | ||
unsigned int | block = 0 |
||
) |
Definition at line 11 of file AMCSpec.cc.
References AmcNo_mask, AmcNo_shift, BlkNo_mask, BlkNo_shift, BoardID_mask, BoardID_shift, CRC_bit_shift, data_, Enabled_bit_shift, getBlocks(), Length_bit_shift, More_bit_shift, Present_bit_shift, Segmented_bit_shift, Size_mask, Size_shift, amc::split_block_size, and Valid_bit_shift.
|
inline |
Definition at line 28 of file AMCSpec.h.
References AmcNo_mask, AmcNo_shift, and data_.
Referenced by amc::Packet::finalize(), and omtf::OmtfUnpacker::produce().
unsigned int amc::BlockHeader::getBlocks | ( | ) | const |
Definition at line 54 of file AMCSpec.cc.
References getSize(), and findQualityFiles::size.
Referenced by amc::Packet::block(), BlockHeader(), and raw().
unsigned int amc::BlockHeader::getBlockSize | ( | ) | const |
Definition at line 66 of file AMCSpec.cc.
References getMore(), getSegmented(), getSize(), and amc::split_block_size.
Referenced by raw().
|
inline |
Definition at line 29 of file AMCSpec.h.
References BoardID_mask, BoardID_shift, and data_.
Referenced by amc::Packet::finalize(), and omtf::OmtfUnpacker::produce().
|
inline |
Definition at line 31 of file AMCSpec.h.
References data_, and More_bit_shift.
Referenced by getBlockSize().
|
inline |
Definition at line 32 of file AMCSpec.h.
References data_, and Segmented_bit_shift.
Referenced by getBlockSize().
|
inline |
Definition at line 30 of file AMCSpec.h.
References data_, Size_mask, and Size_shift.
Referenced by amc::Packet::finalize(), getBlocks(), getBlockSize(), and omtf::OmtfUnpacker::produce().
|
inline |
|
inline |
Definition at line 23 of file AMCSpec.h.
References data_, getBlocks(), and getBlockSize().
Referenced by omtf::OmtfUnpacker::produce().
|
inline |
|
staticprivate |
Definition at line 42 of file AMCSpec.h.
Referenced by BlockHeader(), getAMCNumber(), and amc::Header::getAMCNumber().
|
staticprivate |
Definition at line 41 of file AMCSpec.h.
Referenced by BlockHeader(), getAMCNumber(), and amc::Header::getAMCNumber().
|
staticprivate |
Definition at line 40 of file AMCSpec.h.
Referenced by BlockHeader().
|
staticprivate |
Definition at line 39 of file AMCSpec.h.
Referenced by BlockHeader().
|
staticprivate |
Definition at line 44 of file AMCSpec.h.
Referenced by BlockHeader(), getBoardID(), and amc::Header::getBoardID().
|
staticprivate |
Definition at line 43 of file AMCSpec.h.
Referenced by BlockHeader(), getBoardID(), and amc::Header::getBoardID().
|
staticprivate |
Definition at line 52 of file AMCSpec.h.
Referenced by BlockHeader(), and validCRC().
|
private |
Definition at line 54 of file AMCSpec.h.
Referenced by BlockHeader(), getAMCNumber(), getBoardID(), amc::Trailer::getCRC(), amc::Trailer::getLV1ID(), getMore(), getSegmented(), getSize(), amc::Trailer::getSize(), operator uint64_t(), raw(), amc::Trailer::raw(), and validCRC().
|
staticprivate |
Definition at line 49 of file AMCSpec.h.
Referenced by BlockHeader().
|
staticprivate |
Definition at line 46 of file AMCSpec.h.
Referenced by BlockHeader().
|
staticprivate |
Definition at line 47 of file AMCSpec.h.
Referenced by BlockHeader(), and getMore().
|
staticprivate |
Definition at line 50 of file AMCSpec.h.
Referenced by BlockHeader().
|
staticprivate |
Definition at line 48 of file AMCSpec.h.
Referenced by BlockHeader(), and getSegmented().
|
staticprivate |
Definition at line 38 of file AMCSpec.h.
Referenced by BlockHeader(), getSize(), amc::Header::getSize(), and amc::Trailer::getSize().
|
staticprivate |
Definition at line 37 of file AMCSpec.h.
Referenced by BlockHeader(), getSize(), amc::Header::getSize(), and amc::Trailer::getSize().
|
staticprivate |
Definition at line 51 of file AMCSpec.h.
Referenced by BlockHeader().