1 /***************************************************************************//**
2  * @file
3  * @brief Power Manager execution modes API definition.
4  *******************************************************************************
5  * # License
6  * <b>Copyright 2023 Silicon Laboratories Inc. www.silabs.com</b>
7  *******************************************************************************
8  *
9  * SPDX-License-Identifier: Zlib
10  *
11  * The licensor of this software is Silicon Laboratories Inc.
12  *
13  * This software is provided 'as-is', without any express or implied
14  * warranty. In no event will the authors be held liable for any damages
15  * arising from the use of this software.
16  *
17  * Permission is granted to anyone to use this software for any purpose,
18  * including commercial applications, and to alter it and redistribute it
19  * freely, subject to the following restrictions:
20  *
21  * 1. The origin of this software must not be misrepresented; you must not
22  *    claim that you wrote the original software. If you use this software
23  *    in a product, an acknowledgment in the product documentation would be
24  *    appreciated but is not required.
25  * 2. Altered source versions must be plainly marked as such, and must not be
26  *    misrepresented as being the original software.
27  * 3. This notice may not be removed or altered from any source distribution.
28  *
29  ******************************************************************************/
30 
31 #include "sl_power_manager_config.h"
32 #include <stdint.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /*******************************************************************************
39  *****************************   PROTOTYPES   **********************************
40  ******************************************************************************/
41 
42 #if defined(SL_POWER_MANAGER_EXECUTION_MODES_FEATURE_EN) && (SL_POWER_MANAGER_EXECUTION_MODES_FEATURE_EN == 1)
43 
44 /*******************************************************************************
45  *****************************   HAL PROTOTYPES   ******************************
46  ******************************************************************************/
47 
48 /***************************************************************************//**
49  * Initializes execution mode feature.
50  *
51  * @note FOR INTERNAL USE ONLY.
52  ******************************************************************************/
53 void sli_power_manager_executions_modes_hal_init(void);
54 
55 /***************************************************************************//**
56  * Applies performance mode execution.
57  *
58  * @note FOR INTERNAL USE ONLY.
59  ******************************************************************************/
60 SL_CODE_CLASSIFY(SL_CODE_COMPONENT_POWER_MANAGER, SL_CODE_CLASS_TIME_CRITICAL)
61 void sli_power_manager_hal_apply_performance_mode(void);
62 
63 /***************************************************************************//**
64  * Applies standard mode execution.
65  *
66  * @note FOR INTERNAL USE ONLY.
67  ******************************************************************************/
68 SL_CODE_CLASSIFY(SL_CODE_COMPONENT_POWER_MANAGER, SL_CODE_CLASS_TIME_CRITICAL)
69 void sli_power_manager_hal_apply_standard_mode(void);
70 #endif // (SL_POWER_MANAGER_EXECUTION_MODES_FEATURE_EN)
71 
72 #ifdef __cplusplus
73 }
74 #endif
75