bool32.rising trigger
bool32.rising set
bool32.rising reset
bool32 output
int ntrig;
int p_set;
int p_reset;
int op;
p_set = 0;
p_reset = 0;
op = 0;
if ((inlet_trig > 0) && !ntrig) {
op = !op;
ntrig = 1;
}
if (!(inlet_trig > 0))
ntrig = 0;
if ((inlet_set > 0) && !p_set) {
op = 1;
p_set = 1;
}
if ((inlet_reset > 0) && !p_reset) {
op = 0;
p_reset = 1;
}
if (!(inlet_set > 0))
p_set = 0;
if (!(inlet_reset > 0))
p_reset = 0;
outlet_o = (op << 27);