Data Structures | Typedefs | Enumerations | Variables
Typedefs
SYSTEM » Power Manager

## Data Structures
struct | pwr_mgmt_var_box_t
| power manager setting parameter. Use pwr_mgmt_var_set to transfer the parameters in the structure to PMU, and then the pwr_mgmt_mode_set function will use the new parameters for power management. Note that this is an advanced API, the wrong setting of parameters may lead to abnormal power management, so please use it carefully. More...
struct | pwr_table_t
| parameter configuration table. More...

## Typedefs
typedef void(* | trace_func_t) (uint8_t)
| Trace function type.
typedef void(* | periph_func_t) (void)
| Peripheral function type.
typedef void(* | pwr_before_sleep_func_t) (void)
| Before sleep function type.
typedef pwr_mgmt_dev_state_t(* | pwr_dev_check_func_t) (void)
| Device check function type.
typedef void(* | io_dump_func_t) (void)
| function registered to dump io configuration.
typedef void(* | mem_check_proc_t) (void)
| mem check process type.

## Enumerations
enum | boot_mode_t { COLD_BOOT = 0, WARM_BOOT }
| power manager boot type. More...
enum | pwr_mgmt_mode_t { PMR_MGMT_ACTIVE_MODE = 0x0, PMR_MGMT_IDLE_MODE, PMR_MGMT_SLEEP_MODE }
| power manager model. More...
enum | pwr_mgmt_dev_state_t { DEVICE_BUSY = 0x0, DEVICE_IDLE }
| power manager device work state. More...
enum | notify_timer_event_t { EVENT_APP_TIMER_START = 0, EVENT_APP_TIMER_STOP }
| power manager app timer work state. More...
enum | { AMS_PLAYER_ATTR_ID_NAME, AMS_PLAYER_ATTR_ID_PLAYBACK_INFO, AMS_PLAYER_ATTR_ID_VOLUME, IAS_ALERT_NONE, IAS_ALERT_MILD, IAS_ALERT_HIGH, TRC_PWR_WFE_MODE = 0, TRC_PWR_DSLEEP_MODE, TRC_PWR_ACTIVE_MODE, TRC_PWR_BLE_RET_DSLEEP, TRC_PWR_APP_TIMER_REFUSE, TRC_PWR_APP_TIMER_PASS, TRC_PWR_BLE_TIMER_PASS }
| PMU Tracking. More...

## Variables
pwr_table_t | pwr_table []
| pwr table.

## Detailed Description

## Enumeration Type Documentation

## ◆ anonymous enum

anonymous enum

PMU Tracking.

Enumerator
AMS_PLAYER_ATTR_ID_NAME | Player attribute index of name.
AMS_PLAYER_ATTR_ID_PLAYBACK_INFO | Player attribute index of playback information.
AMS_PLAYER_ATTR_ID_VOLUME | Player attribute index of volume.
IAS_ALERT_NONE | No alert.
IAS_ALERT_MILD | Mild alert.
IAS_ALERT_HIGH | High alert.
TRC_PWR_WFE_MODE | WFE mode.
TRC_PWR_DSLEEP_MODE | Deep sleep mode.
TRC_PWR_ACTIVE_MODE | Active mode.
TRC_PWR_BLE_RET_DSLEEP | BLE return deep sleep.
TRC_PWR_APP_TIMER_REFUSE | App timer refuse.
TRC_PWR_APP_TIMER_PASS | App timer pass.
TRC_PWR_BLE_TIMER_PASS | BLE timer pass.

## ◆ boot_mode_t

enum boot_mode_t

power manager boot type.

Enumerator
COLD_BOOT | Cold boot state.
WARM_BOOT | Warm boot state.

## ◆ notify_timer_event_t

enum notify_timer_event_t

power manager app timer work state.

Enumerator
EVENT_APP_TIMER_START | App-timer start state.
EVENT_APP_TIMER_STOP | App-timer stop state.

## ◆ pwr_mgmt_dev_state_t

enum pwr_mgmt_dev_state_t

power manager device work state.

Enumerator
DEVICE_BUSY | Device busy state.
DEVICE_IDLE | Device idle state.

## ◆ pwr_mgmt_mode_t

enum pwr_mgmt_mode_t

power manager model.

Enumerator
PMR_MGMT_ACTIVE_MODE | Full speed state.
PMR_MGMT_IDLE_MODE | Idle state.
PMR_MGMT_SLEEP_MODE | Deep sleep state.