MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
threshold.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 {
21 
33  float hysteresis, void *context, MblMwFnDataProcessor processor_created);
43  float hysteresis);
44 
45 #ifdef __cplusplus
46 }
47 #endif
MblMwThresholdMode
Output modes of the processor.
Definition: threshold.h:17
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_threshold_create(MblMwDataSignal *source, MblMwThresholdMode mode, float boundary, float hysteresis, void *context, MblMwFnDataProcessor processor_created)
Create a threshold processor.
Return 1 if data > bounday, -1 if data < boundary.
Definition: threshold.h:19
METAWEAR_API int32_t mbl_mw_dataprocessor_threshold_modify_boundary(MblMwDataProcessor *threshold, float boundary, float hysteresis)
Modifies the threshold processor configuration.
Return the data as is.
Definition: threshold.h:18
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
struct MblMwDataSignal MblMwDataSignal
A event fired from the MetaWear board that also contains data.
Definition: datasignal_fwd.h:15