Module radio_datetime_helpers Copy item path Source decode_bcd Returns the BCD-encoded value of the given buffer over the given range,
or None if the input is invalid. decode_bin Returns the binary-encoded value of the given buffer over the given range,
or None if the input is invalid. decode_parity Returns parity of the given buffer over the given range, or None if the input is invalid.
Should be Some(false) for even parity and Some(true) for odd parity. decode_unary Decode the unary value (a single hexadecimal digit) of the given slice.
A 0 bit cannot be followed by a 1 bit. encode_bcd Encodes an u32 as a BCD vector of the given length. encode_bin Encodes an u32 as a binary vector of the given length. encode_parity Calculates the parity value of the given buffer depending on whether the parity is even or odd. encode_unary Encodes an u8 as a unary vector of te given length. get_bcd_value Deprecated get_parity Deprecated increase_second Increase or wrap the passed second counter. time_diff Return the difference in microseconds between two timestamps.