MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
Classes | Typedefs | Enumerations
data.h File Reference

Functions and types for data received from an MblMwDataSignal. More...

#include <stdint.h>

Go to the source code of this file.

Classes

struct  MblMwData
 Wrapper class encapsulating one sample of sensor data. More...
 

Typedefs

typedef void(* MblMwFnData) (void *context, const MblMwData *data)
 Definition for callback functions that handle data from an MblMwDataSignal. More...
 

Enumerations

enum  MblMwDataTypeId {
  MBL_MW_DT_ID_UINT32 = 0, MBL_MW_DT_ID_FLOAT, MBL_MW_DT_ID_CARTESIAN_FLOAT, MBL_MW_DT_ID_INT32,
  MBL_MW_DT_ID_BYTE_ARRAY, MBL_MW_DT_ID_BATTERY_STATE, MBL_MW_DT_ID_TCS34725_ADC, MBL_MW_DT_ID_EULER_ANGLE,
  MBL_MW_DT_ID_QUATERNION, MBL_MW_DT_ID_CORRECTED_CARTESIAN_FLOAT, MBL_MW_DT_ID_OVERFLOW_STATE, MBL_MW_DT_ID_SENSOR_ORIENTATION,
  MBL_MW_DT_ID_STRING, MBL_MW_DT_ID_LOGGING_TIME, MBL_MW_DT_ID_BTLE_ADDRESS, MBL_MW_DT_ID_BOSCH_ANY_MOTION,
  MBL_MW_DT_ID_CALIBRATION_STATE, MBL_MW_DT_ID_DATA_ARRAY, MBL_MW_DT_ID_BOSCH_TAP
}
 Enumeration of sensor data types. More...
 

Detailed Description

Functions and types for data received from an MblMwDataSignal.

Typedef Documentation

◆ MblMwFnData

typedef void(* MblMwFnData) (void *context, const MblMwData *data)

Definition for callback functions that handle data from an MblMwDataSignal.

Parameters
contextPointer to the context the enclosing function was called with
dataData returned from the signal

Enumeration Type Documentation

◆ MblMwDataTypeId

Enumeration of sensor data types.

Enumerator
MBL_MW_DT_ID_UINT32 

Data is an unsigned integer.

MBL_MW_DT_ID_FLOAT 

Data is a float.

MBL_MW_DT_ID_CARTESIAN_FLOAT 

Data is a CartesianFloat.

MBL_MW_DT_ID_INT32 

Data is a signed integer.

MBL_MW_DT_ID_BYTE_ARRAY 

Data is a byte array.

MBL_MW_DT_ID_BATTERY_STATE 

Data is a BatteryState.

MBL_MW_DT_ID_TCS34725_ADC 

Data is a Tcs34725ColorAdc.