M5Unit-ENV 1.2.0 git rev:d576302
Loading...
Searching...
No Matches
unit_QMP6988.hpp File Reference

QMP6988 Unit for M5UnitUnified. More...

#include <M5UnitComponent.hpp>
#include <m5_utility/stl/extension.hpp>
#include <m5_utility/container/circular_buffer.hpp>
#include <limits>

Go to the source code of this file.

Classes

struct  m5::unit::qmp6988::Data
 Measurement data group. More...
 
class  m5::unit::UnitQMP6988
 Barometric pressure sensor to measure atmospheric pressure and altitude estimation. More...
 
struct  m5::unit::UnitQMP6988::config_t
 Settings for begin. More...
 

Namespaces

namespace  m5
 Top level namespace of M5stack.
 

Enumerations

enum class  m5::unit::qmp6988::PowerMode : uint8_t { Sleep , Forced , Normal = 0x03 }
 Operation mode. More...
 
enum class  m5::unit::qmp6988::Oversampling : uint8_t {
  Skipped , X1 , X2 , X4 ,
  X8 , X16 , X32 , X64
}
 Oversampling value. More...
 
enum class  m5::unit::qmp6988::OversamplingSetting : uint8_t {
  HighSpeed , LowPower , Standard , HighAccuracy ,
  UltraHightAccuracy
}
 Oversampling Settings. More...
 
enum class  m5::unit::qmp6988::Filter : uint8_t {
  Off , Coeff2 , Coeff4 , Coeff8 ,
  Coeff16 , Coeff32
}
 Filtter setting. More...
 
enum class  m5::unit::qmp6988::Standby : uint8_t {
  Time1ms , Time5ms , Time50ms , Time250ms ,
  Time500ms , Time1sec , Time2sec , Time4sec
}
 Measurement standby time for power mode Normal. More...
 
enum class  m5::unit::qmp6988::UseCase : uint8_t {
  Weather , Drop , Elevator , Stair ,
  Indoor
}
 Preset settings. More...
 

Detailed Description

QMP6988 Unit for M5UnitUnified.

Enumeration Type Documentation

◆ Filter

enum class m5::unit::qmp6988::Filter : uint8_t
strong

Filtter setting.

Enumerator
Off 

Off filter.

Coeff2 

co-efficient 2

Coeff4 

co-efficient 4

Coeff8 

co-efficient 8

Coeff16 

co-efficient 16

Coeff32 

co-efficient 32

◆ Oversampling

enum class m5::unit::qmp6988::Oversampling : uint8_t
strong

Oversampling value.

Warning
Enumerator
Skipped 

Skipped (No measurements are performed)

X1 

x1

X2 

x2

X4 

x4

X8 

x8

X16 

x16

X32 

x32

X64 

x64

◆ OversamplingSetting

enum class m5::unit::qmp6988::OversamplingSetting : uint8_t
strong

Oversampling Settings.

Enumerator
HighSpeed 

osrsP:X2 osrsT:X1

LowPower 

osrsP:X4 osrsT:X1

Standard 

osrsP:X8 osrsT:X1

HighAccuracy 

osrsP:X16 osrsT:X2

UltraHightAccuracy 

osrsP:X32 osrsT:X4

◆ PowerMode

enum class m5::unit::qmp6988::PowerMode : uint8_t
strong

Operation mode.

Enumerator
Sleep 

No measurements are performed.

Forced 

Single measurements are performed.

Normal 

Periodic measurements are performed.

◆ Standby

enum class m5::unit::qmp6988::Standby : uint8_t
strong

Measurement standby time for power mode Normal.

Enumerator
Time1ms 

1 ms

Time5ms 

5 ms

Time50ms 

50 ms

Time250ms 

250 ms

Time500ms 

500 ms

Time1sec 

1 seconds

Time2sec 

2 seconds

Time4sec 

4 seconds

◆ UseCase

enum class m5::unit::qmp6988::UseCase : uint8_t
strong

Preset settings.

Enumerator
Weather 

Weather monitoring.

Drop 

Drop detection.

Elevator 

Elevator / floor change detection.

Stair 

Stair detection.

Indoor 

Indoor navigation.