10#ifndef M5_UNIT_METER_UNIT_ADS1114_HPP
11#define M5_UNIT_METER_UNIT_ADS1114_HPP
42 return write_gain(
gain);
47 return write_comparator_mode(b);
52 return write_comparator_polarity(b);
57 return write_latching_comparator(b);
62 return write_comparator_queue(c);
ADS1114 unit.
Definition unit_ADS1114.hpp:21
virtual bool writeLatchingComparator(const bool b) override
Write the latching comparator.
Definition unit_ADS1114.hpp:55
virtual bool writeComparatorQueue(const ads111x::ComparatorQueue c) override
Write the comparator queue.
Definition unit_ADS1114.hpp:60
virtual bool writeMultiplexer(const ads111x::Mux) override
Not support.
Definition unit_ADS1114.hpp:35
virtual bool writeComparatorMode(const bool b) override
Write the comparator mode.
Definition unit_ADS1114.hpp:45
virtual bool writeGain(const ads111x::Gain gain) override
Write the programmable gain amplifier.
Definition unit_ADS1114.hpp:40
virtual bool writeComparatorPolarity(const bool b) override
Write the comparator polarity.
Definition unit_ADS1114.hpp:50
Base class for ADS111x series.
Definition unit_ADS111x.hpp:219
ads111x::Gain gain() const
Gets the programmable gain amplifier.
Definition unit_ADS111x.cpp:104
Top level namespace of M5stack.
Base class for ADS111x families.
Sampling
Data rate setting (samples per second)
Definition unit_ADS111x.hpp:61
Mux
Input multiplexer.
Definition unit_ADS111x.hpp:31
ComparatorQueue
the value determines the number of successive conversions exceeding the upper orlower threshold requi...
Definition unit_ADS111x.hpp:77
Gain
Programmable gain amplifier.
Definition unit_ADS111x.hpp:47