Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Hysteresis< 0, T_in, T_out > Class Template Reference

#include <AH/Filters/Hysteresis.hpp>

Detailed Description

template<class T_in, class T_out>
class AH::Hysteresis< 0, T_in, T_out >

Definition at line 82 of file Hysteresis.hpp.

Collaboration diagram for Hysteresis< 0, T_in, T_out >:

Public Member Functions

bool update (T_in inputLevel)
T_out getValue () const
void setValue (T_in inputLevel)

Private Attributes

T_in prevLevel = 0

Static Private Attributes

static constexpr T_in margin
static constexpr T_in offset
static constexpr T_in max_in
static constexpr T_out max_out

Member Function Documentation

◆ update()

template<class T_in, class T_out>
bool update ( T_in inputLevel)
inline

Definition at line 84 of file Hysteresis.hpp.

◆ getValue()

template<class T_in, class T_out>
T_out getValue ( ) const
inline

Definition at line 90 of file Hysteresis.hpp.

◆ setValue()

template<class T_in, class T_out>
void setValue ( T_in inputLevel)
inline

Definition at line 91 of file Hysteresis.hpp.

Member Data Documentation

◆ prevLevel

template<class T_in, class T_out>
T_in prevLevel = 0
private

Definition at line 94 of file Hysteresis.hpp.

◆ margin

T_in margin
staticconstexprprivate

Definition at line 74 of file Hysteresis.hpp.

◆ offset

T_in offset
staticconstexprprivate

Definition at line 75 of file Hysteresis.hpp.

◆ max_in

T_in max_in
staticconstexprprivate

Definition at line 76 of file Hysteresis.hpp.

◆ max_out

T_out max_out
staticconstexprprivate

Definition at line 77 of file Hysteresis.hpp.


The documentation for this class was generated from the following file: