8 #include "processor_common.h" 102 float references[], uint8_t references_length,
void *context,
MblMwFnDataProcessor processor_created);
115 float references[], uint8_t references_length,
void *context,
MblMwFnDataProcessor processor_created);
128 float references[], uint8_t references_length,
void *context,
MblMwFnDataProcessor processor_created);
140 uint8_t references_length);
METAWEAR_API int32_t mbl_mw_dataprocessor_comparator_create(MblMwDataSignal *source, MblMwComparatorOperation op, float reference, void *context, MblMwFnDataProcessor processor_created)
Create a comparator processor where signed/unsigned is inferred.
METAWEAR_API int32_t mbl_mw_dataprocessor_comparator_modify_signal(MblMwDataProcessor *comparator, MblMwComparatorOperation op, MblMwDataSignal *reference_signal)
Modifies the comparator processor for a feedback or feedforward loop.
METAWEAR_API int32_t mbl_mw_dataprocessor_comparator_create_signed(MblMwDataSignal *source, MblMwComparatorOperation op, float reference, void *context, MblMwFnDataProcessor processor_created)
Create a comparator processor specifically for a signed comparison.
void(* MblMwFnDataProcessor)(void *context, MblMwDataProcessor *processor)
Definition for callback functions that accept an MblMwDataProcessor pointer.
Definition: dataprocessor_fwd.h:23
METAWEAR_API int32_t mbl_mw_dataprocessor_multi_comparator_modify(MblMwDataProcessor *comparator, MblMwComparatorOperation op, float references[], uint8_t references_length)
Modifies the multi-value comparator, changing the operation and reference values. ...
MblMwComparatorOperation
Available operations for the processor.
Definition: comparator.h:17
Return 1 if any reference values satisfy the comparison, 0 if none do.
Definition: comparator.h:33
Return the data as is.
Definition: comparator.h:30
Not equals to.
Definition: comparator.h:19
MblMwComparatorMode
Output modes for the comparator, only supported in firmware v1.2.3 and higher.
Definition: comparator.h:29
METAWEAR_API int32_t mbl_mw_dataprocessor_multi_comparator_create_signed(MblMwDataSignal *source, MblMwComparatorOperation op, MblMwComparatorMode mode, float references[], uint8_t references_length, void *context, MblMwFnDataProcessor processor_created)
Create a multi-value comparator for signed comparisons.
Greater than.
Definition: comparator.h:22
Greater than or equals to.
Definition: comparator.h:23
Less than or equals to.
Definition: comparator.h:21
Return the reference value for the satisfied comparison.
Definition: comparator.h:31
Less than.
Definition: comparator.h:20
METAWEAR_API int32_t mbl_mw_dataprocessor_comparator_modify(MblMwDataProcessor *comparator, MblMwComparatorOperation op, float reference)
Modifies the comparator processor, changing the operation and reference value.
METAWEAR_API int32_t mbl_mw_dataprocessor_multi_comparator_create(MblMwDataSignal *source, MblMwComparatorOperation op, MblMwComparatorMode mode, float references[], uint8_t references_length, void *context, MblMwFnDataProcessor processor_created)
Create a multi-value comparator where a signed/unsigned comparison is inferred.
Return the position of the reference value satisfying the comparison, n + 1 for not satisfied...
Definition: comparator.h:32
METAWEAR_API int32_t mbl_mw_dataprocessor_comparator_create_unsigned(MblMwDataSignal *source, MblMwComparatorOperation op, float reference, void *context, MblMwFnDataProcessor processor_created)
Create a comparator processor specifically for an unsigned comparison.
Equals to.
Definition: comparator.h:18
struct MblMwDataProcessor MblMwDataProcessor
Data signal from the on board data processor.
Definition: dataprocessor_fwd.h:15
METAWEAR_API int32_t mbl_mw_dataprocessor_multi_comparator_create_unsigned(MblMwDataSignal *source, MblMwComparatorOperation op, MblMwComparatorMode mode, float references[], uint8_t references_length, void *context, MblMwFnDataProcessor processor_created)
Create a multi-value comparator for unsigned comparisons.
#define METAWEAR_API
Indicates the function should be exported to the symbol table.
Definition: dllmarker.h:27
struct MblMwDataSignal MblMwDataSignal
A event fired from the MetaWear board that also contains data.
Definition: datasignal_fwd.h:15