CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
DTROSDebugWord Class Reference

#include <DTDDUWords.h>

Public Member Functions

int cerosIdCerosStatus () const
 
int cerosIdRosStatus () const
 
int debugMessage () const
 
int debugType () const
 
int dontRead () const
 
 DTROSDebugWord ()
 Constructor. More...
 
 DTROSDebugWord (const DTROSDebugWord &obj)
 
 DTROSDebugWord (const uint32_t index)
 
int evIdMis () const
 
virtual ~DTROSDebugWord ()
 Destructor. More...
 

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_
 

Detailed Description

DT ROS Debug interpreter. It interprets the Debug type (3 bits) and the debug message (in the first 15 bits)

Date:
2009/04/28 12:46:49
Revision:
1.12
Author
M. Zanetti - INFN Padova

Definition at line 356 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTROSDebugWord::DTROSDebugWord ( )
inline

Constructor.

Definition at line 361 of file DTDDUWords.h.

361 {}
DTROSDebugWord::DTROSDebugWord ( const DTROSDebugWord obj)
inline

Definition at line 363 of file DTDDUWords.h.

References VarParsing::obj.

363 { *this = obj; }
tuple obj
Example code starts here #.
Definition: VarParsing.py:655
DTROSDebugWord::DTROSDebugWord ( const uint32_t  index)
inline

Definition at line 365 of file DTDDUWords.h.

365  :
366  word_(index) {}
uint32_t word_
Definition: DTDDUWords.h:402
virtual DTROSDebugWord::~DTROSDebugWord ( )
inlinevirtual

Destructor.

Definition at line 369 of file DTDDUWords.h.

369 {}

Member Function Documentation

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_.

uint32_t word_
Definition: DTDDUWords.h:402
#define CEROS_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:23
#define CEROS_ID_CEROS_STATUS_MASK
Definition: DTDDUWords.h:22
int debugType() const
Definition: DTDDUWords.h:371
int DTROSDebugWord::cerosIdRosStatus ( ) const
inline

Definition at line 376 of file DTDDUWords.h.

References CEROS_ID_ROS_STATUS_MASK, debugType(), and word_.

376 { return debugType()==4 ? (word_ & CEROS_ID_ROS_STATUS_MASK) : 0;}
uint32_t word_
Definition: DTDDUWords.h:402
#define CEROS_ID_ROS_STATUS_MASK
Definition: DTDDUWords.h:27
int debugType() const
Definition: DTDDUWords.h:371
int DTROSDebugWord::debugMessage ( ) const
inline

Definition at line 372 of file DTDDUWords.h.

References DEBUG_MESSAGE_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

372 { return (word_ & DEBUG_MESSAGE_MASK) ;}
uint32_t word_
Definition: DTDDUWords.h:402
#define DEBUG_MESSAGE_MASK
Definition: DTDDUWords.h:21
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().

371 { return (word_ & DEBUG_TYPE_MASK) >> DEBUG_TYPE_SHIFT;}
#define DEBUG_TYPE_MASK
Definition: DTDDUWords.h:19
uint32_t word_
Definition: DTDDUWords.h:402
#define DEBUG_TYPE_SHIFT
Definition: DTDDUWords.h:20
int DTROSDebugWord::dontRead ( ) const
inline

Definition at line 375 of file DTDDUWords.h.

References debugType(), DONTREAD_CEROS_STATUS_MASK, and word_.

375 { return debugType()==3 ? (word_ & DONTREAD_CEROS_STATUS_MASK) : 0;}
uint32_t word_
Definition: DTDDUWords.h:402
#define DONTREAD_CEROS_STATUS_MASK
Definition: DTDDUWords.h:26
int debugType() const
Definition: DTDDUWords.h:371
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_.

#define EV_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:25
uint32_t word_
Definition: DTDDUWords.h:402
int debugType() const
Definition: DTDDUWords.h:371
#define EV_ID_CEROS_STATUS_MASK
Definition: DTDDUWords.h:24
static void DTROSDebugWord::set ( uint32_t &  word,
int  debug_type 
)
inlinestatic

Definition at line 378 of file DTDDUWords.h.

References DEBUG_TYPE_SHIFT, DTROSWordType::debugControlWord, DTROSWordType::rosTypeWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.

379  {
380 
381  word =
384  debug_type << DEBUG_TYPE_SHIFT |
385  504 << 15; // TEMPORARY
386  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define DEBUG_TYPE_SHIFT
Definition: DTDDUWords.h:20
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:192
static const uint32_t debugControlWord
Definition: DTDDUWords.h:189
static void DTROSDebugWord::set ( uint32_t &  word,
int  debug_type,
int  ceros_id 
)
inlinestatic

Definition at line 388 of file DTDDUWords.h.

References CEROS_ID_CEROS_STATUS_SHIFT, DEBUG_TYPE_SHIFT, DTROSWordType::debugControlWord, DTROSWordType::rosTypeWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.

390  {
391 
392  word =
395  debug_type << DEBUG_TYPE_SHIFT |
396  ceros_id << CEROS_ID_CEROS_STATUS_SHIFT |
397  1 << 15;
398  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define CEROS_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:23
#define DEBUG_TYPE_SHIFT
Definition: DTDDUWords.h:20
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:192
static const uint32_t debugControlWord
Definition: DTDDUWords.h:189

Member Data Documentation

uint32_t DTROSDebugWord::word_
private