M5UnitUnified 0.0.2 git rev:a353e8c
|
Interface class for periodic measurement (CRTP) More...
#include <M5UnitComponent.hpp>
Public Member Functions | |
Periodic measurement | |
template<typename... Args> | |
bool | startPeriodicMeasurement (Args &&... args) |
Start periodic measurement. | |
template<typename... Args> | |
bool | stopPeriodicMeasurement (Args &&... args) |
Stop periodic measurement. | |
Data | |
size_t | available () const |
Gets the number of stored data. | |
bool | empty () const |
Is empty stored data? | |
bool | full () const |
Is stored data full? | |
MD | oldest () const |
Retrieve oldest stored data. | |
MD | latest () const |
Retrieve latest stored data. | |
void | discard () |
Discard the oldest data accumulated. | |
void | flush () |
Discard all data. | |
Interface class for periodic measurement (CRTP)
Common interface for accumulated periodic measurement data
Provide a common interface for periodic measurements for each unit
Derived | Derived class |
MD | Type of the measurement data group |
|
inline |
Start periodic measurement.
Args | Optional arguments |
|
inline |
Stop periodic measurement.
Args | Optional arguments |