Back to Index
Clamps x to the lo..hi range.
x
lo..hi
CLAMP(x, lo, hi, &y);
// Example pattern from analog_macros.ems CLAMP(ain(1), 0, 10000, mv);