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
MblMwPassthroughMode
Operation modes for the processor.
Definition: passthrough.h:17
@ MBL_MW_PASSTHROUGH_MODE_ALL
Allow all data through.
Definition: passthrough.h:18
@ MBL_MW_PASSTHROUGH_MODE_CONDITIONAL
Only allow data through if count > 0.
Definition: passthrough.h:19
@ MBL_MW_PASSTHROUGH_MODE_COUNT
Only allow a fixed number of data samples through.
Definition: passthrough.h:20
METAWEAR_API int32_t mbl_mw_dataprocessor_passthrough_modify(MblMwDataProcessor *passthrough, MblMwPassthroughMode mode, uint16_t count)
Modify the passthrough configuration.
METAWEAR_API int32_t mbl_mw_dataprocessor_passthrough_set_count(MblMwDataProcessor *passthrough, uint16_t new_count)
Modify the internal count of the passthrough processor.
METAWEAR_API int32_t mbl_mw_dataprocessor_passthrough_create(MblMwDataSignal *source, MblMwPassthroughMode mode, uint16_t count, void *context, MblMwFnDataProcessor processor_created)
Create a passthrough processor.