MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
math.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "processor_common.h"
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
17 typedef enum {
30 
41  void *context, MblMwFnDataProcessor processor_created);
52  void *context, MblMwFnDataProcessor processor_created);
63  void *context, MblMwFnDataProcessor processor_created);
80 
81 #ifdef __cplusplus
82 }
83 #endif
Computes input << rhs.
Definition: math.h:24
MblMwMathOperation
Available operations for the math processor.
Definition: math.h:17
Computes sqrt(input)
Definition: math.h:23
void(* MblMwFnDataProcessor)(void *context, MblMwDataProcessor *processor)
Definition for callback functions that accept an MblMwDataProcessor pointer.
Definition: dataprocessor_fwd.h:23
Computes input + rhs.
Definition: math.h:18
Replaces input with rhs.
Definition: math.h:28
Computes input / rhs.
Definition: math.h:20
Computes |input|.
Definition: math.h:27
Computes input - rhs.
Definition: math.h:26
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.
Computes input >> rhs.
Definition: math.h:25
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.
Computes input * rhs.
Definition: math.h:19
Computes input ^ rhs.
Definition: math.h:22
Computes input % rhs.
Definition: math.h:21
struct MblMwDataProcessor MblMwDataProcessor
Data signal from the on board data processor.
Definition: dataprocessor_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_unsigned(MblMwDataSignal *source, MblMwMathOperation op, float rhs, void *context, MblMwFnDataProcessor processor_created)
Create a math processor using unsigned operations.
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_math_modify_rhs_signal(MblMwDataProcessor *math, MblMwDataSignal *rhs_signal)
Modify the configuration of a math processor for a feedback or feedforward loop.