1 /**
2  * @file    simo.h
3  * @brief   SIMO function prototypes and data types.
4  */
5 
6 /******************************************************************************
7  *
8  * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
9  * Analog Devices, Inc.),
10  * Copyright (C) 2023-2024 Analog Devices, Inc.
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  *     http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  *
24  ******************************************************************************/
25 
26 /* Define to prevent redundant inclusion */
27 #ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32665_SIMO_H_
28 #define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32665_SIMO_H_
29 
30 /* **** Includes **** */
31 #include "mxc_device.h"
32 #include "simo_regs.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /* **** Definitions **** */
39 #define VREGO_LOW_RANGE_BASE 500
40 #define VREGO_HIGH_RANGE_BASE 600
41 
42 /* **** Function Prototypes **** */
43 void MXC_SIMO_SetVregO_A(uint32_t voltage);
44 void MXC_SIMO_SetVregO_B(uint32_t voltage);
45 void MXC_SIMO_SetVregO_C(uint32_t voltage);
46 void MXC_SIMO_SetVregO_D(uint32_t voltage);
47 
48 uint32_t MXC_SIMO_GetOutReadyA(void);
49 uint32_t MXC_SIMO_GetOutReadyB(void);
50 uint32_t MXC_SIMO_GetOutReadyC(void);
51 uint32_t MXC_SIMO_GetOutReadyD(void);
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif // LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32665_SIMO_H_
58