#include <DTDDUWords.h>
Public Member Functions | |
int | cerosID () const |
DTROSErrorWord (const uint32_t index) | |
DTROSErrorWord (const DTROSErrorWord &obj) | |
DTROSErrorWord () | |
Constructor. | |
int | errorType () const |
int | robID () const |
virtual | ~DTROSErrorWord () |
Destructor. | |
Static Public Member Functions | |
static void | set (uint32_t &word, int error_type, int rob_id) |
Private Attributes | |
uint32_t | word_ |
DT ROS Error interpreter. It interprets the Error type, the ROB_ID (2 bits) and the CEROS ID (6 bits)
Definition at line 309 of file DTDDUWords.h.
DTROSErrorWord::DTROSErrorWord | ( | ) | [inline] |
DTROSErrorWord::DTROSErrorWord | ( | const DTROSErrorWord & | obj | ) | [inline] |
DTROSErrorWord::DTROSErrorWord | ( | const uint32_t | index | ) | [inline] |
Definition at line 318 of file DTDDUWords.h.
virtual DTROSErrorWord::~DTROSErrorWord | ( | ) | [inline, virtual] |
int DTROSErrorWord::cerosID | ( | ) | const [inline] |
Definition at line 326 of file DTDDUWords.h.
References ERROR_CEROS_ID_MASK, errorType(), and word_.
{return errorType()==4 ? (word_ & ERROR_CEROS_ID_MASK) : 0;}
int DTROSErrorWord::errorType | ( | ) | const [inline] |
Definition at line 324 of file DTDDUWords.h.
References ERROR_TYPE_MASK, ERROR_TYPE_SHIFT, and word_.
Referenced by cerosID(), DTROS25Unpacker::interpretRawData(), and DTROSErrorNotifier::print().
{ return (word_ & ERROR_TYPE_MASK) >> ERROR_TYPE_SHIFT;}
int DTROSErrorWord::robID | ( | ) | const [inline] |
Definition at line 325 of file DTDDUWords.h.
References ERROR_ROB_ID_MASK, ERROR_ROB_ID_SHIFT, and word_.
Referenced by DTROS25Unpacker::interpretRawData(), and DTROSErrorNotifier::print().
{ return (word_ & ERROR_ROB_ID_MASK) >> ERROR_ROB_ID_SHIFT;}
static void DTROSErrorWord::set | ( | uint32_t & | word, |
int | error_type, | ||
int | rob_id | ||
) | [inline, static] |
Definition at line 328 of file DTDDUWords.h.
References ERROR_ROB_ID_SHIFT, ERROR_TYPE_SHIFT, DTROSWordType::errorControlWord, ERRORSHIFT, DTROSWordType::rosTypeWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.
{ word = DTROSWordType::errorControlWord << WORDCONTROLSHIFT | DTROSWordType::rosTypeWord << WORDTYPESHIFT | error_type << ERROR_TYPE_SHIFT | rob_id << ERROR_ROB_ID_SHIFT | 1 << ERRORSHIFT; }
uint32_t DTROSErrorWord::word_ [private] |
Definition at line 342 of file DTDDUWords.h.
Referenced by cerosID(), errorType(), and robID().