#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_sx127x_modem(
link: PamojaLoraLink,
frequency_hz: u32,
symbol_timeout: u16,
out_modem: *mut PamojaSx127xModem,
) -> PamojaStatusExpand description
Returns the LoRa modem registers for a link at a carrier.
§Arguments
link- the link settings.frequency_hz- the carrier frequency in hertz, which rules out 250 and 500 kHz in the lowest band.symbol_timeout- the single reception timeout in symbols, whose top bits go in RegModemConfig2.out_modem- receives the registers.
§Returns
PamojaStatus::Ok with *out_modem set, or PamojaStatus::InvalidArgument if the
SX127x cannot use the link at the carrier or out_modem is null.
§Safety
out_modem must point to a writable PamojaSx127xModem, or be null.