ads1115
0.2.0
threshold.hpp
Go to the documentation of this file.
1
#ifndef ADS1115_THRESHOLD_HPP_
2
#define ADS1115_THRESHOLD_HPP_
3
4
//ads1115
5
#include "
ads1115/detail/ads1115_export.h
"
6
7
// stl
8
#include <cstdint>
9
10
namespace
ADS1115
11
{
12
class
ADS1115_EXPORT
Threshold
13
{
14
std::int16_t m_high = 32767;
15
std::int16_t m_low = -32768;
16
17
public
:
18
Threshold
() =
default
;
19
Threshold
(
const
std::int16_t low,
const
std::int16_t high);
20
21
bool
operator==(
const
Threshold
& other)
const
=
default
;
22
23
void
set(
const
std::int16_t low,
const
std::int16_t high);
24
std::int16_t getHigh()
const
;
25
std::int16_t getLow()
const
;
26
};
27
}
// namespace ADS1115
28
29
#endif
ADS1115
Definition:
ads1115.hpp:16
ADS1115::Threshold
Definition:
threshold.hpp:12
ads1115_export.h
ADS1115_EXPORT
#define ADS1115_EXPORT
Definition:
ads1115_export.h:15
ads1115
include
ads1115
threshold.hpp
Generated by
1.8.17