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

BMP280 Unit for M5UnitUnified. More...

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

Go to the source code of this file.

Classes

union  m5::unit::bmp280::Trimming
 
struct  m5::unit::bmp280::Data
 Measurement data group. More...
 
class  m5::unit::UnitBMP280
 Pressure and temperature sensor unit. More...
 
struct  m5::unit::UnitBMP280::config_t
 Settings for begin. More...
 

Namespaces

namespace  m5
 Top level namespace of M5stack.
 
namespace  bmp280
 For BMP280.
 

Enumerations

enum class  m5::unit::bmp280::PowerMode : uint8_t { Sleep , Forced , Normal = 0x03 }
 Operation mode. More...
 
enum class  m5::unit::bmp280::Oversampling : uint8_t {
  Skipped , X1 , X2 , X4 ,
  X8 , X16
}
 Oversampling factor. More...
 
enum class  m5::unit::bmp280::OversamplingSetting : uint8_t {
  UltraLowPower , LowPower , StandardResolution , HighResolution ,
  UltraHighResolution
}
 Oversampling Settings. More...
 
enum class  m5::unit::bmp280::Filter : uint8_t {
  Off , Coeff2 , Coeff4 , Coeff8 ,
  Coeff16
}
 Filter setting. More...
 
enum class  m5::unit::bmp280::Standby : uint8_t {
  Time0_5ms , Time62_5ms , Time125ms , Time250ms ,
  Time500ms , Time1sec , Time2sec , Time4sec
}
 Measurement standby time for power mode Normal. More...
 
enum class  m5::unit::bmp280::UseCase : uint8_t {
  LowPower , Dynamic , Weather , Elevator ,
  Drop , Indoor
}
 Preset settings. More...
 

Detailed Description

BMP280 Unit for M5UnitUnified.

Enumeration Type Documentation

◆ Filter

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

Filter setting.

Enumerator
Off 

Off filter.

Coeff2 

co-efficient 2

Coeff4 

co-efficient 4

Coeff8 

co-efficient 8

Coeff16 

co-efficient 16

◆ Oversampling

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

Oversampling factor.

Enumerator
Skipped 

Skipped (No measurements are performed)

X1 

x1

X2 

x2

X4 

x4

X8 

x8

X16 

x16

◆ OversamplingSetting

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

Oversampling Settings.

Enumerator
UltraLowPower 

16 bit / 2.62 Pa, 16 bit / 0.0050 C

LowPower 

17 bit / 1.31 Pa, 16 bit / 0.0050 C

StandardResolution 

18 bit / 0.66 Pa, 16 bit / 0.0050 C

HighResolution 

19 bit / 0.33 Pa, 16 bit / 0.0050 C

UltraHighResolution 

20 bit / 0.16 Pa, 17 bit / 0.0025 C

◆ PowerMode

enum class m5::unit::bmp280::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::bmp280::Standby : uint8_t
strong

Measurement standby time for power mode Normal.

Enumerator
Time0_5ms 

0.5 ms

Time62_5ms 

62.5 ms

Time125ms 

125 ms

Time250ms 

250 ms

Time500ms 

500 ms

Time1sec 

1 second

Time2sec 

2 seconds

Time4sec 

4 seconds

◆ UseCase

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

Preset settings.

Enumerator
LowPower 

Handheld device low-power.

Dynamic 

Handheld device dynamic.

Weather 

Weather monitoring.

Elevator 

Elevator / floor change detection.

Drop 

Drop detection.

Indoor 

Indoor navigation.