openthread_sys

Function otNetworkTimeSyncSetCallback

Source
pub unsafe extern "C" fn otNetworkTimeSyncSetCallback(
    aInstance: *mut otInstance,
    aCallbackFn: otNetworkTimeSyncCallbackFn,
    aCallbackContext: *mut c_void,
)
Expand description

Set a callback to be called when a network time sync or status change occurs

This callback shall be called only when the network time offset jumps by OPENTHREAD_CONFIG_TIME_SYNC_JUMP_NOTIF_MIN_US or when the status changes.

@param[in] aInstance The OpenThread instance structure. @param[in] aCallbackFn The callback function to be called @param[in] aCallbackContext The context to be passed to the callback function upon invocation