Lines Matching +full:current +full:- +full:mode
2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
42 * Pm error code: Invalid low-power mode.
60 * Pm error code: The current mode is unlocked.
96 * Pm error code: The hook for mode is not implemented.
144 …UINT32 (*suspend)(UINT32 mode); /* The device enters low-power consumption, Unlocked task scheduli…
145 …VOID (*resume)(UINT32 mode); /* The device exits from low-power consumption, Unlocked task sche…
149 /* Low-power timer related implementation functions.
150 * The function is not NULL, the low-power timer is enabled.
152 UINT32 freq; /* The frequency of the low-power timer */
153 VOID (*timerStart)(UINT64); /* Start the low-power timer and set the response period */
154 VOID (*timerStop)(VOID); /* Turn off the low-power timer */
157 …/* When the low-power timer is enabled, the function of tickLock is to turn off the system tick ti…
159 * When the low-power timer is disabled, the function of tickLock is to pause the system timer.
163 …/* When the low-power timer is enabled, the function of tickUnlock is to restart the system tick t…
164 …* When the low-power timer is disabled, the function of tickUnlock is to restore the system tick t…
170 /* Preparations before the CPU enters low-power consumption.
171 * All modes except normal mode are invoked.
174 UINT32 (*early)(UINT32 mode);
175 /* The system performs low-power recovery.
176 * All modes except normal mode are invoked.
179 VOID (*late)(UINT32 mode);
180 /* Final check before low-power consumption. */
181 VOID (*suspendCheck)(UINT32 mode);
182 /* The system enters the Normal sleep mode.
183 * In normal mode, the value cannot be NULL.
190 /* The system enters the light sleep mode.
191 * In light sleep mode, the value cannot be NULL.
198 /* The system enters the deep sleep mode.
199 * In deep sleep mode, the value cannot be NULL.
206 /* The system enters the shutdown mode.
207 * In shutdown mode, the value cannot be NULL.
211 * In shutdown mode, the value cannot be NULL.
218 * @brief Initialize system low-power frame.
221 * This API is used to initialize the system low-power frame.
236 * @brief Whether the low-power consumption condition is met.
239 * This API is used to check whether low-power consumption is met.
302 * This API is used to set the system wake-up flag.
317 * @brief Get the low-power mode of the current system.
320 * This API is used to get the low-power mode of the current system.
335 * @brief Set low-power mode.
338 * This API is used to set low-power mode.
342 * @param mode [IN] low-power mode.
349 UINT32 LOS_PmModeSet(LOS_SysSleepEnum mode);
353 * @brief Request to obtain the lock in current mode, so that the system will not enter
354 * this mode when it enters the idle task next time.
357 * This API is used to obtain the lock in current mode.
372 * @brief Request to obtain the lock in current mode, so that the system will not enter
373 * this mode when it enters the idle task next time. After the specified interval, the
377 * This API is used to obtain the delay lock in current mode.
393 * @brief Release the lock in current mode so that the next time the system enters
394 * the idle task, it will enter this mode.
397 * This API is used to release the lock in current mode.
412 * @brief Gets the current PM lock status.
415 * This API is used to Get the current PM lock status.
430 * @brief The system enters the low-power flow.
433 * This API is used to enter the system into a low-power process.