Outputs the maximum value received at the input. When a trigger occurs at the reset input, the maximum output value is reset to the current value.
| in | 
 The input signal.  | 
| trig | 
 Resets the output value to the current input value. A trigger happens when the signal changes from non-positive to positive.  |