#include <NanoSliceWriter.hh>
Public Member Functions | |
NanoSliceWriter (uint8_t *address, uint32_t max_size_bytes, uint16_t channel_number=0) | |
void | setChannelNumber (uint16_t channel) |
bool | addSample (uint16_t value) |
int32_t | finalize () |
Public Member Functions inherited from dune::NanoSlice | |
NanoSlice (uint8_t *address) | |
Header::nanoslice_size_t | size () const |
Header::channel_number_t | channelNumber () const |
Header::sample_count_t | sampleCount () const |
bool | sampleValue (uint32_t index, uint16_t &value) const |
Protected Member Functions | |
Header * | header_ () |
uint16_t * | data_ () |
Protected Member Functions inherited from dune::NanoSlice | |
Header const * | header_ () const |
uint16_t const * | data_ () const |
Protected Attributes | |
uint32_t | max_size_bytes_ |
Protected Attributes inherited from dune::NanoSlice | |
uint8_t * | buffer_ |
Definition at line 10 of file NanoSliceWriter.hh.
dune::NanoSliceWriter::NanoSliceWriter | ( | uint8_t * | address, |
uint32_t | max_size_bytes, | ||
uint16_t | channel_number = 0 |
||
) |
Definition at line 4 of file NanoSliceWriter.cc.
bool dune::NanoSliceWriter::addSample | ( | uint16_t | value | ) |
Definition at line 23 of file NanoSliceWriter.cc.
|
protected |
Definition at line 46 of file NanoSliceWriter.cc.
int32_t dune::NanoSliceWriter::finalize | ( | ) |
Definition at line 34 of file NanoSliceWriter.cc.
|
protected |
Definition at line 41 of file NanoSliceWriter.cc.
void dune::NanoSliceWriter::setChannelNumber | ( | uint16_t | channel | ) |
Definition at line 18 of file NanoSliceWriter.cc.
|
protected |
Definition at line 45 of file NanoSliceWriter.hh.