M5Unit-IMU 0.0.2 git rev:e5b00aa
Loading...
Searching...
No Matches
unit_mpu6886_data.hpp File Reference

MPU6886 setting enums and measurement data (framework independent) More...

#include <array>
#include <cstdint>

Go to the source code of this file.

Classes

struct  m5::unit::mpu6886::Data
 One measurement (14 bytes burst from REG_ACCEL_XOUT_H, big-endian) More...
 

Namespaces

namespace  m5
 Top level namespace of M5Stack.
 

Enumerations

enum class  m5::unit::mpu6886::AccelRange : uint8_t { G2 , G4 , G8 , G16 }
 Accelerometer full scale range (register value = enum << 3) More...
 
enum class  m5::unit::mpu6886::GyroRange : uint8_t { DPS250 , DPS500 , DPS1000 , DPS2000 }
 Gyroscope full scale range (register value = enum << 3) More...
 
enum class  m5::unit::mpu6886::Dlpf : uint8_t {
  BW250 , BW176 , BW92 , BW41 ,
  BW20 , BW10 , BW5 , BW3281
}
 Gyro/temp digital low pass filter (REG_CONFIG reg DLPF_CFG, valid when FCHOICE_B=00) More...
 

Functions

constexpr float m5::unit::mpu6886::accel_res (const AccelRange r)
 G per LSB for each AccelRange.
 
constexpr float m5::unit::mpu6886::gyro_res (const GyroRange r)
 dps per LSB for each GyroRange
 

Detailed Description

MPU6886 setting enums and measurement data (framework independent)

Enumeration Type Documentation

◆ AccelRange

enum class m5::unit::mpu6886::AccelRange : uint8_t
strong

Accelerometer full scale range (register value = enum << 3)

Enumerator
G2 

+-2G (16384 LSB/G)

G4 

+-4G (8192 LSB/G)

G8 

+-8G (4096 LSB/G)

G16 

+-16G (2048 LSB/G)

◆ Dlpf

enum class m5::unit::mpu6886::Dlpf : uint8_t
strong

Gyro/temp digital low pass filter (REG_CONFIG reg DLPF_CFG, valid when FCHOICE_B=00)

Enumerator
BW250 

250Hz (gyro output 8kHz)

BW176 

176Hz (1kHz)

BW92 

92Hz

BW41 

41Hz

BW20 

20Hz

BW10 

10Hz

BW5 

5Hz

BW3281 

3281Hz (8kHz)

◆ GyroRange

enum class m5::unit::mpu6886::GyroRange : uint8_t
strong

Gyroscope full scale range (register value = enum << 3)

Enumerator
DPS250 

+-250 dps

DPS500 

+-500 dps

DPS1000 

+-1000 dps

DPS2000 

+-2000 dps