pub const fn identify() -> [Step; 2]Expand description
The transfers that read the part number, in order.
§Returns
Select the model byte in the one-time programmable memory, then read it. What the last
step reads goes to Model::of.
§Examples
use pamoja_radios::sx1302::chip::{identify, Model, Step, MODEL_BYTE_ADDRESS};
use pamoja_radios::sx1302::register;
let steps = identify();
assert_eq!(steps[0], Step::Write(register::OTP_BYTE_ADDR, MODEL_BYTE_ADDRESS));
assert_eq!(steps[1], Step::Read(register::OTP_RD_DATA));
// A board that answered with three is an SX1303.
assert_eq!(Model::of(0x03), Model::Sx1303);