pub const fn start(scan_time: ScanTime, threshold_dbm: i8) -> (u8, [u8; 5])Expand description
Builds the command that starts a carrier check.
§Arguments
scan_time- how long to listen for.threshold_dbm- the level above which the channel counts as busy.
§Returns
The opcode and its payload. A caller sends it, waits
micros, and only then asks the concentrator for a trigger.
§Examples
use pamoja_radios::sx1302::lbt::{start, ScanTime, OP_LBT_START};
let (opcode, payload) = start(ScanTime::Short, -80);
assert_eq!(opcode, OP_LBT_START);
assert_eq!(payload, [11, 0, 24, 160, 1]);