1 /**
2  * @file       simo_me14.c
3  * @brief      This file contains the function implementations for the
4  *             SIMO peripheral module.
5  */
6 
7 /******************************************************************************
8  *
9  * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
10  * Analog Devices, Inc.),
11  * Copyright (C) 2023-2024 Analog Devices, Inc.
12  *
13  * Licensed under the Apache License, Version 2.0 (the "License");
14  * you may not use this file except in compliance with the License.
15  * You may obtain a copy of the License at
16  *
17  *     http://www.apache.org/licenses/LICENSE-2.0
18  *
19  * Unless required by applicable law or agreed to in writing, software
20  * distributed under the License is distributed on an "AS IS" BASIS,
21  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22  * See the License for the specific language governing permissions and
23  * limitations under the License.
24  *
25  ******************************************************************************/
26 
27 /* **** Includes **** */
28 #include <string.h>
29 #include <stdio.h>
30 #include "mxc_device.h"
31 #include "mxc_assert.h"
32 #include "mxc_sys.h"
33 #include "simo_reva.h"
34 
35 /**
36  * @ingroup simo
37  * @{
38  */
39 
40 /* **** Definitions **** */
41 
42 /* **** Globals **** */
43 
44 /* **** Functions **** */
45 // All Voltages are in mV
46 
MXC_SIMO_SetVregO_A(uint32_t voltage)47 void MXC_SIMO_SetVregO_A(uint32_t voltage)
48 {
49     MXC_SIMO_RevA_SetVregO_A((mxc_simo_reva_regs_t *)MXC_SIMO, voltage);
50 }
51 
MXC_SIMO_SetVregO_B(uint32_t voltage)52 void MXC_SIMO_SetVregO_B(uint32_t voltage)
53 {
54     MXC_SIMO_RevA_SetVregO_B((mxc_simo_reva_regs_t *)MXC_SIMO, voltage);
55 }
56 
MXC_SIMO_SetVregO_C(uint32_t voltage)57 void MXC_SIMO_SetVregO_C(uint32_t voltage)
58 {
59     MXC_SIMO_RevA_SetVregO_C((mxc_simo_reva_regs_t *)MXC_SIMO, voltage);
60 }
61 
MXC_SIMO_SetVregO_D(uint32_t voltage)62 void MXC_SIMO_SetVregO_D(uint32_t voltage)
63 {
64     MXC_SIMO_RevA_SetVregO_D((mxc_simo_reva_regs_t *)MXC_SIMO, voltage);
65 }
66 
MXC_SIMO_GetOutReadyA(void)67 uint32_t MXC_SIMO_GetOutReadyA(void)
68 {
69     return MXC_SIMO_RevA_GetOutReadyA((mxc_simo_reva_regs_t *)MXC_SIMO);
70 }
71 
MXC_SIMO_GetOutReadyB(void)72 uint32_t MXC_SIMO_GetOutReadyB(void)
73 {
74     return MXC_SIMO_RevA_GetOutReadyB((mxc_simo_reva_regs_t *)MXC_SIMO);
75 }
76 
MXC_SIMO_GetOutReadyC(void)77 uint32_t MXC_SIMO_GetOutReadyC(void)
78 {
79     return MXC_SIMO_RevA_GetOutReadyC((mxc_simo_reva_regs_t *)MXC_SIMO);
80 }
81 
MXC_SIMO_GetOutReadyD(void)82 uint32_t MXC_SIMO_GetOutReadyD(void)
83 {
84     return MXC_SIMO_RevA_GetOutReadyD((mxc_simo_reva_regs_t *)MXC_SIMO);
85 }
86 
87 /**@} end of group simo */
88