#include <SiStripFEDBufferComponents.h>
Public Member Functions | |
bool | checkChannelStatusBits (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
virtual bool | checkChannelStatusBits (const uint8_t internalFEDChannelNum) const =0 |
bool | checkStatusBits (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const uint8_t apvNum) const |
virtual bool | checkStatusBits (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const =0 |
virtual FEDFEHeader * | clone () const =0 |
virtual const uint8_t * | data () const =0 |
virtual size_t | lengthInBytes () const =0 |
virtual void | print (std::ostream &os) const =0 |
virtual void | setBEStatusRegister (const FEDBackendStatusRegister beStatusRegister)=0 |
virtual void | setChannelStatus (const uint8_t internalFEDChannelNum, const FEDChannelStatus status)=0 |
void | setChannelStatus (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const FEDChannelStatus status) |
virtual void | setFEUnitLength (const uint8_t internalFEUnitNum, const uint16_t length)=0 |
virtual void | setFEUnitMajorityAddress (const uint8_t internalFEUnitNum, const uint8_t address)=0 |
virtual | ~FEDFEHeader () |
Static Public Member Functions | |
static std::auto_ptr< FEDFEHeader > | newFEFakeHeader (const FEDHeaderType headerType) |
static std::auto_ptr< FEDFEHeader > | newFEHeader (const FEDHeaderType headerType, const uint8_t *headerBuffer) |
static std::auto_ptr< FEDFEHeader > | newFEHeader (const FEDHeaderType headerType) |
Definition at line 382 of file SiStripFEDBufferComponents.h.
sistrip::FEDFEHeader::~FEDFEHeader | ( | ) | [virtual] |
Definition at line 1195 of file SiStripFEDBufferComponents.cc.
{ }
bool sistrip::FEDFEHeader::checkChannelStatusBits | ( | const uint8_t | internalFEUnitNum, |
const uint8_t | internalFEUnitChannelNum | ||
) | const [inline] |
Definition at line 1023 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum().
{ return checkChannelStatusBits(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum)); }
virtual bool sistrip::FEDFEHeader::checkChannelStatusBits | ( | const uint8_t | internalFEDChannelNum | ) | const [pure virtual] |
Implemented in sistrip::FEDAPVErrorHeader, and sistrip::FEDFullDebugHeader.
virtual bool sistrip::FEDFEHeader::checkStatusBits | ( | const uint8_t | internalFEDChannelNum, |
const uint8_t | apvNum | ||
) | const [pure virtual] |
Implemented in sistrip::FEDAPVErrorHeader, and sistrip::FEDFullDebugHeader.
bool sistrip::FEDFEHeader::checkStatusBits | ( | const uint8_t | internalFEUnitNum, |
const uint8_t | internalFEUnitChannelNum, | ||
const uint8_t | apvNum | ||
) | const [inline] |
Definition at line 1028 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum().
{ return checkStatusBits(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),apvNum); }
virtual FEDFEHeader* sistrip::FEDFEHeader::clone | ( | ) | const [pure virtual] |
Implemented in sistrip::FEDAPVErrorHeader, and sistrip::FEDFullDebugHeader.
virtual const uint8_t* sistrip::FEDFEHeader::data | ( | ) | const [pure virtual] |
Implemented in sistrip::FEDAPVErrorHeader, and sistrip::FEDFullDebugHeader.
Referenced by sistrip::FEDBufferGenerator::fillBuffer().
virtual size_t sistrip::FEDFEHeader::lengthInBytes | ( | ) | const [pure virtual] |
Implemented in sistrip::FEDAPVErrorHeader, and sistrip::FEDFullDebugHeader.
Referenced by sistrip::FEDBufferGenerator::bufferSizeInBytes(), and sistrip::FEDBufferGenerator::fillBuffer().
std::auto_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEFakeHeader | ( | const FEDHeaderType | headerType | ) | [inline, static] |
Definition at line 1011 of file SiStripFEDBufferComponents.h.
References sistrip::HEADER_TYPE_APV_ERROR, and sistrip::HEADER_TYPE_FULL_DEBUG.
{ switch (headerType) { case HEADER_TYPE_FULL_DEBUG: return std::auto_ptr<FEDFEHeader>(new FEDFullDebugHeader); case HEADER_TYPE_APV_ERROR: return std::auto_ptr<FEDFEHeader>(new FEDAPVErrorHeader); default: return std::auto_ptr<FEDFEHeader>(); } }
std::auto_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEHeader | ( | const FEDHeaderType | headerType | ) | [inline, static] |
Definition at line 999 of file SiStripFEDBufferComponents.h.
References sistrip::HEADER_TYPE_APV_ERROR, and sistrip::HEADER_TYPE_FULL_DEBUG.
{ switch (headerType) { case HEADER_TYPE_FULL_DEBUG: return std::auto_ptr<FEDFEHeader>(new FEDFullDebugHeader()); case HEADER_TYPE_APV_ERROR: return std::auto_ptr<FEDFEHeader>(new FEDAPVErrorHeader()); default: return std::auto_ptr<FEDFEHeader>(); } }
std::auto_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEHeader | ( | const FEDHeaderType | headerType, |
const uint8_t * | headerBuffer | ||
) | [inline, static] |
Definition at line 987 of file SiStripFEDBufferComponents.h.
References sistrip::HEADER_TYPE_APV_ERROR, and sistrip::HEADER_TYPE_FULL_DEBUG.
Referenced by sistrip::FEDBuffer::FEDBuffer().
{ switch (headerType) { case HEADER_TYPE_FULL_DEBUG: return std::auto_ptr<FEDFEHeader>(new FEDFullDebugHeader(headerBuffer)); case HEADER_TYPE_APV_ERROR: return std::auto_ptr<FEDFEHeader>(new FEDAPVErrorHeader(headerBuffer)); default: return std::auto_ptr<FEDFEHeader>(); } }
virtual void sistrip::FEDFEHeader::print | ( | std::ostream & | os | ) | const [pure virtual] |
Implemented in sistrip::FEDAPVErrorHeader, and sistrip::FEDFullDebugHeader.
Referenced by sistrip::operator<<().
virtual void sistrip::FEDFEHeader::setBEStatusRegister | ( | const FEDBackendStatusRegister | beStatusRegister | ) | [pure virtual] |
Implemented in sistrip::FEDAPVErrorHeader, and sistrip::FEDFullDebugHeader.
virtual void sistrip::FEDFEHeader::setChannelStatus | ( | const uint8_t | internalFEDChannelNum, |
const FEDChannelStatus | status | ||
) | [pure virtual] |
Implemented in sistrip::FEDAPVErrorHeader, and sistrip::FEDFullDebugHeader.
Referenced by setChannelStatus().
void sistrip::FEDFEHeader::setChannelStatus | ( | const uint8_t | internalFEUnitNum, |
const uint8_t | internalFEUnitChannelNum, | ||
const FEDChannelStatus | status | ||
) | [inline] |
Definition at line 1033 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and setChannelStatus().
{ this->setChannelStatus(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),status); }
virtual void sistrip::FEDFEHeader::setFEUnitLength | ( | const uint8_t | internalFEUnitNum, |
const uint16_t | length | ||
) | [pure virtual] |
Implemented in sistrip::FEDAPVErrorHeader, and sistrip::FEDFullDebugHeader.
virtual void sistrip::FEDFEHeader::setFEUnitMajorityAddress | ( | const uint8_t | internalFEUnitNum, |
const uint8_t | address | ||
) | [pure virtual] |
Implemented in sistrip::FEDAPVErrorHeader, and sistrip::FEDFullDebugHeader.