MetaWear C++ API  0.13.4
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
32 
36 typedef struct {
37  int64_t epoch;
38  void* extra;
39  void* value;
41  uint8_t length;
42 } MblMwData;
43 
49 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:37
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:49
MblMwDataTypeId
Enumeration of sensor data types.
Definition: data.h:13
Wrapper class encapsulating one sample of sensor data.
Definition: data.h:36
Data is a float.
Definition: data.h:15
void * extra
Extra information attached to this data sample.
Definition: data.h:38
MblMwDataTypeId type_id
ID represnting the data type the value pointer points to.
Definition: data.h:40
void * value
Pointer to the data value.
Definition: data.h:39
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:41