MetaWear C++ API
0.20.0
C++ implementation of the MetaWear protocol
|
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... | |
Combines multiple data values into 1 BLE packet.
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.
source | Data signal providing the input for the processor |
count | Number of inputs to pack into 1 BLE packet |
context | Pointer to additional data for the callback function |
processor_created | Callback function to be executed when the processor is created |