Pottu
Public Member Functions | Public Attributes | List of all members
pottu::dataitem_info_t Struct Reference

Dataitem used to read the dataitem of type itemtype_e::INFO. More...

#include <dataitem.hpp>

Public Member Functions

infocode_e getCode () const
 Returns the infocode as class enum. More...
 
uint32_t getChannelIdent () const
 Returns channel ident for pileup and adc over/under range/flow.
 
void set (uint64_t timestamp_, uint32_t code_, uint32_t info_, uint32_t module_)
 Sets the fields. More...
 
void toCStringFull (char *s, uint32_t len) const
 Get the content as a c string. More...
 

Public Attributes

uint32_t timestamp: 28
 Lowest 28 bits of the timestamp.
 
uint32_t res0: 4
 Empty 4 bits. Can be used for word order guessing.
 
uint32_t info: 20
 Value of the info. TODO describe the types of value possible...
 
uint32_t code: 4
 infocode, one of enum infocode_e. More...
 
uint32_t module: 6
 Module number who has sent this info.
 
uint32_t itemtype: 2
 Type of the item. One of itemtype_e.
 

Detailed Description

Dataitem used to read the dataitem of type itemtype_e::INFO.

This struct is used as a one member in union dataitem_t.

Member Function Documentation

◆ getCode()

infocode_e pottu::dataitem_info_t::getCode ( ) const
inline

Returns the infocode as class enum.

Returns
Code of the info as class enum.

◆ set()

void pottu::dataitem_info_t::set ( uint64_t  timestamp_,
uint32_t  code_,
uint32_t  info_,
uint32_t  module_ 
)
inline

Sets the fields.

This can be used if there is need to produce tdr data.

◆ toCStringFull()

void pottu::dataitem_info_t::toCStringFull ( char *  s,
uint32_t  len 
) const
inline

Get the content as a c string.

This is useful for debugging.

Member Data Documentation

◆ code

uint32_t pottu::dataitem_info_t::code

infocode, one of enum infocode_e.

This defines the meaning of info.


The documentation for this struct was generated from the following file: