openthread_sys

Function otPlatRadioSleep

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

Transition the radio from Receive to Sleep (turn off the radio).

@param[in] aInstance The OpenThread instance structure.

@retval OT_ERROR_NONE Successfully transitioned to Sleep. @retval OT_ERROR_BUSY The radio was transmitting. @retval OT_ERROR_INVALID_STATE The radio was disabled.