M5Unit-METER 0.0.3 git rev:c518ea3
Loading...
Searching...
No Matches
unit_ADS1113.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD
3 *
4 * SPDX-License-Identifier: MIT
5 */
10#ifndef M5_UNIT_METER_UNIT_ADS1113_HPP
11#define M5_UNIT_METER_UNIT_ADS1113_HPP
12
13#include "unit_ADS111x.hpp"
14
15namespace m5 {
16namespace unit {
21class UnitADS1113 : public UnitADS111x {
22 M5_UNIT_COMPONENT_HPP_BUILDER(UnitADS1113, 0x00);
23
24public:
25 explicit UnitADS1113(const uint8_t addr = DEFAULT_ADDRESS) : UnitADS111x(addr)
26 {
27 }
28 virtual ~UnitADS1113()
29 {
30 }
31
34
35 virtual bool writeMultiplexer(const ads111x::Mux) override
36 {
37 return false;
38 }
40 virtual bool writeGain(const ads111x::Gain) override
41 {
42 return false;
43 }
45 virtual bool writeComparatorMode(const bool) override
46 {
47 return false;
48 }
50 virtual bool writeComparatorPolarity(const bool) override
51 {
52 return false;
53 }
55 virtual bool writeLatchingComparator(const bool) override
56 {
57 return false;
58 }
61 {
62 return false;
63 }
65
66protected:
67 virtual bool start_periodic_measurement(const ads111x::Sampling rate, const ads111x::Mux mux,
68 const ads111x::Gain gain, const ads111x::ComparatorQueue comp_que) override;
69};
70} // namespace unit
71} // namespace m5
72#endif
ADS1113 unit.
Definition unit_ADS1113.hpp:21
virtual bool writeComparatorPolarity(const bool) override
Not support.
Definition unit_ADS1113.hpp:50
virtual bool writeLatchingComparator(const bool) override
Not support.
Definition unit_ADS1113.hpp:55
virtual bool writeGain(const ads111x::Gain) override
Not support.
Definition unit_ADS1113.hpp:40
virtual bool writeComparatorMode(const bool) override
Not support.
Definition unit_ADS1113.hpp:45
virtual bool writeMultiplexer(const ads111x::Mux) override
Not support.
Definition unit_ADS1113.hpp:35
virtual bool writeComparatorQueue(const ads111x::ComparatorQueue) override
Not support.
Definition unit_ADS1113.hpp:60
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.
Unit-related namespace.
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