pub unsafe extern "C" fn otPlatSetMcuPowerState(
aInstance: *mut otInstance,
aState: otPlatMcuPowerState,
) -> otError
Expand description
Sets the desired MCU power state.
This is only applicable and used for NCP configuration when OPENTHREAD_CONFIG_NCP_ENABLE_MCU_POWER_STATE_CONTROL
is enabled.
@param[in] aInstance A pointer to OpenThread instance. @param[in] aState The new MCU power state.
@retval OT_ERROR_NONE The power state updated successfully. @retval OT_ERROR_FAILED The given MCU power state is not supported by the platform.