|
Pottu
|
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 |
Dataitem used to read the dataitem of type itemtype_e::tracedata.
This struct is used as a one member in union dataitem_t.
|
inline |
Sets the fields.
This can be used if there is need to produce tdr data.
| samples | Pointer to four consecutive samples. Values are clipped to 14 bits. |
|
inline |
Get the content as a c string.
This is useful for debugging.
| uint16_t pottu::dataitem_tracedata_t::res0 |
Not used. Should be zero.
| uint16_t pottu::dataitem_tracedata_t::res1 |
Not used. Should be zero.
| uint16_t pottu::dataitem_tracedata_t::res2 |
Not used. Should be zero.
| uint16_t pottu::dataitem_tracedata_t::res3 |
Not used. Should be zero.
| uint16_t pottu::dataitem_tracedata_t::sample0 |
First (14bit) sample in this item.
| uint16_t pottu::dataitem_tracedata_t::sample1 |
Second (14bit) sample in this item.
| uint16_t pottu::dataitem_tracedata_t::sample2 |
Third (14bit) sample in this item.
| uint16_t pottu::dataitem_tracedata_t::sample3 |
Fourth (14bit) sample in this item.