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

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

#include <dataitem.hpp>

Public Member Functions

void set (const uint16_t *samples)
 Sets the fields. More...
 
void toCStringFull (char *s, uint32_t len) const
 Get the content as a c string. More...
 

Public Attributes

uint16_t sample3: 14
 
uint16_t res3: 2
 
uint16_t sample2: 14
 
uint16_t res2: 2
 
uint16_t sample1: 14
 
uint16_t res1: 2
 
uint16_t sample0: 14
 
uint16_t res0: 2
 

Detailed Description

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

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

Member Function Documentation

◆ set()

void pottu::dataitem_tracedata_t::set ( const uint16_t *  samples)
inline

Sets the fields.

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

Parameters
samplesPointer to four consecutive samples. Values are clipped to 14 bits.

◆ toCStringFull()

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

Get the content as a c string.

This is useful for debugging.

Member Data Documentation

◆ res0

uint16_t pottu::dataitem_tracedata_t::res0

Not used. Should be zero.

◆ res1

uint16_t pottu::dataitem_tracedata_t::res1

Not used. Should be zero.

◆ res2

uint16_t pottu::dataitem_tracedata_t::res2

Not used. Should be zero.

◆ res3

uint16_t pottu::dataitem_tracedata_t::res3

Not used. Should be zero.

◆ sample0

uint16_t pottu::dataitem_tracedata_t::sample0

First (14bit) sample in this item.

◆ sample1

uint16_t pottu::dataitem_tracedata_t::sample1

Second (14bit) sample in this item.

◆ sample2

uint16_t pottu::dataitem_tracedata_t::sample2

Third (14bit) sample in this item.

◆ sample3

uint16_t pottu::dataitem_tracedata_t::sample3

Fourth (14bit) sample in this item.


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