#include <digital.hpp>
|
void | reset () |
|
bool | process (float in, float lowThreshold=0.f, float highThreshold=1.f) |
| Updates the state of the Schmitt Trigger given a value.
|
|
Event | processEvent (float in, float lowThreshold=0.f, float highThreshold=1.f) |
| Returns TRIGGERED if the input reached highThreshold, and UNTRIGGERED if the input reached lowThreshold.
|
|
bool | isHigh () |
|
◆ State
Enumerator |
---|
LOW | |
HIGH | |
UNINITIALIZED | |
◆ Event
Enumerator |
---|
NONE | |
TRIGGERED | |
UNTRIGGERED | |
◆ reset()
◆ process()
Updates the state of the Schmitt Trigger given a value.
Returns true if triggered, i.e. the value increases from 0 to 1. If different trigger thresholds are needed, use
process(in, 0.1f, 2.f)
for example.
◆ processEvent()
Returns TRIGGERED if the input reached highThreshold, and UNTRIGGERED if the input reached lowThreshold.
◆ isHigh()
◆ state
Deprecated.
Backward compatible API
◆ []
The documentation for this struct was generated from the following file: