openthread_sys

Function otNetworkTimeSetXtalThreshold

Source
pub unsafe extern "C" fn otNetworkTimeSetXtalThreshold(
    aInstance: *mut otInstance,
    aXTALThreshold: u16,
) -> otError
Expand description

Set the time synchronization XTAL accuracy threshold for Router-Capable device.

Can only be called while Thread protocols are disabled.

@param[in] aInstance The OpenThread instance structure. @param[in] aXTALThreshold The XTAL accuracy threshold for Router, in PPM.

@retval OT_ERROR_NONE Successfully set the time sync period. @retval OT_ERROR_INVALID_STATE Thread protocols are enabled.