ads1115
0.2.0
|
#include "threshold.hpp"
Public Member Functions | |
Threshold ()=default | |
Threshold (const std::int16_t low, const std::int16_t high) | |
bool | operator== (const Threshold &other) const =default |
void | set (const std::int16_t low, const std::int16_t high) |
std::int16_t | getHigh () const |
std::int16_t | getLow () const |
Private Attributes | |
std::int16_t | m_high = 32767 |
std::int16_t | m_low = -32768 |
Definition at line 12 of file threshold.hpp.
|
default |
ADS1115::Threshold::Threshold | ( | const std::int16_t | low, |
const std::int16_t | high | ||
) |
Definition at line 11 of file threshold.cpp.
References set().
std::int16_t ADS1115::Threshold::getHigh | ( | ) | const |
Definition at line 31 of file threshold.cpp.
References m_high.
Referenced by ADS1115::ADS1115::setRegThreshold(), and TEST().
std::int16_t ADS1115::Threshold::getLow | ( | ) | const |
Definition at line 35 of file threshold.cpp.
References m_low.
Referenced by ADS1115::ADS1115::setRegThreshold(), and TEST().
|
default |
void ADS1115::Threshold::set | ( | const std::int16_t | low, |
const std::int16_t | high | ||
) |
Definition at line 16 of file threshold.cpp.
Referenced by TEST(), and Threshold().
|
private |
Definition at line 14 of file threshold.hpp.
|
private |
Definition at line 15 of file threshold.hpp.