M5Unit-HEART 0.1.0 git rev:05c3b01
Loading...
Searching...
No Matches
unit_MAX30100.hpp File Reference

MAX30100 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::max30100::Data
 Measurement data group. More...
 
struct  m5::unit::max30100::TemperatureData
 Measurement data group for temperature. More...
 
class  m5::unit::UnitMAX30100
 Pulse oximetry and heart-rate sensor. More...
 
struct  m5::unit::UnitMAX30100::config_t
 Settings for begin. More...
 

Namespaces

namespace  m5
 Top level namespace of M5stack.
 
namespace  max30100
 For MAX30100.
 

Enumerations

enum class  m5::unit::max30100::Mode : uint8_t { None , HROnly = 0x02 , SpO2 }
 Operation mode. More...
 
enum class  m5::unit::max30100::Sampling : uint8_t {
  Rate50 , Rate100 , Rate167 , Rate200 ,
  Rate400 , Rate600 , Rate800 , Rate1000
}
 Sampling rate for pulse/conversion. More...
 
enum class  m5::unit::max30100::LEDPulse : uint8_t { Width200 , Width400 , Width800 , Width1600 }
 LED pulse width (the IR and RED have the same pulse width) More...
 
enum class  m5::unit::max30100::LED : uint8_t {
  Current0_0 , Current4_4 , Current7_6 , Current11_0 ,
  Current14_2 , Current17_4 , Current20_8 , Current24_0 ,
  Current27_1 , Current30_6 , Current33_8 , Current37_0 ,
  Current40_2 , Current43_6 , Current46_8 , Current50_0
}
 LED current control. More...
 

Variables

constexpr uint8_t m5::unit::max30100::MAX_FIFO_DEPTH {16}
 FIFO depth.
 

Detailed Description

MAX30100 Unit for M5UnitUnified.

Enumeration Type Documentation

◆ LED

enum class m5::unit::max30100::LED : uint8_t
strong

LED current control.

Enumerator
Current0_0 

0,0 mA

Current4_4 

4,4 mA

Current7_6 

7.6 mA

Current11_0 

11.0 mA

Current14_2 

14.2 mA

Current17_4 

17.4 mA

Current20_8 

20,8 mA

Current24_0 

24.0 mA

Current27_1 

27.1 mA

Current30_6 

30.6 mA

Current33_8 

33.8 mA

Current37_0 

37.0 mA

Current40_2 

40.2 mA

Current43_6 

43.6 mA

Current46_8 

46.8 mA

Current50_0 

50.0 mA

◆ LEDPulse

enum class m5::unit::max30100::LEDPulse : uint8_t
strong

LED pulse width (the IR and RED have the same pulse width)

Enumerator
Width200 

200 us (ADC 13 bits)

Width400 

400 us (ADC 14 bits)

Width800 

800 us (ADC 15 bits)

Width1600 

1600 us (ADC 16 bits)

◆ Mode

enum class m5::unit::max30100::Mode : uint8_t
strong

Operation mode.

Enumerator
None 

None.

HROnly 

HR only enabled.

SpO2 

SPO2 and HR enabled.

◆ Sampling

enum class m5::unit::max30100::Sampling : uint8_t
strong

Sampling rate for pulse/conversion.

Unit is the number of sample per second

Enumerator
Rate50 

50 sps

Rate100 

100 sps

Rate167 

167 sps

Rate200 

200 sps

Rate400 

400 sps

Rate600 

600 sps

Rate800 

800 sps

Rate1000 

1000 sps