Back to Index

Returns the maximum of two values.

Signature

MAX2(a, b, &y);

Example

// Example pattern from analog_macros.ems
MAX2(ain(1), ain(2), maxVal);