Back to Index
Threshold hysteresis: ON above onTh, OFF below offTh.
onTh
offTh
THRESH_HYST(value, onTh, offTh, &q);
// Example pattern from analog_macros.ems THRESH_HYST(ain(1), 800, 700, alarm);