MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
data.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <stdint.h>
9 
13 typedef enum {
21  MBL_MW_DT_ID_EULER_ANGLE,
22  MBL_MW_DT_ID_QUATERNION,
23  MBL_MW_DT_ID_CORRECTED_CARTESIAN_FLOAT,
24  MBL_MW_DT_ID_OVERFLOW_STATE,
25  MBL_MW_DT_ID_SENSOR_ORIENTATION,
26  MBL_MW_DT_ID_STRING,
27  MBL_MW_DT_ID_LOGGING_TIME,
28  MBL_MW_DT_ID_BTLE_ADDRESS,
29  MBL_MW_DT_ID_BOSCH_ANY_MOTION,
30  MBL_MW_DT_ID_CALIBRATION_STATE,
31  MBL_MW_DT_ID_DATA_ARRAY,
32  MBL_MW_DT_ID_BOSCH_TAP
34 
38 typedef struct {
39  int64_t epoch;
40  void* extra;
41  void* value;
43  uint8_t length;
44 } MblMwData;
45 
51 typedef void (*MblMwFnData)(void *context, const MblMwData* data);
Data is a CartesianFloat.
Definition: data.h:16
Data is a Tcs34725ColorAdc.
Definition: data.h:20
int64_t epoch
Number of milliseconds since epoch.
Definition: data.h:39
Data is a byte array.
Definition: data.h:18
void(* MblMwFnData)(void *context, const MblMwData *data)
Definition for callback functions that handle data from an MblMwDataSignal.
Definition: data.h:51
MblMwDataTypeId
Enumeration of sensor data types.
Definition: data.h:13
Wrapper class encapsulating one sample of sensor data.
Definition: data.h:38
Data is a float.
Definition: data.h:15
void * extra
Extra information attached to this data sample.
Definition: data.h:40
MblMwDataTypeId type_id
ID represnting the data type the value pointer points to.
Definition: data.h:42
void * value
Pointer to the data value.
Definition: data.h:41
Data is a BatteryState.
Definition: data.h:19
Data is a signed integer.
Definition: data.h:17
Data is an unsigned integer.
Definition: data.h:14
uint8_t length
Size of the value.
Definition: data.h:43