openthread_sys

Function otThreadSetParentPriority

Source
pub unsafe extern "C" fn otThreadSetParentPriority(
    aInstance: *mut otInstance,
    aParentPriority: i8,
) -> otError
Expand description

Set the parent priority.

@note This API is reserved for testing and demo purposes only. Changing settings with this API will render a production application non-compliant with the Thread Specification.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aParentPriority The parent priority value.

@retval OT_ERROR_NONE Successfully set the parent priority. @retval OT_ERROR_INVALID_ARGS If the parent priority value is not among 1, 0, -1 and -2.

@sa otThreadGetParentPriority