MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
35 template <u
int8_t BITS,
class T_in = u
int16_t,
class T_out = u
int8_t>
52 if (inputLevel < lowerbound || inputLevel > upperbound) {
68 constexpr
static T_in
margin = (1UL << BITS) - 1;
69 constexpr
static T_in
offset = 1UL << (BITS - 1);
72 static_assert(
max_in > 0,
"Error: only unsigned types are supported");
constexpr static T_in margin
#define AH_DIAGNOSTIC_POP()
T_out getValue() const
Get the current output level.
constexpr static T_out max_out
A class for applying hysteresis to a given input.
#define AH_DIAGNOSTIC_WERROR()
constexpr static T_in offset
bool update(T_in inputLevel)
Update the hysteresis output with a new input value.
constexpr static T_in max_in