#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lora_radio_detect(
radio: *mut PamojaLoraRadio,
symbols: u8,
out_detected: *mut bool,
) -> PamojaStatusExpand description
Listens a few symbols for a LoRa preamble and reports whether one is there, as a relay’s scan does, leaving the chip in standby.
§Arguments
radio- the radio.symbols- how many symbols an SX126x listens over: 1, 2, 4, 8, or 16, rounded down to one of them. An SX127x listens over one.out_detected- receives whether a preamble was there.
§Returns
PamojaStatus::Ok; PamojaStatus::InvalidArgument for a null argument or a radio not
yet configured; or PamojaStatus::Io when the chip does not answer.
§Safety
radio must be a live handle or null, and out_detected writable or null.