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

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(* io_dump_func_t) (void)
 function registered to dump io configuration. More...
 
typedef void(* mem_check_proc_t) (void)
 mem check process 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  {
  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,
  BIT_HCI_SEND_2_CONTROLLER,
  BIT_HAL_XQSPI_SET_XIP_PRESENT_STATUS,
  BIT_LL_XQSPI_INIT,
  BIT_HAL_EXFLASH_WRITE,
  BIT_HAL_EXFLASH_ERASE,
  BIT_HAL_EXFLASH_READ,
  BIT_BLE_BM_SET_SEC_INFO,
  BIT_KE_TASK_SCHEDULE
}
 PMU Tracking. More...
 

Variables

pwr_table_t pwr_table []
 pwr table. More...
 

Detailed Description

Typedef Documentation

◆ io_dump_func_t

typedef void(* io_dump_func_t) (void)

function registered to dump io configuration.

Definition at line 145 of file gr55xx_pwr.h.

◆ mem_check_proc_t

typedef void(* mem_check_proc_t) (void)

mem check process type.

Definition at line 148 of file gr55xx_pwr.h.

◆ periph_func_t

typedef void(* periph_func_t) (void)

Peripheral function type.

Definition at line 136 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 139 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 142 of file gr55xx_pwr.h.

◆ trace_func_t

typedef void(* trace_func_t) (uint8_t)

Trace function type.

Definition at line 133 of file gr55xx_pwr.h.

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.

BIT_HCI_SEND_2_CONTROLLER 
BIT_HAL_XQSPI_SET_XIP_PRESENT_STATUS 
BIT_LL_XQSPI_INIT 
BIT_HAL_EXFLASH_WRITE 
BIT_HAL_EXFLASH_ERASE 
BIT_HAL_EXFLASH_READ 
BIT_BLE_BM_SET_SEC_INFO 
BIT_KE_TASK_SCHEDULE 

Definition at line 108 of file gr55xx_pwr.h.

◆ boot_mode_t

power manager boot type.

Enumerator
COLD_BOOT 

Cold boot state.

WARM_BOOT 

Warm boot state.

Definition at line 79 of file gr55xx_pwr.h.

◆ 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 101 of file gr55xx_pwr.h.

◆ pwr_mgmt_dev_state_t

power manager device work state.

Enumerator
DEVICE_BUSY 

Device busy state.

DEVICE_IDLE 

Device idle state.

Definition at line 94 of file gr55xx_pwr.h.

◆ 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 86 of file gr55xx_pwr.h.

Variable Documentation

◆ pwr_table

pwr_table_t pwr_table[]
extern

pwr table.