Power Manager Transport Layer Exported Variables

group PM_Exported_Variables

Defines

POWER_POWEROFF_MODE

Typedefs

typedef struct t_pm_cpu_handle T_PM_CPU_HANDLE
typedef bool (*POWERCheckFunc)()

This CB is used for any module which needs to be checked before entering DLPS.

typedef void (*POWERStageFunc)()

This CB is used for any module which needs to control the hw stage entering or after exiting from DLPS.

typedef bool (*PMDVFSCheckFunc)(void)

This CB is used for any module which needs to control the hw before entering or after exiting from DLPS.

typedef void (*PMCPUFREQCbFunc)(uint32_t)

This CB is used for any module which cpu freq was changed.

Enums

enum PMErrorCode

Values:

enumerator PM_SUCCESS
enumerator PM_DVFS_BUSY
enumerator PM_DVFS_VOLTAGE_FAIL
enumerator PM_DVFS_CONDITION_FAIL
enumerator PM_DVFS_SRAM_FAIL
enumerator PM_DVFS_NOT_SUPPORT
enum BtPowerMode

Values:

enumerator BTPOWER_DEEP_SLEEP

Deep sleep

enumerator BTPOWER_ACTIVE

Active

enum POWERStage

POWER STAGE struct.

Values:

enumerator POWER_STAGE_STORE
enumerator POWER_STAGE_RESTORE
enum POWERMode

LPSMode struct.

Values:

enumerator POWER_SHIP_MODE
enumerator POWER_POWERDOWN_MODE

Power down

enumerator POWER_DLPS_MODE

DLPS

enumerator POWER_LPS_MODE

LPS

enumerator POWER_ACTIVE_MODE

Active

enumerator POWER_MODE_MAX
enum POWERDlpsMode

Values:

enumerator POWER_DLPS_PFM_MODE

default one

enumerator POWER_DLPS_RET_MODE
enum PowerModeErrorCode

Values:

enumerator PM_ERROR_UNKNOWN
enumerator PM_ERROR_POWER_MODE
enumerator PM_ERROR_DISABLE_DLPS_TIME
enumerator PM_ERROR_32K_CHECK_LOCK
enumerator PM_ERROR_LOG_DMA_NOT_IDLE
enumerator PM_ERROR_CALLBACK_CHECK
enumerator PM_ERROR_INTERRUPT_OCCURRED
enumerator PM_ERROR_WAKEUP_TIME
enumerator PM_ERROR_FREE_BLOCK_STORE
enumerator PM_ERROR_BUFFER_PRE_ALLOCATE
enum PowerModeExcludedHandleType

Values:

enumerator PM_EXCLUDED_TIMER
enumerator PM_EXCLUDED_TASK
enumerator PM_EXCLUDED_TYPE_MAX
struct t_pm_cpu_handle

Public Members

uint32_t cpu_freq