Back to Index

Threshold hysteresis: ON above onTh, OFF below offTh.

Signature

THRESH_HYST(value, onTh, offTh, &q);

Example

// Example pattern from analog_macros.ems
THRESH_HYST(ain(1), 800, 700, alarm);