DLPS Platform Exported Types

group DLPS_PLATFORM_Exported_Types

Typedefs

typedef enum PMCheckResult PMCheckResult

This enum is used for DLPS callback check.

typedef PMCheckResult (*DLPSEnterCheckFunc)()

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

typedef void (*DLPSHWControlFunc)()

This callback function is used for any module which needs to be executed in different power stages.

Enums

enum PlatformExcludedHandleType

Values:

enumerator PLATFORM_PM_EXCLUDED_TIMER

Timer exclude type for power manager

enumerator PLATFORM_PM_EXCLUDED_TASK

Task exclude type for power manager

enumerator PLATFORM_PM_EXCLUDED_TYPE_MAX

Max exclude type number for power manager

enum PMCheckResult

This enum is used for DLPS callback check.

Values:

enumerator PM_CHECK_PEND

Callback check failed, but restart DLPS check flow.

enumerator PM_CHECK_FAIL

Callback check failed, and CPU enters sleep mode.

enumerator PM_CHECK_PASS

Callback check passed, and continue the other check callback functions which have been registered before.

enum BtmacPowerMode

Values:

enumerator BTMAC_DEEP_SLEEP

BT deep sleep mode, DSM.

enumerator BTMAC_ACTIVE

BT active mode.

enum PlatformPMStage

PlatformPMStage struct.

Values:

enumerator PLATFORM_PM_CHECK

Check stage of power manager.

enumerator PLATFORM_PM_STORE

Store stage of power manager.

enumerator PLATFORM_PM_ENTER

Enter stage of power manager.

enumerator PLATFORM_PM_EXIT

Exit stage of power manager.

enumerator PLATFORM_PM_RESTORE

Restore stage of power manager.

enumerator PLATFORM_PM_PEND

Pend stage of power manager.

enumerator PLATFORM_PM_STAGE_MAX

Max stage number of power manager.

enum PlatformPowerMode

PlatformPowerMode struct.

Values:

enumerator PLATFORM_POWERDOWN

Power down mode, can be woken up only by PAD (debounce disable) and LPC.

enumerator PLATFORM_DLPS_PFM

DLPS PFM mode, deep low power sleep state.

enumerator PLATFORM_ACTIVE

Active mode, system will keep in active mode.

enum PlatformWakeupReason

Values:

enumerator PLATFORM_PM_WAKEUP_UNKNOWN

Unknown wake up.

enumerator PLATFORM_PM_WAKEUP_USER

User wake up, not used.

enumerator PLATFORM_PM_WAKEUP_OS

OS wake up, not used.

enumerator PLATFORM_PM_WAKEUP_PRE_SYSTEM_LEVEL

Pre power module wake up.

enumerator PLATFORM_PM_WAKEUP_PF_RTC

Platform RTC wake up.

enumerator PLATFORM_PM_WAKEUP_RTC

User RTC wake up.

enumerator PLATFORM_PM_WAKEUP_GPIO

GPIO wake up.

enumerator PLATFORM_PM_WAKEUP_DEF_MAX

Max wake up reason number.

enum PlatformPowerModeErrorCode

Values:

enumerator PLATFORM_PM_ERROR_UNKNOWN

Unknown error.

enumerator PLATFORM_PM_ERROR_POWER_MODE

Power mode is not low power mode.

enumerator PLATFORM_PM_ERROR_DISABLE_DLPS_TIME

Vendor allow sleep time is not timeout.

enumerator PLATFORM_PM_ERROR_32K_CHECK_LOCK

32k clock check fail.

enumerator PLATFORM_PM_ERROR_LOG_DMA_NOT_IDLE

Log DMA is not idle.

enumerator PLATFORM_PM_ERROR_CALLBACK_CHECK

Check callback function return false.

enumerator PLATFORM_PM_ERROR_INTERRUPT_OCCURRED

Interrupt occurred in check flow.

enumerator PLATFORM_PM_ERROR_WAKEUP_TIME

Next wake-up time interval is too small.

enumerator PLATFORM_PM_ERROR_DATA_UART

Data uart is busy.

enumerator PLATFORM_PM_ERROR_OCCUPIED_TIME

Power manager request occupied source.

enum DATARAM_SHUTDOWN_LEVEL

Values:

enumerator NO_DATARAM_SHUTDOWN

No data ram shut down.

enumerator LAST_4K_DATARAM_SHUTDOWN

Last 1 blocks of data ram shutdown: 4k.

enumerator LAST_8K_DATARAM_SHUTDOWN

Last 2 blocks of data ram shutdown: 4k + 4k.

enumerator MIDDLE_32K_DATARAM_SHUTDOWN

Last 3 blocks of data ram: 32k shutdown, last 8k retention.

enumerator LAST_40K_DATARAM_SHUTDOWN

Last 3 blocks of data ram shutdown: 32k + 4k + 4k.

enumerator LAST_72K_DATARAM_SHUTDOWN

Last 4 blocks of data ram shutdown:32k + 32k + 4k + 4k.