#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lora_plan_sub_band(
plan: *const PamojaLoraPlan,
index: u16,
out_band: *mut PamojaLoraSubBand,
) -> PamojaStatusExpand description
Returns one of the plan’s sub-bands.
§Arguments
plan- the plan to read.index- the sub-band’s position, below the countpamoja_lora_plan_inforeports.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.