1 /***************************************************************************//**
2  * @file
3  * @brief Clock Manager Private 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 #ifndef SLI_CLOCK_MANAGER_H
32 #define SLI_CLOCK_MANAGER_H
33 
34 #include "sl_clock_manager.h"
35 #include "sl_status.h"
36 #include "em_device.h"
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 /***************************************************************************//**
43  * Set SYSCLK clock source.
44  ******************************************************************************/
45 sl_status_t sli_clock_manager_set_sysclk_source(sl_oscillator_t source);
46 
47 /***************************************************************************//**
48  * Get SYSCLK clock source.
49  ******************************************************************************/
50 sl_status_t sli_clock_manager_get_sysclk_source(sl_oscillator_t *source);
51 
52 /***************************************************************************//**
53  * When this callback function is called, it means that HFXO is ready.
54  ******************************************************************************/
55 __WEAK void sli_clock_manager_notify_hfxo_ready(void);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif // SLI_CLOCK_MANAGER_H
62