Gyroscope
Last updated
Was this helpful?
This section will introduce the gyroscope BMG160 and the components of the BMI160 on the XDK.
BMG160
BMI160
The table below contains some of the configuration functions of the gyroscope
Function
Effect
Gyroscope_setBandwidth()
Configures the gyroscope with the given bandwidth enumeration
Gyroscope_getBandwidth()
Returns the configured bandwidth of the gyroscope in a passed reference variable
Gyroscope_setRange()
Configures the gyroscope with the given range enumeration
Gyroscope_getRange()
Returns the configured range of the gyroscope in a passed reference variable
Gyroscope_setMode()
Configures the gyroscope with the given power mode enumeration
Gyroscope_getMode()
Returns the configured power mode of the gyroscope in a passed reference variable
Gyroscope_setSleepDuration()
Configures the gyroscope with the given sleep duration
Gyroscope_getSleepDuration()
Returns the configured sleep duration of the gyroscope in a passed reference variable