Skip to main content

pamoja_lora_plan_data_rate

Function pamoja_lora_plan_data_rate 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lora_plan_data_rate( plan: *const PamojaLoraPlan, direction: u32, data_rate: u8, out_rate: *mut PamojaLoraDataRate, ) -> PamojaStatus
Expand description

Returns the data rate a number selects.

§Arguments

§Returns

PamojaStatus::Ok on success. A reserved number succeeds and reports PAMOJA_LORA_MODULATION_RESERVED.

§Errors

Returns PamojaStatus::InvalidArgument if either pointer is null, the direction is not one of the two constants, or the number is past the end of the plan’s table.

§Safety

plan must be a live plan handle and out_rate must point at writable storage for one PamojaLoraDataRate.