M5Unit-THERMO 0.2.0 git rev:e387a6b
Loading...
Searching...
No Matches
unit_Thermal2.hpp File Reference

Thermal2 Unit for M5UnitUnified. More...

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

Go to the source code of this file.

Classes

struct  m5::unit::thermal2::Data
 Measurement data group. More...
 
class  m5::unit::UnitThermal2
 Unit Thermal2. More...
 
struct  m5::unit::UnitThermal2::config_t
 Settings for begin. More...
 

Namespaces

namespace  m5
 Top level namespace of M5stack.
 
namespace  thermal2
 For UnitThermal2.
 

Enumerations

enum class  m5::unit::thermal2::Refresh : uint8_t {
  Rate0_5Hz , Rate1Hz , Rate2Hz , Rate4Hz ,
  Rate8Hz , Rate16Hz , Rate32Hz , Rate64Hz
}
 Refresh rate(Hz) More...
 

Variables

Button status
constexpr uint8_t m5::unit::thermal2::button_is_pressed {0x01}
 
constexpr uint8_t m5::unit::thermal2::button_was_pressed {0x02}
 
constexpr uint8_t m5::unit::thermal2::button_was_released {0x04}
 
constexpr uint8_t m5::unit::thermal2::button_was_clicked {0x08}
 
constexpr uint8_t m5::unit::thermal2::button_was_hold {0x10}
 
Function control
constexpr uint8_t m5::unit::thermal2::enabled_function_buzzer {0x01}
 
constexpr uint8_t m5::unit::thermal2::enabled_function_led {0x02}
 
constexpr uint8_t m5::unit::thermal2::enabled_function_auto_refresh {0x04}
 
Alarm enabled bits
See also
m5::unit::UnitThermal2::readEnabledAlarm m5::unit::UnitThermal2::writeEnabledAlarm
constexpr uint8_t m5::unit::thermal2::enabled_low_temperature_low {0x01}
 Low temp reached low threshold.
 
constexpr uint8_t m5::unit::thermal2::enabled_med_temperature_low {0x02}
 Med temp reached low threshold.
 
constexpr uint8_t m5::unit::thermal2::enabled_ave_temperature_low {0x04}
 Ave temp reached low threshold.
 
constexpr uint8_t m5::unit::thermal2::enabled_high_temperature_low {0x08}
 High temp reached low threshold.
 
constexpr uint8_t m5::unit::thermal2::enabled_low_temperature_high {0x10}
 Low temp reached high threshold.
 
constexpr uint8_t m5::unit::thermal2::enabled_med_temperature_high {0x20}
 Med temp reached high threshold.
 
constexpr uint8_t m5::unit::thermal2::enabled_ave_temperature_high {0x40}
 Ave temp reached high threshold.
 
constexpr uint8_t m5::unit::thermal2::enabled_high_temperature_high {0x80}
 High temp reached high threshold.
 

Detailed Description

Thermal2 Unit for M5UnitUnified.

Enumeration Type Documentation

◆ Refresh

enum class m5::unit::thermal2::Refresh : uint8_t
strong

Refresh rate(Hz)

Enumerator
Rate0_5Hz 

0.5Hz

Rate1Hz 

1Hz

Rate2Hz 

2Hz

Rate4Hz 

4Hz

Rate8Hz 

8Hz

Rate16Hz 

16Hz

Rate32Hz 

32Hz

Rate64Hz 

64Hz