|
MetaWear C++ API
0.18.0
C++ implementation of the MetaWear protocol
|
Only allows data through that is a min distance from a reference value. More...
#include "processor_common.h"Go to the source code of this file.
Enumerations | |
| enum | MblMwDeltaMode { MBL_MW_DELTA_MODE_ABSOLUTE = 0, MBL_MW_DELTA_MODE_DIFFERENTIAL, MBL_MW_DELTA_MODE_BINARY } |
| Output modes of the data processor. More... | |
Functions | |
| METAWEAR_API int32_t | mbl_mw_dataprocessor_delta_create (MblMwDataSignal *source, MblMwDeltaMode mode, float magnitude, void *context, MblMwFnDataProcessor processor_created) |
| Create a delta processor. More... | |
| METAWEAR_API int32_t | mbl_mw_dataprocessor_delta_set_reference (MblMwDataProcessor *delta, float previous_value) |
| Sets the reference value of the processor. More... | |
| METAWEAR_API int32_t | mbl_mw_dataprocessor_delta_modify_magnitude (MblMwDataProcessor *delta, float magnitude) |
| Modifies the magnitude that allows data through. More... | |
Only allows data through that is a min distance from a reference value.
| enum MblMwDeltaMode |
| METAWEAR_API int32_t mbl_mw_dataprocessor_delta_create | ( | MblMwDataSignal * | source, |
| MblMwDeltaMode | mode, | ||
| float | magnitude, | ||
| void * | context, | ||
| MblMwFnDataProcessor | processor_created | ||
| ) |
Create a delta processor.
A pointer representing the processor will be passed back to the user via a callback function.
| source | Data signal providing the input for the processor |
| mode | Output mode of the processor |
| magnitude | Min distance from the reference value to allow the input to pass |
| context | Pointer to additional data for the callback function |
| processor_created | Callback function to be executed when the processor is created |
| METAWEAR_API int32_t mbl_mw_dataprocessor_delta_modify_magnitude | ( | MblMwDataProcessor * | delta, |
| float | magnitude | ||
| ) |
Modifies the magnitude that allows data through.
| delta | Delta processor to modify |
| magnitude | Min distance from the reference value to allow the input to pass |
| METAWEAR_API int32_t mbl_mw_dataprocessor_delta_set_reference | ( | MblMwDataProcessor * | delta, |
| float | previous_value | ||
| ) |
Sets the reference value of the processor.
| delta | Delta processor to modify |
| previous_value | Min distance from the reference value to allow the input to pass |
1.8.14