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

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

#include <dataitem.hpp>

Public Member Functions

uint32_t getChannelIdent_adc () const
 ADC number in a module. Calculated from the field chi.
 
uint32_t getChannelIdent_flag () const
 Flag in the field chi. More...
 
uint32_t getChannelIdent_module () const
 Module number. Calculated from the field chi.
 
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 samplelength: 16
 Number of samples following. More...
 
uint32_t chi: 12
 Channel ident. Can be used as a DAQ channel number.
 
uint32_t res1: 2
 Not used by this struct.
 
uint32_t itemtype: 2
 Type of the item. One of itemtype_e.
 

Detailed Description

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

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

Member Function Documentation

◆ getChannelIdent_flag()

uint32_t pottu::dataitem_tracehead_t::getChannelIdent_flag ( ) const
inline

Flag in the field chi.

Typically 1 means that the data is dc-level, not actual data.

◆ toCStringFull()

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

Get the content as a c string.

This is useful for debugging.

Member Data Documentation

◆ samplelength

uint32_t pottu::dataitem_tracehead_t::samplelength

Number of samples following.

These samples are delivered right after this dataitem as dataitem_tracedata_t.


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