Skip to main content

answers

Function answers 

Source
pub const fn answers(version: u8) -> bool
Expand description

Whether the version register says a concentrator is answering.

§Arguments

§Returns

Whether it matches EXPECTED_VERSION. A board that is unpowered, miswired, or held in reset reads zero or all ones instead.

§Examples

use pamoja_radios::sx1302::chip::answers;

assert!(answers(0x10));
assert!(!answers(0x00), "an unpowered board reads zero");
assert!(!answers(0xff), "a floating bus reads all ones");