A flip-flop
[sim,y] = ld_flipflop(sim, events, set0, set1, reset, initial_state)
set0, set1, reset * - control of the flipflop (set output to zero if set0 is >0.5 for at least one sample, ...)
initial_state - constant