#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lora_plan_channel_block(
plan: *const PamojaLoraPlan,
which: u32,
index: u16,
out_block: *mut PamojaLoraChannelBlock,
) -> PamojaStatusExpand description
Returns one of the plan’s channel blocks.
§Arguments
plan- the plan to read.which-PAMOJA_LORA_CHANNELS_JOINorPAMOJA_LORA_CHANNELS_DEFAULT.index- the block’s position, below the countpamoja_lora_plan_inforeports.out_block- set to the block on success.
§Returns
PamojaStatus::Ok on success.
§Errors
Returns PamojaStatus::InvalidArgument if either pointer is null, which
is not one of the constants, or the index is past the end.
§Safety
plan must be a live plan handle and out_block must point at writable
storage for one PamojaLoraChannelBlock.