Skip to main content

pamoja_lora_radio_configure

Function pamoja_lora_radio_configure 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lora_radio_configure( radio: *mut PamojaLoraRadio, config: PamojaLoraRadioConfig, ) -> PamojaStatus
Expand description

Tunes a radio to a configuration.

§Arguments

§Returns

PamojaStatus::Ok; PamojaStatus::InvalidArgument for a null radio or settings the chip cannot use, such as a bandwidth it lacks; or PamojaStatus::Io when the chip does not answer.

§Safety

radio must be a live handle from one of the open functions, or null.