SRK Version of mDot LoRa_Sensormode_SRK
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_Sensornode by
MPU9250Config Class Reference
A configuration container for the MPU9250 Sensor. More...
#include <MPU9250Config.h>
Public Member Functions | |
void | build (MPU9250_MODE desiredMode) |
Generates a configuration according to the chosen MPU9250_MODE. | |
uint8_t | getAccelerometerScale () |
Gets the Accelerometer Scale from the actual configuration. | |
uint8_t | getGyroscopeScale () |
Gets the Gyroscope Scale from the actual configuration. | |
uint8_t | getMagnetometerBitResolution () |
Gets the Magnetometer bit resolution from the actual configuration. | |
uint8_t | getMagnetometerMeasureMode () |
Gets the Magnetometer measure mode from the actual configuration. | |
float | getAccelerationDivider () |
Gets the Acceleration Divider from the actual configuration. | |
float | getGyroDivider () |
Gets the Gyroscope Divider from the actual configuration. | |
float | getTeslaDivider () |
Gets the Tesla Divider from the actual configuration. | |
uint8_t | getInterruptPinConfiguration () |
Gets the Interrupt Pin configuration from the actual configuration. | |
uint8_t | getInterruptEnableConfiguration () |
Gets the Interrupt Enable configuration from the actual configuration. | |
uint8_t | getWakeOnMotionThreshold () |
Gets the wake on motion threshold value from the actual configuration. |
Detailed Description
A configuration container for the MPU9250 Sensor.
All its configuration values are stored an held inside this Class. Depending on the MPU9250_MODE it sets all the configuration values.
Definition at line 66 of file MPU9250Config.h.
Member Function Documentation
void build | ( | MPU9250_MODE | desiredMode ) |
Generates a configuration according to the chosen MPU9250_MODE.
- Parameters:
-
desiredMode the mode to build the configuration according to
Definition at line 19 of file MPU9250Config.cpp.
float getAccelerationDivider | ( | ) |
Gets the Acceleration Divider from the actual configuration.
- Returns:
- acceleration divider
Definition at line 94 of file MPU9250Config.cpp.
uint8_t getAccelerometerScale | ( | ) |
Gets the Accelerometer Scale from the actual configuration.
- Returns:
- accelerometer scale
Definition at line 79 of file MPU9250Config.cpp.
float getGyroDivider | ( | ) |
Gets the Gyroscope Divider from the actual configuration.
- Returns:
- gyroscope divider
Definition at line 118 of file MPU9250Config.cpp.
uint8_t getGyroscopeScale | ( | ) |
Gets the Gyroscope Scale from the actual configuration.
- Returns:
- gyroscope scale
Definition at line 83 of file MPU9250Config.cpp.
uint8_t getInterruptEnableConfiguration | ( | ) |
Gets the Interrupt Enable configuration from the actual configuration.
- Returns:
- interrupt enable configuration
Definition at line 164 of file MPU9250Config.cpp.
uint8_t getInterruptPinConfiguration | ( | ) |
Gets the Interrupt Pin configuration from the actual configuration.
- Returns:
- interrupt pin configuration
Definition at line 160 of file MPU9250Config.cpp.
uint8_t getMagnetometerBitResolution | ( | ) |
Gets the Magnetometer bit resolution from the actual configuration.
- Returns:
- magnetometer bit resolution
Definition at line 87 of file MPU9250Config.cpp.
uint8_t getMagnetometerMeasureMode | ( | ) |
Gets the Magnetometer measure mode from the actual configuration.
- Returns:
- magnetometer bit resolution
Definition at line 91 of file MPU9250Config.cpp.
float getTeslaDivider | ( | ) |
Gets the Tesla Divider from the actual configuration.
- Returns:
Definition at line 142 of file MPU9250Config.cpp.
uint8_t getWakeOnMotionThreshold | ( | ) |
Gets the wake on motion threshold value from the actual configuration.
- Returns:
- wake on motion threshold value
Definition at line 168 of file MPU9250Config.cpp.
Generated on Wed Jul 13 2022 09:23:48 by 1.7.2