MetaWear C++ API  0.20.0
C++ implementation of the MetaWear protocol
counter.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <stdint.h>
9 
10 #include "dataprocessor_fwd.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
26 METAWEAR_API int32_t mbl_mw_dataprocessor_counter_create(MblMwEvent *source, void *context, MblMwFnDataProcessor processor_created);
36 METAWEAR_API int32_t mbl_mw_dataprocessor_counter_create_size(MblMwEvent *source, uint8_t size, void *context, MblMwFnDataProcessor processor_created);
45 
46 #ifdef __cplusplus
47 }
48 #endif
METAWEAR_API int32_t mbl_mw_dataprocessor_counter_create(MblMwEvent *source, void *context, MblMwFnDataProcessor processor_created)
Create a counter with an output size of 1 byte.
METAWEAR_API int32_t mbl_mw_dataprocessor_counter_set_state(MblMwDataProcessor *counter, uint32_t new_count)
Overwrites the current count with a new value.
METAWEAR_API int32_t mbl_mw_dataprocessor_counter_create_size(MblMwEvent *source, uint8_t size, void *context, MblMwFnDataProcessor processor_created)
Create a counter with a specific output size.
Forward declaration for the MblMwDataProcessor type.
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
Macros for identifying exported functions.
#define METAWEAR_API
Indicates the function should be exported to the symbol table
Definition: dllmarker.h:27
Forward declaration of the MblMwEvent type.
struct MblMwEvent MblMwEvent
Represents an event fired from the MetaWear board.
Definition: event_fwd.h:16