#include <AMCSpec.h>
Public Member Functions | |
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 |
Header () | |
Header (const uint64_t *data) | |
Header (unsigned int amc_no, unsigned int board_id, unsigned int size, unsigned int block=0) | |
operator uint64_t () const | |
uint64_t | raw () 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 |
Header::Header | ( | unsigned int | amc_no, |
unsigned int | board_id, | ||
unsigned int | size, | ||
unsigned int | block = 0 |
||
) |
Definition at line 9 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 |
unsigned int Header::getBlocks | ( | ) | const |
Definition at line 52 of file AMCSpec.cc.
References getSize(), and findQualityFiles::size.
Referenced by amc::Packet::block(), amc::Packet::blocks(), and Header().
unsigned int Header::getBlockSize | ( | ) | const |
Definition at line 64 of file AMCSpec.cc.
References getMore(), getSegmented(), getSize(), and amc::split_block_size.
|
inline |
|
inline |
Definition at line 33 of file AMCSpec.h.
References data_, and More_bit_shift.
Referenced by getBlockSize().
|
inline |
Definition at line 34 of file AMCSpec.h.
References data_, and Segmented_bit_shift.
Referenced by getBlockSize().
|
inline |
Definition at line 32 of file AMCSpec.h.
References data_, Size_mask, and Size_shift.
Referenced by getBlocks(), getBlockSize(), and amc::Packet::size().
|
inline |
|
inline |
|
staticprivate |
Definition at line 42 of file AMCSpec.h.
Referenced by getAMCNumber(), and Header().
|
staticprivate |
Definition at line 41 of file AMCSpec.h.
Referenced by getAMCNumber(), and Header().
|
staticprivate |
|
staticprivate |
|
staticprivate |
Definition at line 44 of file AMCSpec.h.
Referenced by getBoardID(), and Header().
|
staticprivate |
Definition at line 43 of file AMCSpec.h.
Referenced by getBoardID(), and Header().
|
staticprivate |
|
private |
Definition at line 54 of file AMCSpec.h.
Referenced by getAMCNumber(), getBoardID(), getMore(), getSegmented(), getSize(), Header(), operator uint64_t(), and raw().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Definition at line 48 of file AMCSpec.h.
Referenced by getSegmented(), and Header().
|
staticprivate |
|
staticprivate |