Updated on 2022-03-13 GMT+08:00

Enumeration: PowerState::DEVICE_POWER_STATE

enum DEVICE_POWER_STATE {
    DEVICE_POWER_STATE_S0 = 0,       // The system enters the S0 state, the device is available, and the app is woken up.
    DEVICE_POWER_STATE_SUSPEND,     // The system is about to enter the S3/S4 state, and the app releases resources such as channels and memory.
    DEVICE_POWER_STATE_D0,          // The NPU device enters the D0 state, the device is available, and the app is woken up. (No processing is required for the Matrix services.)
    DEVICE_POWER_STATE_D3,           // The NPU device is about to enter the D3 state, and the app stops communicating with the device. (No processing is required for the Matrix services.)
    DEVICE_POWER_STATE_ENABLE,       // The NPU device driver is installed or enabled, and the NPU is available.
    DEVICE_POWER_STATE_DISABLE,      // The NPU device driver is uninstalled or disabled, and the NPU is unavailable.
     DEVICE_POWER_STATE_MAX           // Indicates the maximum number of states. It does not indicate the actual state.
};