Describe the power mode attributes
typedef struct pm_power_attr_t {
pm_power_mode_t cur_mode;
pm_power_mode_t new_mode;
pm_power_mode_t nxt_mode;
pm_power_mode_t num_modes;
} pm_power_attr_t;
This structure describes the power mode attributes of a power managed object.
The different modes are as follows:
- cur_mode
- Current operating mode.
- new_mode
- New mode if the object is in the process of a power mode change.
Otherwise it is the same as cur_mode.
- nxt_mode
- Indicates a pending mode change -- if a mode change request is received
while the driver is still in the process of power mode change.
- num_modes
- Number of different modes supported by the object.