8 #include "processor_common.h"
void(* MblMwFnDataProcessor)(void *context, MblMwDataProcessor *processor)
Definition for callback functions that accept an MblMwDataProcessor pointer.
Definition: dataprocessor_fwd.h:23
struct MblMwDataProcessor MblMwDataProcessor
Data signal from the on board data processor.
Definition: dataprocessor_fwd.h:15
struct MblMwDataSignal MblMwDataSignal
A event fired from the MetaWear board that also contains data.
Definition: datasignal_fwd.h:15
METAWEAR_API int32_t mbl_mw_dataprocessor_delta_create(MblMwDataSignal *source, MblMwDeltaMode mode, float magnitude, void *context, MblMwFnDataProcessor processor_created)
Create a delta processor which looks for changes in the input.
METAWEAR_API int32_t mbl_mw_dataprocessor_delta_set_reference(MblMwDataProcessor *delta, float previous_value)
Sets the reference value of the processor.
METAWEAR_API int32_t mbl_mw_dataprocessor_delta_modify_magnitude(MblMwDataProcessor *delta, float magnitude)
Modifies the magnitude that allows data through.
MblMwDeltaMode
Output modes of the data processor.
Definition: delta.h:17
@ MBL_MW_DELTA_MODE_BINARY
Return 1 if input > reference, -1 if input < reference.
Definition: delta.h:20
@ MBL_MW_DELTA_MODE_DIFFERENTIAL
Return the difference between the input and the reference value.
Definition: delta.h:19
@ MBL_MW_DELTA_MODE_ABSOLUTE
Return the data as is.
Definition: delta.h:18
#define METAWEAR_API
Indicates the function should be exported to the symbol table
Definition: dllmarker.h:27