MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
simo_regs.h
Go to the documentation of this file.
1
8/******************************************************************************
9 *
10 * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
11 * Analog Devices, Inc.),
12 * Copyright (C) 2023-2024 Analog Devices, Inc.
13 *
14 * Licensed under the Apache License, Version 2.0 (the "License");
15 * you may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at
17 *
18 * http://www.apache.org/licenses/LICENSE-2.0
19 *
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
25 *
26 ******************************************************************************/
27
28#ifndef LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32665_INCLUDE_SIMO_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32665_INCLUDE_SIMO_REGS_H_
30
31/* **** Includes **** */
32#include <stdint.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38#if defined (__ICCARM__)
39 #pragma system_include
40#endif
41
42#if defined (__CC_ARM)
43 #pragma anon_unions
44#endif
46/*
47 If types are not defined elsewhere (CMSIS) define them here
48*/
49#ifndef __IO
50#define __IO volatile
51#endif
52#ifndef __I
53#define __I volatile const
54#endif
55#ifndef __O
56#define __O volatile
57#endif
58#ifndef __R
59#define __R volatile const
60#endif
62
63/* **** Definitions **** */
64
76typedef struct {
77 __R uint32_t rsv_0x0;
78 __IO uint32_t vrego_a;
79 __IO uint32_t vrego_b;
80 __IO uint32_t vrego_c;
81 __IO uint32_t vrego_d;
82 __IO uint32_t ipka;
83 __IO uint32_t ipkb;
84 __IO uint32_t maxton;
85 __I uint32_t iload_a;
86 __I uint32_t iload_b;
87 __I uint32_t iload_c;
88 __I uint32_t iload_d;
89 __IO uint32_t buck_alert_thr_a;
90 __IO uint32_t buck_alert_thr_b;
91 __IO uint32_t buck_alert_thr_c;
92 __IO uint32_t buck_alert_thr_d;
93 __I uint32_t buck_out_ready;
94 __I uint32_t zero_cross_cal_a;
95 __I uint32_t zero_cross_cal_b;
96 __I uint32_t zero_cross_cal_c;
97 __I uint32_t zero_cross_cal_d;
99
100/* Register offsets for module SIMO */
107#define MXC_R_SIMO_VREGO_A ((uint32_t)0x00000004UL)
108#define MXC_R_SIMO_VREGO_B ((uint32_t)0x00000008UL)
109#define MXC_R_SIMO_VREGO_C ((uint32_t)0x0000000CUL)
110#define MXC_R_SIMO_VREGO_D ((uint32_t)0x00000010UL)
111#define MXC_R_SIMO_IPKA ((uint32_t)0x00000014UL)
112#define MXC_R_SIMO_IPKB ((uint32_t)0x00000018UL)
113#define MXC_R_SIMO_MAXTON ((uint32_t)0x0000001CUL)
114#define MXC_R_SIMO_ILOAD_A ((uint32_t)0x00000020UL)
115#define MXC_R_SIMO_ILOAD_B ((uint32_t)0x00000024UL)
116#define MXC_R_SIMO_ILOAD_C ((uint32_t)0x00000028UL)
117#define MXC_R_SIMO_ILOAD_D ((uint32_t)0x0000002CUL)
118#define MXC_R_SIMO_BUCK_ALERT_THR_A ((uint32_t)0x00000030UL)
119#define MXC_R_SIMO_BUCK_ALERT_THR_B ((uint32_t)0x00000034UL)
120#define MXC_R_SIMO_BUCK_ALERT_THR_C ((uint32_t)0x00000038UL)
121#define MXC_R_SIMO_BUCK_ALERT_THR_D ((uint32_t)0x0000003CUL)
122#define MXC_R_SIMO_BUCK_OUT_READY ((uint32_t)0x00000040UL)
123#define MXC_R_SIMO_ZERO_CROSS_CAL_A ((uint32_t)0x00000044UL)
124#define MXC_R_SIMO_ZERO_CROSS_CAL_B ((uint32_t)0x00000048UL)
125#define MXC_R_SIMO_ZERO_CROSS_CAL_C ((uint32_t)0x0000004CUL)
126#define MXC_R_SIMO_ZERO_CROSS_CAL_D ((uint32_t)0x00000050UL)
135#define MXC_F_SIMO_VREGO_A_VSETA_POS 0
136#define MXC_F_SIMO_VREGO_A_VSETA ((uint32_t)(0x7FUL << MXC_F_SIMO_VREGO_A_VSETA_POS))
138#define MXC_F_SIMO_VREGO_A_RANGEA_POS 7
139#define MXC_F_SIMO_VREGO_A_RANGEA ((uint32_t)(0x1UL << MXC_F_SIMO_VREGO_A_RANGEA_POS))
149#define MXC_F_SIMO_VREGO_B_VSETB_POS 0
150#define MXC_F_SIMO_VREGO_B_VSETB ((uint32_t)(0x7FUL << MXC_F_SIMO_VREGO_B_VSETB_POS))
152#define MXC_F_SIMO_VREGO_B_RANGEB_POS 7
153#define MXC_F_SIMO_VREGO_B_RANGEB ((uint32_t)(0x1UL << MXC_F_SIMO_VREGO_B_RANGEB_POS))
163#define MXC_F_SIMO_VREGO_C_VSETC_POS 0
164#define MXC_F_SIMO_VREGO_C_VSETC ((uint32_t)(0x7FUL << MXC_F_SIMO_VREGO_C_VSETC_POS))
166#define MXC_F_SIMO_VREGO_C_RANGEC_POS 7
167#define MXC_F_SIMO_VREGO_C_RANGEC ((uint32_t)(0x1UL << MXC_F_SIMO_VREGO_C_RANGEC_POS))
177#define MXC_F_SIMO_VREGO_D_VSETD_POS 0
178#define MXC_F_SIMO_VREGO_D_VSETD ((uint32_t)(0x7FUL << MXC_F_SIMO_VREGO_D_VSETD_POS))
180#define MXC_F_SIMO_VREGO_D_RANGED_POS 7
181#define MXC_F_SIMO_VREGO_D_RANGED ((uint32_t)(0x1UL << MXC_F_SIMO_VREGO_D_RANGED_POS))
191#define MXC_F_SIMO_IPKA_IPKSETA_POS 0
192#define MXC_F_SIMO_IPKA_IPKSETA ((uint32_t)(0xFUL << MXC_F_SIMO_IPKA_IPKSETA_POS))
194#define MXC_F_SIMO_IPKA_IPKSETB_POS 4
195#define MXC_F_SIMO_IPKA_IPKSETB ((uint32_t)(0xFUL << MXC_F_SIMO_IPKA_IPKSETB_POS))
205#define MXC_F_SIMO_IPKB_IPKSETC_POS 0
206#define MXC_F_SIMO_IPKB_IPKSETC ((uint32_t)(0xFUL << MXC_F_SIMO_IPKB_IPKSETC_POS))
208#define MXC_F_SIMO_IPKB_IPKSETD_POS 4
209#define MXC_F_SIMO_IPKB_IPKSETD ((uint32_t)(0xFUL << MXC_F_SIMO_IPKB_IPKSETD_POS))
219#define MXC_F_SIMO_MAXTON_TONSET_POS 0
220#define MXC_F_SIMO_MAXTON_TONSET ((uint32_t)(0xFUL << MXC_F_SIMO_MAXTON_TONSET_POS))
230#define MXC_F_SIMO_ILOAD_A_ILOADA_POS 0
231#define MXC_F_SIMO_ILOAD_A_ILOADA ((uint32_t)(0xFFUL << MXC_F_SIMO_ILOAD_A_ILOADA_POS))
241#define MXC_F_SIMO_ILOAD_B_ILOADB_POS 0
242#define MXC_F_SIMO_ILOAD_B_ILOADB ((uint32_t)(0xFFUL << MXC_F_SIMO_ILOAD_B_ILOADB_POS))
252#define MXC_F_SIMO_ILOAD_C_ILOADC_POS 0
253#define MXC_F_SIMO_ILOAD_C_ILOADC ((uint32_t)(0xFFUL << MXC_F_SIMO_ILOAD_C_ILOADC_POS))
263#define MXC_F_SIMO_ILOAD_D_ILOADD_POS 0
264#define MXC_F_SIMO_ILOAD_D_ILOADD ((uint32_t)(0xFFUL << MXC_F_SIMO_ILOAD_D_ILOADD_POS))
274#define MXC_F_SIMO_BUCK_ALERT_THR_A_BUCKTHRA_POS 0
275#define MXC_F_SIMO_BUCK_ALERT_THR_A_BUCKTHRA ((uint32_t)(0xFFUL << MXC_F_SIMO_BUCK_ALERT_THR_A_BUCKTHRA_POS))
285#define MXC_F_SIMO_BUCK_ALERT_THR_B_BUCKTHRB_POS 0
286#define MXC_F_SIMO_BUCK_ALERT_THR_B_BUCKTHRB ((uint32_t)(0xFFUL << MXC_F_SIMO_BUCK_ALERT_THR_B_BUCKTHRB_POS))
296#define MXC_F_SIMO_BUCK_ALERT_THR_C_BUCKTHRC_POS 0
297#define MXC_F_SIMO_BUCK_ALERT_THR_C_BUCKTHRC ((uint32_t)(0xFFUL << MXC_F_SIMO_BUCK_ALERT_THR_C_BUCKTHRC_POS))
307#define MXC_F_SIMO_BUCK_ALERT_THR_D_BUCKTHRD_POS 0
308#define MXC_F_SIMO_BUCK_ALERT_THR_D_BUCKTHRD ((uint32_t)(0xFFUL << MXC_F_SIMO_BUCK_ALERT_THR_D_BUCKTHRD_POS))
318#define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYA_POS 0
319#define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYA ((uint32_t)(0x1UL << MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYA_POS))
321#define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYB_POS 1
322#define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYB ((uint32_t)(0x1UL << MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYB_POS))
324#define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYC_POS 2
325#define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYC ((uint32_t)(0x1UL << MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYC_POS))
327#define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYD_POS 3
328#define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYD ((uint32_t)(0x1UL << MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYD_POS))
338#define MXC_F_SIMO_ZERO_CROSS_CAL_A_ZXCALA_POS 0
339#define MXC_F_SIMO_ZERO_CROSS_CAL_A_ZXCALA ((uint32_t)(0xFUL << MXC_F_SIMO_ZERO_CROSS_CAL_A_ZXCALA_POS))
349#define MXC_F_SIMO_ZERO_CROSS_CAL_B_ZXCALB_POS 0
350#define MXC_F_SIMO_ZERO_CROSS_CAL_B_ZXCALB ((uint32_t)(0xFUL << MXC_F_SIMO_ZERO_CROSS_CAL_B_ZXCALB_POS))
360#define MXC_F_SIMO_ZERO_CROSS_CAL_C_ZXCALC_POS 0
361#define MXC_F_SIMO_ZERO_CROSS_CAL_C_ZXCALC ((uint32_t)(0xFUL << MXC_F_SIMO_ZERO_CROSS_CAL_C_ZXCALC_POS))
371#define MXC_F_SIMO_ZERO_CROSS_CAL_D_ZXCALD_POS 0
372#define MXC_F_SIMO_ZERO_CROSS_CAL_D_ZXCALD ((uint32_t)(0xFUL << MXC_F_SIMO_ZERO_CROSS_CAL_D_ZXCALD_POS))
376#ifdef __cplusplus
377}
378#endif
379
380#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32665_INCLUDE_SIMO_REGS_H_
__IO uint32_t vrego_d
Definition: simo_regs.h:81
__IO uint32_t buck_alert_thr_b
Definition: simo_regs.h:90
__I uint32_t iload_b
Definition: simo_regs.h:86
__IO uint32_t buck_alert_thr_d
Definition: simo_regs.h:92
__IO uint32_t ipkb
Definition: simo_regs.h:83
__I uint32_t zero_cross_cal_a
Definition: simo_regs.h:94
__IO uint32_t maxton
Definition: simo_regs.h:84
__IO uint32_t vrego_a
Definition: simo_regs.h:78
__I uint32_t iload_a
Definition: simo_regs.h:85
__I uint32_t zero_cross_cal_c
Definition: simo_regs.h:96
__I uint32_t zero_cross_cal_b
Definition: simo_regs.h:95
__I uint32_t buck_out_ready
Definition: simo_regs.h:93
__IO uint32_t vrego_c
Definition: simo_regs.h:80
__IO uint32_t vrego_b
Definition: simo_regs.h:79
__IO uint32_t buck_alert_thr_a
Definition: simo_regs.h:89
__I uint32_t zero_cross_cal_d
Definition: simo_regs.h:97
__I uint32_t iload_c
Definition: simo_regs.h:87
__IO uint32_t ipka
Definition: simo_regs.h:82
__IO uint32_t buck_alert_thr_c
Definition: simo_regs.h:91
__I uint32_t iload_d
Definition: simo_regs.h:88
Definition: simo_regs.h:76