adapnex::core::HysteresisWithDelay::operator()

Function call operator

Synopsis

Declared in <adapnex/core/hysteresis.h>

void
operator()(
    T IN,
    T SET,
    T RESET,
    Duration PT,
    bool& OUT);

Description

Both SET > RESET and SET < RESET are allowed. The implementation adapts the comparisons accordingly.

Parameters

Name Description

IN

Input value that is evaluated.

SET

Input threshold that sets the output OUT to true when crossed for a duration defined by PT.

RESET

Input threshold that resets teh output OUT to false when crossed for a duration defined by PT.

PT

Input duration that delays the effect of crossing the thresholds.

OUT

Output that switches between true and false depending on the input value, thresholds and delay.

Created with MrDocs