pub const fn spectral_scan(scans: u16) -> (u8, [u8; 3])Expand description
Builds the command that starts a spectral scan.
§Arguments
scans- how many sweeps to take.
§Returns
The opcode and its payload.
§Examples
use pamoja_radios::sx1302::lbt::{spectral_scan, OP_SPECTRAL_SCAN};
let (opcode, payload) = spectral_scan(1000);
assert_eq!(opcode, OP_SPECTRAL_SCAN);
assert_eq!(payload, [0x03, 0xe8, 11]);