bool32.risingfalling trig
bool32.pulse pulse
int32_t val; int ntrig;
val = 0; ntrig = 0;
if ((inlet_trig > 0) && !ntrig) { ntrig = 1; outlet_pulse = 1; } else { if (!(inlet_trig > 0)) ntrig = 0; outlet_pulse = 0; }
© 2024 Zrna Research