MetaWear C++ API
0.18.0
C++ implementation of the MetaWear protocol
|
Periodically allow data through. More...
#include "processor_common.h"
Go to the source code of this file.
Enumerations | |
enum | MblMwTimeMode { MBL_MW_TIME_ABSOLUTE = 0, MBL_MW_TIME_DIFFERENTIAL } |
Output modes for the processor. More... | |
Functions | |
METAWEAR_API int32_t | mbl_mw_dataprocessor_time_create (MblMwDataSignal *source, MblMwTimeMode mode, uint32_t period, void *context, MblMwFnDataProcessor processor_created) |
Creates a time delay processor. More... | |
METAWEAR_API int32_t | mbl_mw_dataprocessor_time_modify_period (MblMwDataProcessor *time_delay, uint32_t period) |
Modify the configuration of the time delay processor. More... | |
Periodically allow data through.
enum MblMwTimeMode |
METAWEAR_API int32_t mbl_mw_dataprocessor_time_create | ( | MblMwDataSignal * | source, |
MblMwTimeMode | mode, | ||
uint32_t | period, | ||
void * | context, | ||
MblMwFnDataProcessor | processor_created | ||
) |
Creates a time delay processor.
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 |
mode | Operation mode of the processor |
period | How often to allow data through, in milliseconds |
context | Pointer to additional data for the callback function |
processor_created | Callback function to be executed when the processor is created |
METAWEAR_API int32_t mbl_mw_dataprocessor_time_modify_period | ( | MblMwDataProcessor * | time_delay, |
uint32_t | period | ||
) |
Modify the configuration of the time delay processor.
time_delay | Time delay processor to modify |
period | How often to allow data through, in milliseconds |