Module resol_vbus::utils
source · Expand description
A module containing utitlities functions for processing VBus data.
Functions
Calc and compare checksum according to VBus protocol version x.0.
Calc and set checksum according to VBus protocol version x.0.
Calc checksum according to VBus protocol version x.0.
Calculate the CRC16 checksum over a slice of bytes.
Copy bytes from
src
to dst
, extracting the MSB into a separate byte and appending it at the end of dst
.Copy bytes from
src
to dst
, injecting the MSBs stored in a separate byte at the end of src
.Checks a slice of bytes whether one of them has its MSB set.
Return a Utc timestamp for the given UNIX epoch seconds.