[][src]Function one_wire_bus::crc::check_crc8

pub fn check_crc8<E>(data: &[u8]) -> OneWireResult<(), E>

Checks to see if data (including the crc byte) passes the crc check.

A nice property of this crc8 algorithm is that if you include the crc value in the data it will always return 0, so it's not needed to separate the data from the crc value