SoftFilters
0.1.0
Arduino framework and library of software data filters.
|
A filter that adds timestamps to the input values. More...
#include <SoftFilters.h>
Public Member Functions | |
virtual bool | update (void const *const input) override |
Internally update the filter output based on the given input. More... | |
![]() | |
bool | push (void const *const input, void *const output) |
Push a new data through the filter. More... | |
Additional Inherited Members | |
![]() | |
virtual void const *const | get_output_val_ptr () final |
Push a new data through the filter. More... | |
virtual void | copy_to_client (void *const output) final |
Copy the output to client memory. | |
![]() | |
Reading< VAL_T, TS_T > | out_val |
Internally managed storage of the output value. | |
A filter that adds timestamps to the input values.
VAL_T | type of the input values. |
TS_T | type of the timestamp, defaults to unsigned long as per Arduino documentation of millis and micros . |
time_fn | A function taking no parameter and returns a timestamp. On Arduino platforms, this defaults to the micros function. Otherwise (e.g., when used in other C++ environments), there is no default. |
|
inlineoverridevirtual |
Internally update the filter output based on the given input.
This method behaves similarly to the public Filter::push method, but without copying the output to the client memory. This method is for internal workings of the filter framework.
Implements Filter.