#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lorawan_backoff_new(
version: u8,
limit: u32,
delay: u32,
out_backoff: *mut *mut PamojaLorawanBackoff,
) -> PamojaStatusExpand description
Starts a back-off count from zero.
§Arguments
version-PAMOJA_LORAWAN_VERSION_1_0_3orPAMOJA_LORAWAN_VERSION_1_0_4, the revision whose steps to follow.limit- how many unanswered uplinks before the device starts asking, usuallyPAMOJA_LORAWAN_ADR_ACK_LIMIT.delay- how many more before its first step, and between each step after that, usuallyPAMOJA_LORAWAN_ADR_ACK_DELAY. Zero is taken as one.out_backoff- receives the count.
§Returns
PamojaStatus::Ok on success, with *out_backoff set to a handle the caller must
release with pamoja_lorawan_backoff_free.
§Errors
Returns PamojaStatus::InvalidArgument if out_backoff is null or version names no
revision.
§Safety
out_backoff must point to a writable *mut PamojaLorawanBackoff.