#[unsafe(no_mangle)]pub extern "C" fn pamoja_lora_link_default(
spreading_factor: u8,
bandwidth_hz: u32,
) -> PamojaLoraLinkExpand description
Returns the settings for a spreading factor and bandwidth, with LoRa defaults.
The defaults are coding rate 4/5, an eight-symbol preamble, an explicit header, and CRC on, which is a typical uplink.
§Arguments
spreading_factor- the spreading factor, clamped to 5-12.bandwidth_hz- the channel bandwidth in hertz.
§Returns
The link settings, with the spreading factor already clamped.