Expand description
A module containing utitlities functions for processing VBus data.
Functionsยง
- calc_
and_ compare_ checksum_ v0 - Calc and compare checksum according to VBus protocol version x.0.
- calc_
and_ set_ checksum_ v0 - Calc and set checksum according to VBus protocol version x.0.
- calc_
checksum_ v0 - Calc checksum according to VBus protocol version x.0.
- calc_
crc16 - Calculate the CRC16 checksum over a slice of bytes.
- copy_
bytes_ extracting_ septett - Copy bytes from
src
todst
, extracting the MSB into a separate byte and appending it at the end ofdst
. - copy_
bytes_ injecting_ septett - Copy bytes from
src
todst
, injecting the MSBs stored in a separate byte at the end ofsrc
. - has_
msb_ set - Checks a slice of bytes whether one of them has its MSB set.
- utc_
timestamp - Return a Utc timestamp for the given UNIX epoch seconds.