#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lorawan_device_settings(
min_output_dbm: i8,
max_output_dbm: i8,
out_settings: *mut PamojaLorawanDeviceSettings,
) -> PamojaStatusExpand description
Fills in the settings of a typical node with a radio’s output power range.
The rest start as TS001-1.0.4, adaptive data rate on, an antenna with no gain over its cable, a radio that tunes 137 to 1020 MHz as an SX1276 does, the region’s duty cycle kept, no repeater in the path, and a seed of zero.
§Arguments
min_output_dbm- the lowest power the radio puts out, conducted.max_output_dbm- the highest, conducted.out_settings- receives the settings.
§Returns
PamojaStatus::Ok on success.
§Errors
Returns PamojaStatus::InvalidArgument if out_settings is null.
§Safety
out_settings must point to a writable PamojaLorawanDeviceSettings.