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

Combines multiple data values into 1 BLE packet. More...

#include "processor_common.h"

Go to the source code of this file.

Functions

METAWEAR_API int32_t mbl_mw_dataprocessor_packer_create (MblMwDataSignal *source, uint8_t count, void *context, MblMwFnDataProcessor processor_created)
 Create a packer for the input signal. More...
 

Detailed Description

Combines multiple data values into 1 BLE packet.

Function Documentation

◆ mbl_mw_dataprocessor_packer_create()

METAWEAR_API int32_t mbl_mw_dataprocessor_packer_create ( MblMwDataSignal source,
uint8_t  count,
void *  context,
MblMwFnDataProcessor  processor_created 
)

Create a packer for the input signal.


Combines multiple data values into 1 BLE packet. Can be used to combine 3 accelerometer data entries into 1 packet. Used to ultra fast streaming. 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
countNumber of inputs to pack into 1 BLE packet
contextPointer to additional data for the callback function
processor_createdCallback function to be executed when the processor is created