Skip to main content

pamoja_lora_plan_sub_band

Function pamoja_lora_plan_sub_band 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lora_plan_sub_band( plan: *const PamojaLoraPlan, index: u16, out_band: *mut PamojaLoraSubBand, ) -> PamojaStatus
Expand description

Returns one of the plan’s sub-bands.

§Arguments

  • plan - the plan to read.
  • index - the sub-band’s position, below the count pamoja_lora_plan_info reports.
  • out_band - set to the sub-band on success.

§Returns

PamojaStatus::Ok on success.

§Errors

Returns PamojaStatus::InvalidArgument if either pointer is null or the index is past the end.

§Safety

plan must be a live plan handle and out_band must point at writable storage for one PamojaLoraSubBand.