MetaWear C++ API  0.20.0
C++ implementation of the MetaWear protocol
Functions
buffer.h File Reference

Captures input data which can be retrieved at a later point in time. More...

#include "processor_common.h"

Go to the source code of this file.

Functions

METAWEAR_API int32_t mbl_mw_dataprocessor_buffer_create (MblMwDataSignal *source, void *context, MblMwFnDataProcessor processor_created)
 Create a buffer processor. More...
 

Detailed Description

Captures input data which can be retrieved at a later point in time.

Function Documentation

◆ mbl_mw_dataprocessor_buffer_create()

METAWEAR_API int32_t mbl_mw_dataprocessor_buffer_create ( MblMwDataSignal source,
void *  context,
MblMwFnDataProcessor  processor_created 
)

Create a buffer processor.

Stores one entry. Great for temporarily storing the output of other processors. Captures input data which can be retrieved at a later point in time A pointer representing the processor will be passed back to the user via a callback function.

Parameters
sourceData signal providing the input for the processor
contextPointer to additional data for the callback function
processor_createdCallback function to be executed when the processor is created