Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
mm::node::HrdRecording Struct Reference

One high resolution data recording, read back from the drive's files and decoded. More...

#include <somanet_drive.h>

Collaboration diagram for mm::node::HrdRecording:
[legend]

Public Member Functions

size_t sampleCount () const
 How many samples were decoded, whichever format they are in.
 

Public Attributes

somanet::HrdData data {somanet::HrdData::kEncoderRawData}
 Which signal this recorded.
 
std::vector< DeviceFilefiles
 The files it was read from, in order.
 
size_t byteCount = 0
 Total bytes read across them.
 
size_t trailingBytes = 0
 Bytes past the last whole sample; padding, not data.
 
HrdSamples samples
 The decoded samples.
 

Detailed Description

One high resolution data recording, read back from the drive's files and decoded.

files is what was read, in order, so a recording that came back short can be told from one that was never made. trailingBytes is the bytes past the last whole sample: the firmware allocates its files in fixed-size blocks, so a recording that does not fill the last block leaves padding behind, and a non-zero value here is that padding rather than lost data.

Member Function Documentation

◆ sampleCount()

size_t mm::node::HrdRecording::sampleCount ( ) const

How many samples were decoded, whichever format they are in.

Member Data Documentation

◆ byteCount

size_t mm::node::HrdRecording::byteCount = 0

Total bytes read across them.

◆ data

somanet::HrdData mm::node::HrdRecording::data {somanet::HrdData::kEncoderRawData}

Which signal this recorded.

◆ files

std::vector<DeviceFile> mm::node::HrdRecording::files

The files it was read from, in order.

◆ samples

HrdSamples mm::node::HrdRecording::samples

The decoded samples.

◆ trailingBytes

size_t mm::node::HrdRecording::trailingBytes = 0

Bytes past the last whole sample; padding, not data.


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