M5Unit-METER 0.0.3 git rev:c518ea3
Loading...
Searching...
No Matches
unit_ADS111x.hpp File Reference

Base class for ADS111x families. 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::ads111x::Config
 Accessor for configration. More...
 
struct  m5::unit::ads111x::Data
 Measurement data group. More...
 
class  m5::unit::UnitADS111x
 Base class for ADS111x series. More...
 
struct  m5::unit::UnitADS111x::config_t
 Settings for begin. More...
 

Namespaces

namespace  m5
 Top level namespace of M5stack.
 
namespace  ads111x
 For ADS111x families.
 

Enumerations

enum class  m5::unit::ads111x::Mux : uint8_t {
  AIN_01 , AIN_03 , AIN_13 , AIN_23 ,
  GND_0 , GND_1 , GND_2 , GND_3
}
 Input multiplexer. More...
 
enum class  m5::unit::ads111x::Gain : uint8_t {
  PGA_6144 , PGA_4096 , PGA_2048 , PGA_1024 ,
  PGA_512 , PGA_256
}
 Programmable gain amplifier. More...
 
enum class  m5::unit::ads111x::Sampling : uint8_t {
  Rate8 , Rate16 , Rate32 , Rate64 ,
  Rate128 , Rate250 , Rate475 , Rate860
}
 Data rate setting (samples per second) More...
 
enum class  m5::unit::ads111x::ComparatorQueue : uint8_t { One , Two , Four , Disable }
 the value determines the number of successive conversions exceeding the upper orlower threshold required More...
 

Detailed Description

Base class for ADS111x families.

Enumeration Type Documentation

◆ ComparatorQueue

enum class m5::unit::ads111x::ComparatorQueue : uint8_t
strong

the value determines the number of successive conversions exceeding the upper orlower threshold required

Warning
This feature serve nofunction on the ADS1113
Enumerator
One 

Assert after one conversion.

Two 

Assert after two conversion.

Four 

Assert after four conversion.

Disable 

Disable comparator and set ALERT/RDY pin to high-impedance as default

◆ Gain

enum class m5::unit::ads111x::Gain : uint8_t
strong

Programmable gain amplifier.

Warning
This feature serve nofunction on the ADS1113
Enumerator
PGA_6144 

+/- 6.144 V

PGA_4096 

+/- 4.096 V

PGA_2048 

+/- 2.048 V as default

PGA_1024 

+/- 1.024 V

PGA_512 

+/- 0.512 V

PGA_256 

+/- 0.256 V

◆ Mux

enum class m5::unit::ads111x::Mux : uint8_t
strong

Input multiplexer.

Warning
This feature serve nofunction on the ADS1113 and ADS1114
Enumerator
AIN_01 

Positive:AIN0 Negative:AIN1 as default.

AIN_03 

Positive:AIN0 Negative:AIN3.

AIN_13 

Positive:AIN1 Negative:AIN3.

AIN_23 

Positive:AIN2 Negative:AIN3.

GND_0 

Positive:AIN0 Negative:GND.

GND_1 

Positive:AIN1 Negative:GND.

GND_2 

Positive:AIN2 Negative:GND.

GND_3 

Positive:AIN3 Negative:GND.

◆ Sampling

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

Data rate setting (samples per second)

Enumerator
Rate8 

8 sps

Rate16 

16 sps

Rate32 

32 sps

Rate64 

64 sps

Rate128 

128 sps as default

Rate250 

250 sps

Rate475 

475 sps

Rate860 

860 sps