Function otThreadSetStoreFrameCounterAhead

Source
pub unsafe extern "C" fn otThreadSetStoreFrameCounterAhead(
    aInstance: *mut otInstance,
    aStoreFrameCounterAhead: u32,
)
Expand description

Sets the store frame counter ahead.

Requires OPENTHREAD_CONFIG_DYNAMIC_STORE_FRAME_AHEAD_COUNTER_ENABLE to be enabled.

The OpenThread stack stores the MLE and MAC security frame counter values in non-volatile storage, ensuring they persist across device resets. These saved values are set to be ahead of their current values by the “frame counter ahead” value.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aStoreFrameCounterAhead The store frame counter ahead to set.