Classes | Macros | Typedefs | Enumerations | Variables
Typedefs
SYSTEM » Power Manager

## Classes
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...

## Macros
#define | PMR_MGMT_SUCCESS 0x0
| PMU error code. More...
#define | PMR_MGMT_FAIL 0xFF
#define | PWR_MGMT_BB_CHECK_FAIL 0xFE
#define | PWR_MGMT_MODE_CHECK_FAIL 0xFD

## Typedefs
typedef void(* | trace_func_t) (uint8_t)
| Trace function type. More...
typedef void(* | periph_func_t) (void)
| Peripheral function type. More...
typedef void(* | pwr_before_sleep_func_t) (void)
| Before sleep function type. More...
typedef pwr_mgmt_dev_state_t(* | pwr_dev_check_func_t) (void)
| Device check function type. More...
typedef void(* | mem_check_proc_t) (void)
| mem check process type. More...
typedef uint8_t(* | srpg_before_func_t) (void)
| SRPG before function type. More...

## 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 | { BLE_GATT_COMMON_EVT_MTU_EXCHANGE = BLE_GATT_COMMON_EVT_BASE, BLE_GATT_COMMON_EVT_PRF_REGISTER, BLE_GATT_COMMON_EVT_MAX, 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_REFUSE, TRC_PWR_BLE_TIMER_PASS, TRC_PWR_RTC_TIMER_REFUSE, TRC_PWR_RTC_TIMER_PASS, TRC_PWR_RTC1_TIMER_REFUSE, TRC_PWR_RTC1_TIMER_PASS, TRC_PWR_WDT_TIMER_REFUSE, TRC_PWR_WDT_TIMER_PASS }
| PMU Tracking. More...

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

## Detailed Description

## Macro Definition Documentation

## ◆ PMR_MGMT_FAIL

#define PMR_MGMT_FAIL 0xFF

Definition at line 66 of file gr55xx_pwr.h.

## ◆ PMR_MGMT_SUCCESS

#define PMR_MGMT_SUCCESS 0x0

PMU error code.

Definition at line 65 of file gr55xx_pwr.h.

## ◆ PWR_MGMT_BB_CHECK_FAIL

#define PWR_MGMT_BB_CHECK_FAIL 0xFE

Definition at line 67 of file gr55xx_pwr.h.

## ◆ PWR_MGMT_MODE_CHECK_FAIL

#define PWR_MGMT_MODE_CHECK_FAIL 0xFD

Definition at line 68 of file gr55xx_pwr.h.

## Typedef Documentation

## ◆ mem_check_proc_t

typedef void(* mem_check_proc_t) (void)

mem check process type.

Definition at line 160 of file gr55xx_pwr.h.

## ◆ periph_func_t

typedef void(* periph_func_t) (void)

Peripheral function type.

Definition at line 151 of file gr55xx_pwr.h.

## ◆ pwr_before_sleep_func_t

typedef void(* pwr_before_sleep_func_t) (void)

Before sleep function type.

Definition at line 154 of file gr55xx_pwr.h.

## ◆ pwr_dev_check_func_t

typedef pwr_mgmt_dev_state_t(* pwr_dev_check_func_t) (void)

Device check function type.

Definition at line 157 of file gr55xx_pwr.h.

## ◆ srpg_before_func_t

typedef uint8_t(* srpg_before_func_t) (void)

SRPG before function type.

Definition at line 163 of file gr55xx_pwr.h.

## ◆ trace_func_t

typedef void(* trace_func_t) (uint8_t)

Trace function type.

Definition at line 148 of file gr55xx_pwr.h.

## Enumeration Type Documentation

## ◆ anonymous enum

anonymous enum

PMU Tracking.

Enumerator
BLE_GATT_COMMON_EVT_MTU_EXCHANGE | MTU Exchange event.
BLE_GATT_COMMON_EVT_PRF_REGISTER | Service Register event.
BLE_GATT_COMMON_EVT_MAX |
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_REFUSE | BLE timer refuse.
TRC_PWR_BLE_TIMER_PASS | BLE timer pass.
TRC_PWR_RTC_TIMER_REFUSE | RTC timer refuse.
TRC_PWR_RTC_TIMER_PASS | RTC timer pass.
TRC_PWR_RTC1_TIMER_REFUSE | RTC timer refuse.
TRC_PWR_RTC1_TIMER_PASS | RTC timer pass.
TRC_PWR_WDT_TIMER_REFUSE | AON WDT timer refuse.
TRC_PWR_WDT_TIMER_PASS | AON WDT timer pass.

Definition at line 116 of file gr55xx_pwr.h.

## ◆ boot_mode_t

enum boot_mode_t

power manager boot type.

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

Definition at line 87 of file gr55xx_pwr.h.

## ◆ 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.

Definition at line 109 of file gr55xx_pwr.h.

## ◆ 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.

Definition at line 102 of file gr55xx_pwr.h.

## ◆ 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.

Definition at line 94 of file gr55xx_pwr.h.

## Variable Documentation

## ◆ pwr_table

pwr_table_t pwr_table[]
| extern

pwr table.