Skip to main content

pamoja_sx126x_set_lora_modulation_params

Function pamoja_sx126x_set_lora_modulation_params 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_sx126x_set_lora_modulation_params( link: PamojaLoraLink, out_command: *mut PamojaSx126xCommand, ) -> PamojaStatus
Expand description

SetModulationParams for a LoRa link.

§Arguments

  • link - the link settings.
  • out_command - receives the command.

§Returns

PamojaStatus::Ok with *out_command set, or PamojaStatus::InvalidArgument if the link’s bandwidth is not one the SX126x offers or out_command is null.

§Safety

out_command must point to a writable PamojaSx126xCommand, or be null.