Type Alias openthread_sys::otPlatMcuPowerState

source ·
pub type otPlatMcuPowerState = c_uint;
Expand description

Enumeration of micro-controller’s power states.

These values are used for NCP configuration when OPENTHREAD_CONFIG_NCP_ENABLE_MCU_POWER_STATE_CONTROL is enabled.

The power state specifies the desired power state of NCP’s micro-controller (MCU) when the underlying platform’s operating system enters idle mode (i.e., all active tasks/events are processed and the MCU can potentially enter a energy-saving power state).

The power state primarily determines how the host should interact with the NCP and whether the host needs an external trigger (a “poke”) to NCP before it can communicate with the NCP or not.

After a reset, the MCU power state MUST be OT_PLAT_POWER_STATE_ON.