pub unsafe extern "C" fn otPlatGetMcuPowerState(
aInstance: *mut otInstance,
) -> otPlatMcuPowerState
Expand description
Gets the current desired MCU power state.
This is only applicable and used for NCP configuration when OPENTHREAD_CONFIG_NCP_ENABLE_MCU_POWER_STATE_CONTROL
is enabled.
After a reset, the power state MUST return OT_PLAT_POWER_STATE_ON
. During operation, power state SHOULD only
change through an explicit successful call to otPlatSetMcuPowerState()
.
@param[in] aInstance A pointer to OpenThread instance.
@returns The current power state.