Skip to main content

read_value

Function read_value 

Source
pub fn read_value(received: &[u8]) -> Option<u8>
Expand description

Takes the byte a read transfer brought back.

§Arguments

  • received - everything the bus returned during a read transfer.

§Returns

The register byte, or None when the transfer is too short to hold one.