A Timer with a given duration after which it will enter into a “Ringing”
state. The Timer can be reset at an given time, or manually set to start
“Ringing” again.
Returns whether or not a wrapping number is greater than another
sequence_greater_than(2,1) will return true
sequence_greater_than(1,2) will return false
sequence_greater_than(1,1) will return false
Returns whether or not a wrapping number is greater than another
sequence_less_than(1,2) will return true
sequence_less_than(2,1) will return false
sequence_less_than(1,1) will return false
Retrieves the wrapping difference between 2 u16 values
wrapping_diff(1,2) will return 1
wrapping_diff(2,1) will return -1
wrapping_diff(65535,0) will return 1
wrapping_diff(0,65535) will return -1