FACT++  1.0
void FTM::Error::print ( std::ostream &  out) const

Definition at line 185 of file HeadersFTM.cc.

References fCommand, fCrcCheckSum, fCrcErrorCounter, fData, fDelimiter, fDestAddress, fFirmwareId, fNumCalls, and fSrcAddress.

Referenced by FTM::operator<<().

186 {
187  out << dec;
188  out << "ERROR: Num Calls = " << fNumCalls;
189  if (fNumCalls==0)
190  out << " (too many)";
191  out << endl;
192  out << " Delimiter = " << (fDelimiter=='@'?"ok":"wrong") << endl;
193  out << " Path = ";
194  if (fSrcAddress==0xc0)
195  out << "FTM(192)";
196  else
197  out << "FTU(" << (fSrcAddress &0x3) << ":" << (fSrcAddress >>2) << ")";
198  out << " --> ";
199  if (fDestAddress==0xc0)
200  out << "FTM(192)";
201  else
202  out << "FTU(" << (fDestAddress&0x3) << ":" << (fDestAddress>>2) << ")";
203  out << endl;
204  out << " FirmwareId = " << hex << fFirmwareId << endl;
205  out << " Command = " << hex << fCommand << endl;
206  out << " CRC counter = " << dec << fCrcErrorCounter << endl;
207  out << " CRC = " << hex << fCrcCheckSum << endl;
208  out << " Data: " << Converter::GetHex<unsigned short>(fData, 0, false) << endl;
209 }
uint16_t fDestAddress
Definition: HeadersFTM.h:713
uint16_t fCrcCheckSum
Definition: HeadersFTM.h:719
uint16_t fDelimiter
Definition: HeadersFTM.h:712
uint16_t fData[21]
Definition: HeadersFTM.h:717
uint16_t fCommand
Definition: HeadersFTM.h:716
uint16_t fCrcErrorCounter
Definition: HeadersFTM.h:718
uint16_t fNumCalls
Definition: HeadersFTM.h:710
uint16_t fFirmwareId
Definition: HeadersFTM.h:715
uint16_t fSrcAddress
Definition: HeadersFTM.h:714

+ Here is the caller graph for this function: