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
#define METAWEAR_API
Indicates the function should be exported to the symbol table
Definition: dllmarker.h:27
METAWEAR_API int32_t mbl_mw_dataprocessor_math_create_signed(MblMwDataSignal *source, MblMwMathOperation op, float rhs, void *context, MblMwFnDataProcessor processor_created)
Create a math processor using signed operations.
METAWEAR_API int32_t mbl_mw_dataprocessor_math_modify_rhs_signal(MblMwDataProcessor *math, MblMwDataSignal *rhs_signal)
Modify the configuration of a math processor for a feedback or feedforward loop.
METAWEAR_API int32_t mbl_mw_dataprocessor_math_modify_rhs(MblMwDataProcessor *math, float rhs)
Modify the configuration of a math processor, changing the right side value of the operation.
METAWEAR_API int32_t mbl_mw_dataprocessor_math_create(MblMwDataSignal *source, MblMwMathOperation op, float rhs, void *context, MblMwFnDataProcessor processor_created)
Create a math processor where signed/unsigned operation is inferred.
METAWEAR_API int32_t mbl_mw_dataprocessor_math_create_unsigned(MblMwDataSignal *source, MblMwMathOperation op, float rhs, void *context, MblMwFnDataProcessor processor_created)
Create a math processor using unsigned operations.
MblMwMathOperation
Available operations for the math processor.
Definition: math.h:17
@ MBL_MW_MATH_OP_ADD
Computes input + rhs.
Definition: math.h:18
@ MBL_MW_MATH_OP_DIVIDE
Computes input / rhs.
Definition: math.h:20
@ MBL_MW_MATH_OP_SQRT
Computes sqrt(input)
Definition: math.h:23
@ MBL_MW_MATH_OP_CONSTANT
Replaces input with rhs.
Definition: math.h:28
@ MBL_MW_MATH_OP_ABS_VALUE
Computes |input|.
Definition: math.h:27
@ MBL_MW_MATH_OP_LSHIFT
Computes input << rhs.
Definition: math.h:24
@ MBL_MW_MATH_OP_EXPONENT
Computes input ^ rhs.
Definition: math.h:22
@ MBL_MW_MATH_OP_MODULUS
Computes input % rhs.
Definition: math.h:21
@ MBL_MW_MATH_OP_SUBTRACT
Computes input - rhs.
Definition: math.h:26
@ MBL_MW_MATH_OP_RSHIFT
Computes input >> rhs.
Definition: math.h:25
@ MBL_MW_MATH_OP_MULTIPLY
Computes input * rhs.
Definition: math.h:19