MetaWear C# SDK  1.2.0
C# API for MbientLab's sensor platform
Public Member Functions | Properties | List of all members
MbientLab.MetaWear.Sensor.IAccelerometerMma8452q Interface Reference

Extension of the IAccelerometer interface providing finer control of the MMA8452Q accelerometer More...

Inheritance diagram for MbientLab.MetaWear.Sensor.IAccelerometerMma8452q:
MbientLab.MetaWear.Sensor.IAccelerometer MbientLab.MetaWear.IModule

Public Member Functions

void Configure (OutputDataRate odr=OutputDataRate._100Hz, DataRange range=DataRange._2g, float? highPassCutoff=null, Oversampling oversample=Oversampling.Normal)
 Configure the snsor with settings specific to the MMA8452Q accelerometer More...
 
- Public Member Functions inherited from MbientLab.MetaWear.Sensor.IAccelerometer
void Configure (float odr=100f, float range=2f)
 General function to configure the accelerometer. The closest valid values will be selected based on the underlying accelerometer which may not equal the input values. More...
 
void Start ()
 Switch the accelerometer into active mode More...
 
void Stop ()
 Switch the accelerometer into standby mode More...
 
Task PullConfigAsync ()
 Pulls the current accelerometer output data rate and data range from the sensor More...
 

Properties

IOrientationDataProducer Orientation [get]
 Async data producer for the orientation detection algorithm More...
 
- Properties inherited from MbientLab.MetaWear.Sensor.IAccelerometer
float Odr [get]
 Currently set output data rate More...
 
float Range [get]
 Currently set data range More...
 
IAsyncDataProducer Acceleration [get]
 Data producer representing the sensor's acceleration data More...
 
IAsyncDataProducer PackedAcceleration [get]
 Variant data producer that packs 3 acceleration samples in to 1 ble packet.
Only streaming is supported by this data producer More...
 

Detailed Description

Extension of the IAccelerometer interface providing finer control of the MMA8452Q accelerometer

Member Function Documentation

◆ Configure()

void MbientLab.MetaWear.Sensor.IAccelerometerMma8452q.Configure ( OutputDataRate  odr = OutputDataRate._100Hz,
DataRange  range = DataRange._2g,
float?  highPassCutoff = null,
Oversampling  oversample = Oversampling.Normal 
)

Configure the snsor with settings specific to the MMA8452Q accelerometer

Parameters
odrOutput data rate, defaults to 100Hz
rangeData range, defaults to +/-2g
highPassCutoffEnables high pass filter with a cutoff frequency between [0.031, 16.0]Hz, defaults to disabled
oversampleNew oversampling mode, defaults to Oversampling.Normal

Property Documentation

◆ Orientation

IOrientationDataProducer MbientLab.MetaWear.Sensor.IAccelerometerMma8452q.Orientation
get

Async data producer for the orientation detection algorithm


The documentation for this interface was generated from the following file: