#include <DTDDUWords.h>
Public Member Functions | |
int | cerosIdCerosStatus () const |
int | cerosIdRosStatus () const |
int | debugMessage () const |
int | debugType () const |
int | dontRead () const |
DTROSDebugWord () | |
Constructor. | |
DTROSDebugWord (const DTROSDebugWord &obj) | |
DTROSDebugWord (const uint32_t index) | |
int | evIdMis () const |
virtual | ~DTROSDebugWord () |
Destructor. | |
Static Public Member Functions | |
static void | set (uint32_t &word, int debug_type) |
static void | set (uint32_t &word, int debug_type, int ceros_id) |
Private Attributes | |
uint32_t | word_ |
DT ROS Debug interpreter. It interprets the Debug type (3 bits) and the debug message (in the first 15 bits)
Definition at line 356 of file DTDDUWords.h.
DTROSDebugWord::DTROSDebugWord | ( | ) | [inline] |
DTROSDebugWord::DTROSDebugWord | ( | const DTROSDebugWord & | obj | ) | [inline] |
DTROSDebugWord::DTROSDebugWord | ( | const uint32_t | index | ) | [inline] |
Definition at line 365 of file DTDDUWords.h.
virtual DTROSDebugWord::~DTROSDebugWord | ( | ) | [inline, virtual] |
int DTROSDebugWord::cerosIdCerosStatus | ( | ) | const [inline] |
Definition at line 373 of file DTDDUWords.h.
References CEROS_ID_CEROS_STATUS_MASK, CEROS_ID_CEROS_STATUS_SHIFT, debugType(), and word_.
{ return debugType()==3 ? (word_ & CEROS_ID_CEROS_STATUS_MASK) >> CEROS_ID_CEROS_STATUS_SHIFT : 0;}
int DTROSDebugWord::cerosIdRosStatus | ( | ) | const [inline] |
Definition at line 376 of file DTDDUWords.h.
References CEROS_ID_ROS_STATUS_MASK, debugType(), and word_.
{ return debugType()==4 ? (word_ & CEROS_ID_ROS_STATUS_MASK) : 0;}
int DTROSDebugWord::debugMessage | ( | ) | const [inline] |
Definition at line 372 of file DTDDUWords.h.
References DEBUG_MESSAGE_MASK, and word_.
Referenced by DTROS25Unpacker::interpretRawData().
{ return (word_ & DEBUG_MESSAGE_MASK) ;}
int DTROSDebugWord::debugType | ( | ) | const [inline] |
Definition at line 371 of file DTDDUWords.h.
References DEBUG_TYPE_MASK, DEBUG_TYPE_SHIFT, and word_.
Referenced by cerosIdCerosStatus(), cerosIdRosStatus(), dontRead(), evIdMis(), and DTROS25Unpacker::interpretRawData().
{ return (word_ & DEBUG_TYPE_MASK) >> DEBUG_TYPE_SHIFT;}
int DTROSDebugWord::dontRead | ( | ) | const [inline] |
Definition at line 375 of file DTDDUWords.h.
References debugType(), DONTREAD_CEROS_STATUS_MASK, and word_.
{ return debugType()==3 ? (word_ & DONTREAD_CEROS_STATUS_MASK) : 0;}
int DTROSDebugWord::evIdMis | ( | ) | const [inline] |
Definition at line 374 of file DTDDUWords.h.
References debugType(), EV_ID_CEROS_STATUS_MASK, EV_ID_CEROS_STATUS_SHIFT, and word_.
{ return debugType()==3 ? (word_ & EV_ID_CEROS_STATUS_MASK) >> EV_ID_CEROS_STATUS_SHIFT : 0;}
static void DTROSDebugWord::set | ( | uint32_t & | word, |
int | debug_type | ||
) | [inline, static] |
Definition at line 378 of file DTDDUWords.h.
References DEBUG_TYPE_SHIFT, DTROSWordType::debugControlWord, DTROSWordType::rosTypeWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.
{ word = DTROSWordType::debugControlWord << WORDCONTROLSHIFT | DTROSWordType::rosTypeWord << WORDTYPESHIFT | debug_type << DEBUG_TYPE_SHIFT | 504 << 15; // TEMPORARY }
static void DTROSDebugWord::set | ( | uint32_t & | word, |
int | debug_type, | ||
int | ceros_id | ||
) | [inline, static] |
Definition at line 388 of file DTDDUWords.h.
References CEROS_ID_CEROS_STATUS_SHIFT, DEBUG_TYPE_SHIFT, DTROSWordType::debugControlWord, DTROSWordType::rosTypeWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.
{ word = DTROSWordType::debugControlWord << WORDCONTROLSHIFT | DTROSWordType::rosTypeWord << WORDTYPESHIFT | debug_type << DEBUG_TYPE_SHIFT | ceros_id << CEROS_ID_CEROS_STATUS_SHIFT | 1 << 15; }
uint32_t DTROSDebugWord::word_ [private] |
Definition at line 402 of file DTDDUWords.h.
Referenced by cerosIdCerosStatus(), cerosIdRosStatus(), debugMessage(), debugType(), dontRead(), and evIdMis().