M5Unit-ENV 1.4.0 git rev:c1b5980
Loading...
Searching...
No Matches
unit_SHT40.hpp File Reference

SHT40 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

struct  m5::unit::sht40::Data
 Measurement data group. More...
 
class  m5::unit::UnitSHT40
 Temperature and humidity, sensor unit. More...
 
struct  m5::unit::UnitSHT40::config_t
 Settings for begin. More...
 

Namespaces

namespace  m5
 Top level namespace of M5Stack.
 
namespace  sht40
 For SHT40.
 

Enumerations

enum class  m5::unit::sht40::Precision : uint8_t { High , Medium , Low }
 precision level More...
 
enum class  m5::unit::sht40::Heater : uint8_t { Long , Short , None }
 Heater behavior. More...
 
enum class  m5::unit::sht40::HeaterPower : uint8_t { High = 0 , Medium = 1 , Low = 2 }
 Heater power level. More...
 
enum class  m5::unit::sht40::HeaterDuration : uint8_t { Long = 0 , Short = 1 }
 Heater activation duration. More...
 

Detailed Description

SHT40 Unit for M5UnitUnified.

Enumeration Type Documentation

◆ Heater

enum class m5::unit::sht40::Heater : uint8_t
strong

Heater behavior.

Deprecated
Use HeaterPower and HeaterDuration instead. When heater is active, the Precision parameter selects heater power, not measurement precision. All heater commands perform high precision measurement regardless of Precision setting.
Enumerator
Long 

Activate heater for 1s.

Short 

Activate heater for 0.1s.

None 

Not activate heater.

◆ HeaterDuration

enum class m5::unit::sht40::HeaterDuration : uint8_t
strong

Heater activation duration.

Enumerator
Long 

Activate heater for 1s.

Short 

Activate heater for 0.1s.

◆ HeaterPower

enum class m5::unit::sht40::HeaterPower : uint8_t
strong

Heater power level.

Note
All heater commands perform high precision measurement regardless of power level
Enumerator
High 

Highest heater power (typ. 200mW @ 3.3V)

Medium 

Medium heater power (typ. 110mW @ 3.3V)

Low 

Lowest heater power (typ. 20mW @ 3.3V)

◆ Precision

enum class m5::unit::sht40::Precision : uint8_t
strong

precision level

Enumerator
High 

High precision (high repeatability)

Medium 

Medium precision (medium repeatability)

Low 

Lowest precision (low repeatability)