MBLAccelerometerBMI160 Class Reference

Inherits from MBLAccelerometerBosch : MBLAccelerometer : MBLModule : NSObject
Declared in MBLAccelerometerBMI160.h

Overview

Interface to a BMI160 accelerometer

  motionEvent

Event representing a motion (change of acceleration) event. Event callbacks will be provided an empty MBLDataSample object

@property (nonatomic, readonly) MBLAccelerometerBMI160MotionEvent *motionEvent

Declared In

MBLAccelerometerBMI160.h

  stepEvent

This event will fire when a step pattern is detected. Event callbacks will be provided an MBLNumericData object, whose int value is always 1.

@property (nonatomic, readonly) MBLEvent<MBLNumericData*> *stepEvent

Declared In

MBLAccelerometerBMI160.h

  stepCounter

This data endpoint keeps a running counter in hardware of the number of steps taken. Event callbacks will be provided an MBLNumericData object, whose unsigened value is the number steps taken. Note this only counts up when stepEvent is active.

@property (nonatomic, readonly) MBLData<MBLNumericData*> *stepCounter

Declared In

MBLAccelerometerBMI160.h

– resetStepCount

Use this to reset stepCounter to 0

- (BFTask *)resetStepCount

Declared In

MBLAccelerometerBMI160.h