I just need it to take a a trigger input and hold that state till it receives another rising edge at which it will invert it's state.