Accelerometer

This chapter will help us to review the configuration of the accelerometer BMA280, as well as the acelerometer component of the BMI160 on the XDK.

BMA https://www.bosch-sensortec.com/bst/products/all_products/bma280

BMI160 https://www.bosch-sensortec.com/bst/products/all_products/bmi160

The next image would help us to understand the hierachy of the XDK Sensor

Functions

Function

Effect

Accelerometer_setBandwidth()

Configures the accelerometer with the given bandwidth enumeration

Accelerometer_getBandwidth()

Returns the configured bandwidth of the accelerometer in a passed reference variable

Accelerometer_setRange()

Configures the accelerometer with the given range enumeration

Accelerometer_getRange()

Returns the configured range of the accelerometer in a passed reference variable

Accelerometer_setMode()

Configures the accelerometer with the given power mode enumeration

Accelerometer_getMode()

Returns the configured power mode of the accelerometer in a passed reference variable

Accelerometer_setSleepDuration()

Configures the accelerometer with the given sleep duration

Accelerometer_getSleepDuration()

Returns the configured sleep duration of the accelerometer in a passed reference variable

Last updated

Was this helpful?