#include <SiStripFEDBufferComponents.h>
Public Member Functions | |
bool | apvAddressError (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const |
bool | apvAddressError (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const uint8_t apvNum) const |
bool | apvError (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const |
bool | apvError (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const uint8_t apvNum) const |
FEDBackendStatusRegister | beStatusRegister () const |
virtual bool | checkChannelStatusBits (const uint8_t internalFEDChannelNum) const |
virtual bool | checkStatusBits (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const |
virtual FEDFullDebugHeader * | clone () const |
uint32_t | daqRegister () const |
uint32_t | daqRegister2 () const |
virtual const uint8_t * | data () const |
FEDFullDebugHeader (const uint8_t *headerBuffer) | |
FEDFullDebugHeader (const std::vector< uint16_t > feUnitLengths=std::vector< uint16_t >(FEUNITS_PER_FED, 0), const std::vector< uint8_t > feMajorityAddresses=std::vector< uint8_t >(FEUNITS_PER_FED, 0), const std::vector< FEDChannelStatus > channelStatus=std::vector< FEDChannelStatus >(FEDCH_PER_FED, CHANNEL_STATUS_NO_PROBLEMS), const FEDBackendStatusRegister beStatusRegister=FEDBackendStatusRegister(), const uint32_t daqRegister=0, const uint32_t daqRegister2=0) | |
bool | fePresent (const uint8_t internalFEUnitNum) const |
uint16_t | feUnitLength (const uint8_t internalFEUnitNum) const |
uint8_t | feUnitMajorityAddress (const uint8_t internalFEUnitNum) const |
FEDChannelStatus | getChannelStatus (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
FEDChannelStatus | getChannelStatus (const uint8_t internalFEDChannelNum) const |
virtual size_t | lengthInBytes () const |
bool | outOfSync (const uint8_t internalFEDChannelNum) const |
bool | outOfSync (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
virtual void | print (std::ostream &os) const |
virtual void | setBEStatusRegister (const FEDBackendStatusRegister beStatusRegister) |
virtual void | setChannelStatus (const uint8_t internalFEDChannelNum, const FEDChannelStatus status) |
virtual void | setDAQRegister (const uint32_t daqRegister) |
virtual void | setDAQRegister2 (const uint32_t daqRegister2) |
virtual void | setFEUnitLength (const uint8_t internalFEUnitNum, const uint16_t length) |
virtual void | setFEUnitMajorityAddress (const uint8_t internalFEUnitNum, const uint8_t address) |
bool | unlocked (const uint8_t internalFEDChannelNum) const |
bool | unlocked (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
virtual | ~FEDFullDebugHeader () |
Private Member Functions | |
bool | apvAddressErrorFromBit (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const |
bool | apvErrorFromBit (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const |
const uint8_t * | feWord (const uint8_t internalFEUnitNum) const |
uint8_t * | feWord (const uint8_t internalFEUnitNum) |
bool | getBit (const uint8_t internalFEDChannelNum, const uint8_t bit) const |
bool | outOfSyncFromBit (const uint8_t internalFEDChannelNum) const |
void | setAPVAddressError (const uint8_t internalFEDChannelNum, const uint8_t apvNum, const bool value) |
void | setAPVError (const uint8_t internalFEDChannelNum, const uint8_t apvNum, const bool value) |
void | setBit (const uint8_t internalFEDChannelNum, const uint8_t bit, const bool value) |
void | setOutOfSync (const uint8_t internalFEDChannelNum, const bool value) |
void | setUnlocked (const uint8_t internalFEDChannelNum, const bool value) |
bool | unlockedFromBit (const uint8_t internalFEDChannelNum) const |
Static Private Member Functions | |
static uint32_t | get32BitWordFrom (const uint8_t *startOfWord) |
static void | set32BitWordAt (uint8_t *startOfWord, const uint32_t value) |
Private Attributes | |
uint8_t | header_ [FULL_DEBUG_HEADER_SIZE_IN_BYTES] |
Static Private Attributes | |
static const size_t | FULL_DEBUG_HEADER_SIZE_IN_64BIT_WORDS = FEUNITS_PER_FED*2 |
static const size_t | FULL_DEBUG_HEADER_SIZE_IN_BYTES = FULL_DEBUG_HEADER_SIZE_IN_64BIT_WORDS*8 |
Definition at line 439 of file SiStripFEDBufferComponents.h.
sistrip::FEDFullDebugHeader::FEDFullDebugHeader | ( | const uint8_t * | headerBuffer | ) | [inline, explicit] |
Definition at line 1049 of file SiStripFEDBufferComponents.h.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES, and header_.
Referenced by clone().
{ memcpy(header_,headerBuffer,FULL_DEBUG_HEADER_SIZE_IN_BYTES); }
sistrip::FEDFullDebugHeader::~FEDFullDebugHeader | ( | ) | [virtual] |
Definition at line 1051 of file SiStripFEDBufferComponents.cc.
{ }
sistrip::FEDFullDebugHeader::FEDFullDebugHeader | ( | const std::vector< uint16_t > | feUnitLengths = std::vector<uint16_t>(FEUNITS_PER_FED,0) , |
const std::vector< uint8_t > | feMajorityAddresses = std::vector<uint8_t>(FEUNITS_PER_FED,0) , |
||
const std::vector< FEDChannelStatus > | channelStatus = std::vector<FEDChannelStatus>(FEDCH_PER_FED,CHANNEL_STATUS_NO_PROBLEMS) , |
||
const FEDBackendStatusRegister | beStatusRegister = FEDBackendStatusRegister() , |
||
const uint32_t | daqRegister = 0 , |
||
const uint32_t | daqRegister2 = 0 |
||
) |
Definition at line 1134 of file SiStripFEDBufferComponents.cc.
References sistrip::FEDCH_PER_FED, sistrip::FEUNITS_PER_FED, FULL_DEBUG_HEADER_SIZE_IN_BYTES, header_, setBEStatusRegister(), setChannelStatus(), setDAQRegister(), setDAQRegister2(), setFEUnitLength(), and setFEUnitMajorityAddress().
{ memset(header_,0x00,FULL_DEBUG_HEADER_SIZE_IN_BYTES); setBEStatusRegister(beStatusRegister); setDAQRegister(daqRegister); setDAQRegister2(daqRegister2); for (uint8_t iFE = 0; iFE < FEUNITS_PER_FED; iFE++) { setFEUnitLength(iFE,feUnitLengths[iFE]); setFEUnitMajorityAddress(iFE,feMajorityAddresses[iFE]); } for (uint8_t iCh = 0; iCh < FEDCH_PER_FED; iCh++) { setChannelStatus(iCh,channelStatus[iCh]); } }
bool sistrip::FEDFullDebugHeader::apvAddressError | ( | const uint8_t | internalFEDChannelNum, |
const uint8_t | apvNum | ||
) | const [inline] |
Definition at line 1116 of file SiStripFEDBufferComponents.h.
References apvAddressErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().
Referenced by apvAddressError(), and checkStatusBits().
{ return ( !unlockedFromBit(internalFEDChannelNum) && !outOfSyncFromBit(internalFEDChannelNum) && apvAddressErrorFromBit(internalFEDChannelNum,apvNum) ); }
bool sistrip::FEDFullDebugHeader::apvAddressError | ( | const uint8_t | internalFEUnitNum, |
const uint8_t | internalFEUnitChannelNum, | ||
const uint8_t | apvNum | ||
) | const [inline] |
Definition at line 1123 of file SiStripFEDBufferComponents.h.
References apvAddressError(), and sistrip::internalFEDChannelNum().
{ return apvAddressError(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),apvNum); }
bool sistrip::FEDFullDebugHeader::apvAddressErrorFromBit | ( | const uint8_t | internalFEDChannelNum, |
const uint8_t | apvNum | ||
) | const [inline, private] |
Definition at line 1154 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvAddressError().
{ return !getBit(internalFEDChannelNum,1+2*apvNum); }
bool sistrip::FEDFullDebugHeader::apvError | ( | const uint8_t | internalFEDChannelNum, |
const uint8_t | apvNum | ||
) | const [inline] |
Definition at line 1104 of file SiStripFEDBufferComponents.h.
References apvErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().
Referenced by apvError(), and checkStatusBits().
{ return ( !unlockedFromBit(internalFEDChannelNum) && !outOfSyncFromBit(internalFEDChannelNum) && apvErrorFromBit(internalFEDChannelNum,apvNum) ); }
bool sistrip::FEDFullDebugHeader::apvError | ( | const uint8_t | internalFEUnitNum, |
const uint8_t | internalFEUnitChannelNum, | ||
const uint8_t | apvNum | ||
) | const [inline] |
Definition at line 1111 of file SiStripFEDBufferComponents.h.
References apvError(), and sistrip::internalFEDChannelNum().
{ return apvError(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),apvNum); }
bool sistrip::FEDFullDebugHeader::apvErrorFromBit | ( | const uint8_t | internalFEDChannelNum, |
const uint8_t | apvNum | ||
) | const [inline, private] |
Definition at line 1143 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvError().
{ //Discovered March 2012: two bits inverted in firmware. Decided //to update documentation but keep firmware identical for //backward compatibility. So status bit order is actually: //apvErr1 - apvAddrErr0 - apvErr0 - apvAddrErr1 - OOS - unlocked. //Before, it was: return !getBit(internalFEDChannelNum,0+2*apvNum); return !getBit(internalFEDChannelNum,0+2*(1-apvNum)); }
FEDBackendStatusRegister sistrip::FEDFullDebugHeader::beStatusRegister | ( | ) | const [inline] |
Definition at line 1059 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
{ return FEDBackendStatusRegister(get32BitWordFrom(feWord(0)+10)); }
bool sistrip::FEDFullDebugHeader::checkChannelStatusBits | ( | const uint8_t | internalFEDChannelNum | ) | const [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 1078 of file SiStripFEDBufferComponents.cc.
References sistrip::CHANNEL_STATUS_NO_PROBLEMS, and getChannelStatus().
{ //return ( !unlockedFromBit(internalFEDChannelNum) && // !outOfSyncFromBit(internalFEDChannelNum) && // !apvErrorFromBit(internalFEDChannelNum,0) && // !apvAddressErrorFromBit(internalFEDChannelNum,0) && // !apvErrorFromBit(internalFEDChannelNum,1) && // !apvAddressErrorFromBit(internalFEDChannelNum,1) ); return (getChannelStatus(internalFEDChannelNum) == CHANNEL_STATUS_NO_PROBLEMS); }
bool sistrip::FEDFullDebugHeader::checkStatusBits | ( | const uint8_t | internalFEDChannelNum, |
const uint8_t | apvNum | ||
) | const [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 1070 of file SiStripFEDBufferComponents.cc.
References apvAddressError(), apvError(), outOfSyncFromBit(), and unlockedFromBit().
{ return ( !unlockedFromBit(internalFEDChannelNum) && !outOfSyncFromBit(internalFEDChannelNum) && !apvError(internalFEDChannelNum,apvNum) && !apvAddressError(internalFEDChannelNum,apvNum) ); }
FEDFullDebugHeader * sistrip::FEDFullDebugHeader::clone | ( | void | ) | const [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 1065 of file SiStripFEDBufferComponents.cc.
References FEDFullDebugHeader().
{ return new FEDFullDebugHeader(*this); }
uint32_t sistrip::FEDFullDebugHeader::daqRegister | ( | ) | const [inline] |
Definition at line 1064 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
Referenced by sistrip::RawToDigiUnpacker::updateEventSummary().
{ return get32BitWordFrom(feWord(7)+10); }
uint32_t sistrip::FEDFullDebugHeader::daqRegister2 | ( | ) | const [inline] |
Definition at line 1069 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
Referenced by sistrip::RawToDigiUnpacker::updateEventSummary().
{ return get32BitWordFrom(feWord(6)+10); }
const uint8_t * sistrip::FEDFullDebugHeader::data | ( | ) | const [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 1129 of file SiStripFEDBufferComponents.cc.
References header_.
{ return header_; }
bool sistrip::FEDFullDebugHeader::fePresent | ( | const uint8_t | internalFEUnitNum | ) | const [inline] |
Definition at line 1079 of file SiStripFEDBufferComponents.h.
References feUnitLength().
Referenced by sistrip::FEDBuffer::FEDBuffer().
{ return (feUnitLength(internalFEUnitNum) != 0); }
uint16_t sistrip::FEDFullDebugHeader::feUnitLength | ( | const uint8_t | internalFEUnitNum | ) | const [inline] |
Definition at line 1074 of file SiStripFEDBufferComponents.h.
References feWord().
Referenced by sistrip::FEDBuffer::checkFEUnitLengths(), sistrip::FEDBuffer::checkSummary(), and fePresent().
uint8_t sistrip::FEDFullDebugHeader::feUnitMajorityAddress | ( | const uint8_t | internalFEUnitNum | ) | const [inline] |
Definition at line 1054 of file SiStripFEDBufferComponents.h.
References feWord().
Referenced by sistrip::FEDBuffer::checkFEUnitAPVAddresses(), and sistrip::FEDBuffer::checkSummary().
{ return feWord(internalFEUnitNum)[9]; }
const uint8_t * sistrip::FEDFullDebugHeader::feWord | ( | const uint8_t | internalFEUnitNum | ) | const [inline, private] |
Definition at line 1176 of file SiStripFEDBufferComponents.h.
References header_.
Referenced by beStatusRegister(), daqRegister(), daqRegister2(), feUnitLength(), feUnitMajorityAddress(), feWord(), getBit(), getChannelStatus(), setBEStatusRegister(), setBit(), setDAQRegister(), setDAQRegister2(), setFEUnitLength(), and setFEUnitMajorityAddress().
{ return header_+internalFEUnitNum*2*8; }
uint8_t * sistrip::FEDFullDebugHeader::feWord | ( | const uint8_t | internalFEUnitNum | ) | [inline, private] |
Definition at line 1182 of file SiStripFEDBufferComponents.h.
References feWord().
{ return const_cast<uint8_t*>(static_cast<const FEDFullDebugHeader*>(this)->feWord(internalFEUnitNum)); }
uint32_t sistrip::FEDFullDebugHeader::get32BitWordFrom | ( | const uint8_t * | startOfWord | ) | [inline, static, private] |
Definition at line 1166 of file SiStripFEDBufferComponents.h.
Referenced by beStatusRegister(), daqRegister(), and daqRegister2().
{
return ( startOfWord[0] | (startOfWord[1]<<8) | (startOfWord[2]<<16) | (startOfWord[3]<<24) );
}
bool sistrip::FEDFullDebugHeader::getBit | ( | const uint8_t | internalFEDChannelNum, |
const uint8_t | bit | ||
) | const [inline, private] |
Definition at line 1159 of file SiStripFEDBufferComponents.h.
References sistrip::FEDCH_PER_FEUNIT, and feWord().
Referenced by apvAddressErrorFromBit(), apvErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().
{ const uint8_t* pFEWord = feWord(internalFEDChannelNum / FEDCH_PER_FEUNIT); const uint8_t bitInFeWord = ((FEDCH_PER_FEUNIT-1) - (internalFEDChannelNum%FEDCH_PER_FEUNIT)) * 6 + bit; return ( pFEWord[bitInFeWord/8] & (0x1 << (bitInFeWord%8)) ); }
FEDChannelStatus sistrip::FEDFullDebugHeader::getChannelStatus | ( | const uint8_t | internalFEDChannelNum | ) | const |
Definition at line 1089 of file SiStripFEDBufferComponents.cc.
References sistrip::FEDCH_PER_FEUNIT, and feWord().
Referenced by checkChannelStatusBits(), sistrip::FEDBuffer::checkSummary(), and getChannelStatus().
{ const uint8_t* pFEWord = feWord(internalFEDChannelNum/FEDCH_PER_FEUNIT); const uint8_t feUnitChanNum = internalFEDChannelNum % FEDCH_PER_FEUNIT; const uint8_t startByteInFEWord = (FEDCH_PER_FEUNIT-1 - feUnitChanNum) * 6 / 8; switch ( (FEDCH_PER_FEUNIT-1-feUnitChanNum) % 4 ) { case 0: return FEDChannelStatus( pFEWord[startByteInFEWord] & 0x3F ); case 1: return FEDChannelStatus( ((pFEWord[startByteInFEWord] & 0xC0) >> 6) | ((pFEWord[startByteInFEWord+1] & 0x0F) << 2) ); case 2: return FEDChannelStatus( ((pFEWord[startByteInFEWord] & 0xF0) >> 4) | ((pFEWord[startByteInFEWord+1] & 0x03) << 4) ); case 3: return FEDChannelStatus( (pFEWord[startByteInFEWord] & 0xFC) >> 2 ); //stop compiler warning default: return FEDChannelStatus(0); } /*const uint8_t feUnitChanNum = internalFEDChannelNum / FEDCH_PER_FEUNIT; const uint8_t* pFEWord = feWord(feUnitChanNum); const uint8_t startByteInFEWord = feUnitChanNum * 3 / 4; //const uint8_t shift = ( 6 - ((feUnitChanNum-1)%4) ); //const uint16_t mask = ( 0x003F << shift ); //uint8_t result = ( (pFEWord[startByteInFEWord] & (mask&0x00FF)) >> shift ); //result |= ( (pFEWord[startByteInFEWord+1] & (mask>>8)) << (8-shift) ); switch (feUnitChanNum % 4) { case 0: return FEDChannelStatus( pFEWord[startByteInFEWord] & 0x3F ); case 1: return FEDChannelStatus( ((pFEWord[startByteInFEWord] & 0xC0) >> 6) | ((pFEWord[startByteInFEWord+1] & 0x0F) << 2) ); case 2: return FEDChannelStatus( ((pFEWord[startByteInFEWord] & 0xF0) >> 4) | ((pFEWord[startByteInFEWord+1] & 0x03) << 4) ); case 3: return FEDChannelStatus( (pFEWord[startByteInFEWord] & 0xFC) >> 2 ); //stop compiler warning default: return FEDChannelStatus(0); }*/ }
FEDChannelStatus sistrip::FEDFullDebugHeader::getChannelStatus | ( | const uint8_t | internalFEUnitNum, |
const uint8_t | internalFEUnitChannelNum | ||
) | const [inline] |
Definition at line 1128 of file SiStripFEDBufferComponents.h.
References getChannelStatus(), and sistrip::internalFEDChannelNum().
{ return getChannelStatus(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum)); }
size_t sistrip::FEDFullDebugHeader::lengthInBytes | ( | ) | const [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 1055 of file SiStripFEDBufferComponents.cc.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES.
{ return FULL_DEBUG_HEADER_SIZE_IN_BYTES; }
bool sistrip::FEDFullDebugHeader::outOfSync | ( | const uint8_t | internalFEDChannelNum | ) | const [inline] |
Definition at line 1094 of file SiStripFEDBufferComponents.h.
References outOfSyncFromBit(), and unlocked().
Referenced by outOfSync().
{ return ( !unlocked(internalFEDChannelNum) && outOfSyncFromBit(internalFEDChannelNum) ); }
bool sistrip::FEDFullDebugHeader::outOfSync | ( | const uint8_t | internalFEUnitNum, |
const uint8_t | internalFEUnitChannelNum | ||
) | const [inline] |
Definition at line 1099 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and outOfSync().
{ return outOfSync(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum)); }
bool sistrip::FEDFullDebugHeader::outOfSyncFromBit | ( | const uint8_t | internalFEDChannelNum | ) | const [inline, private] |
Definition at line 1138 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvAddressError(), apvError(), checkStatusBits(), and outOfSync().
{ return !getBit(internalFEDChannelNum,4); }
void sistrip::FEDFullDebugHeader::print | ( | std::ostream & | os | ) | const [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 1060 of file SiStripFEDBufferComponents.cc.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES, header_, and sistrip::printHex().
void sistrip::FEDFullDebugHeader::set32BitWordAt | ( | uint8_t * | startOfWord, |
const uint32_t | value | ||
) | [inline, static, private] |
Definition at line 1171 of file SiStripFEDBufferComponents.h.
Referenced by setBEStatusRegister(), setDAQRegister(), and setDAQRegister2().
{ memcpy(startOfWord,&value,4); }
void sistrip::FEDFullDebugHeader::setAPVAddressError | ( | const uint8_t | internalFEDChannelNum, |
const uint8_t | apvNum, | ||
const bool | value | ||
) | [inline, private] |
Definition at line 1197 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
{ setBit(internalFEDChannelNum,1+2*apvNum,!value); }
void sistrip::FEDFullDebugHeader::setAPVError | ( | const uint8_t | internalFEDChannelNum, |
const uint8_t | apvNum, | ||
const bool | value | ||
) | [inline, private] |
Definition at line 1202 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
{ //Discovered March 2012: two bits inverted in firmware. Decided //to update documentation but keep firmware identical for //backward compatibility. So status bit order is actually: //apvErr1 - apvAddrErr0 - apvErr0 - apvAddrErr1 - OOS - unlocked. //Before, it was: return !getBit(internalFEDChannelNum,0+2*apvNum); setBit(internalFEDChannelNum,0+2*(1-apvNum),!value); }
void sistrip::FEDFullDebugHeader::setBEStatusRegister | ( | const FEDBackendStatusRegister | beStatusRegister | ) | [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 1166 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
{ set32BitWordAt(feWord(0)+10,beStatusRegister); }
void sistrip::FEDFullDebugHeader::setBit | ( | const uint8_t | internalFEDChannelNum, |
const uint8_t | bit, | ||
const bool | value | ||
) | [private] |
Definition at line 1187 of file SiStripFEDBufferComponents.cc.
References INSTR::byte, sistrip::FEDCH_PER_FEUNIT, and feWord().
Referenced by setAPVAddressError(), setAPVError(), setOutOfSync(), and setUnlocked().
{ const uint8_t bitInFeWord = (FEDCH_PER_FEUNIT-1 - (internalFEDChannelNum%FEDCH_PER_FEUNIT)) * 6 + bit; uint8_t& byte = *(feWord(internalFEDChannelNum / FEDCH_PER_FEUNIT)+(bitInFeWord/8)); const uint8_t mask = (0x1 << bitInFeWord%8); byte = ( (byte & (~mask)) | (value?mask:0x0) ); }
void sistrip::FEDFullDebugHeader::setChannelStatus | ( | const uint8_t | internalFEDChannelNum, |
const FEDChannelStatus | status | ||
) | [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 1151 of file SiStripFEDBufferComponents.cc.
References sistrip::CHANNEL_STATUS_APV0_ADDRESS_GOOD, sistrip::CHANNEL_STATUS_APV0_NO_ERROR_BIT, sistrip::CHANNEL_STATUS_APV1_ADDRESS_GOOD, sistrip::CHANNEL_STATUS_APV1_NO_ERROR_BIT, sistrip::CHANNEL_STATUS_IN_SYNC, sistrip::CHANNEL_STATUS_LOCKED, setAPVAddressError(), setAPVError(), setOutOfSync(), and setUnlocked().
Referenced by FEDFullDebugHeader().
{ setUnlocked(internalFEDChannelNum, !(status&CHANNEL_STATUS_LOCKED) ); setOutOfSync(internalFEDChannelNum, !(status&CHANNEL_STATUS_IN_SYNC) ); setAPVAddressError(internalFEDChannelNum,1, !(status&CHANNEL_STATUS_APV1_ADDRESS_GOOD) ); setAPVAddressError(internalFEDChannelNum,0, !(status&CHANNEL_STATUS_APV0_ADDRESS_GOOD) ); setAPVError(internalFEDChannelNum,1, !(status&CHANNEL_STATUS_APV1_NO_ERROR_BIT) ); setAPVError(internalFEDChannelNum,0, !(status&CHANNEL_STATUS_APV0_NO_ERROR_BIT) ); }
void sistrip::FEDFullDebugHeader::setDAQRegister | ( | const uint32_t | daqRegister | ) | [virtual] |
Definition at line 1171 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
{ set32BitWordAt(feWord(7)+10,daqRegister); }
void sistrip::FEDFullDebugHeader::setDAQRegister2 | ( | const uint32_t | daqRegister2 | ) | [virtual] |
Definition at line 1176 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
{ set32BitWordAt(feWord(6)+10,daqRegister2); }
void sistrip::FEDFullDebugHeader::setFEUnitLength | ( | const uint8_t | internalFEUnitNum, |
const uint16_t | length | ||
) | [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 1181 of file SiStripFEDBufferComponents.cc.
References feWord().
Referenced by FEDFullDebugHeader().
void sistrip::FEDFullDebugHeader::setFEUnitMajorityAddress | ( | const uint8_t | internalFEUnitNum, |
const uint8_t | address | ||
) | [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 1161 of file SiStripFEDBufferComponents.cc.
References feWord().
Referenced by FEDFullDebugHeader().
void sistrip::FEDFullDebugHeader::setOutOfSync | ( | const uint8_t | internalFEDChannelNum, |
const bool | value | ||
) | [inline, private] |
Definition at line 1192 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
{ setBit(internalFEDChannelNum,4,!value); }
void sistrip::FEDFullDebugHeader::setUnlocked | ( | const uint8_t | internalFEDChannelNum, |
const bool | value | ||
) | [inline, private] |
Definition at line 1187 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
{ setBit(internalFEDChannelNum,5,!value); }
bool sistrip::FEDFullDebugHeader::unlocked | ( | const uint8_t | internalFEDChannelNum | ) | const [inline] |
Definition at line 1084 of file SiStripFEDBufferComponents.h.
References unlockedFromBit().
Referenced by outOfSync(), and unlocked().
{ return unlockedFromBit(internalFEDChannelNum); }
bool sistrip::FEDFullDebugHeader::unlocked | ( | const uint8_t | internalFEUnitNum, |
const uint8_t | internalFEUnitChannelNum | ||
) | const [inline] |
Definition at line 1089 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and unlocked().
{ return unlocked(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum)); }
bool sistrip::FEDFullDebugHeader::unlockedFromBit | ( | const uint8_t | internalFEDChannelNum | ) | const [inline, private] |
Definition at line 1133 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvAddressError(), apvError(), checkStatusBits(), and unlocked().
{ return !getBit(internalFEDChannelNum,5); }
const size_t sistrip::FEDFullDebugHeader::FULL_DEBUG_HEADER_SIZE_IN_64BIT_WORDS = FEUNITS_PER_FED*2 [static, private] |
Definition at line 509 of file SiStripFEDBufferComponents.h.
const size_t sistrip::FEDFullDebugHeader::FULL_DEBUG_HEADER_SIZE_IN_BYTES = FULL_DEBUG_HEADER_SIZE_IN_64BIT_WORDS*8 [static, private] |
Definition at line 510 of file SiStripFEDBufferComponents.h.
Referenced by FEDFullDebugHeader(), lengthInBytes(), and print().
uint8_t sistrip::FEDFullDebugHeader::header_[FULL_DEBUG_HEADER_SIZE_IN_BYTES] [private] |
Definition at line 511 of file SiStripFEDBufferComponents.h.
Referenced by data(), FEDFullDebugHeader(), feWord(), and print().