 |
MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
|
50 #if defined (__ICCARM__)
51 #pragma system_include
54 #if defined (__CC_ARM)
65 #define __I volatile const
71 #define __R volatile const
119 #define MXC_R_SIMO_VREGO_A ((uint32_t)0x00000004UL)
120 #define MXC_R_SIMO_VREGO_B ((uint32_t)0x00000008UL)
121 #define MXC_R_SIMO_VREGO_C ((uint32_t)0x0000000CUL)
122 #define MXC_R_SIMO_VREGO_D ((uint32_t)0x00000010UL)
123 #define MXC_R_SIMO_IPKA ((uint32_t)0x00000014UL)
124 #define MXC_R_SIMO_IPKB ((uint32_t)0x00000018UL)
125 #define MXC_R_SIMO_MAXTON ((uint32_t)0x0000001CUL)
126 #define MXC_R_SIMO_ILOAD_A ((uint32_t)0x00000020UL)
127 #define MXC_R_SIMO_ILOAD_B ((uint32_t)0x00000024UL)
128 #define MXC_R_SIMO_ILOAD_C ((uint32_t)0x00000028UL)
129 #define MXC_R_SIMO_ILOAD_D ((uint32_t)0x0000002CUL)
130 #define MXC_R_SIMO_BUCK_ALERT_THR_A ((uint32_t)0x00000030UL)
131 #define MXC_R_SIMO_BUCK_ALERT_THR_B ((uint32_t)0x00000034UL)
132 #define MXC_R_SIMO_BUCK_ALERT_THR_C ((uint32_t)0x00000038UL)
133 #define MXC_R_SIMO_BUCK_ALERT_THR_D ((uint32_t)0x0000003CUL)
134 #define MXC_R_SIMO_BUCK_OUT_READY ((uint32_t)0x00000040UL)
135 #define MXC_R_SIMO_ZERO_CROSS_CAL_A ((uint32_t)0x00000044UL)
136 #define MXC_R_SIMO_ZERO_CROSS_CAL_B ((uint32_t)0x00000048UL)
137 #define MXC_R_SIMO_ZERO_CROSS_CAL_C ((uint32_t)0x0000004CUL)
138 #define MXC_R_SIMO_ZERO_CROSS_CAL_D ((uint32_t)0x00000050UL)
147 #define MXC_F_SIMO_VREGO_A_VSETA_POS 0
148 #define MXC_F_SIMO_VREGO_A_VSETA ((uint32_t)(0x7FUL << MXC_F_SIMO_VREGO_A_VSETA_POS))
150 #define MXC_F_SIMO_VREGO_A_RANGEA_POS 7
151 #define MXC_F_SIMO_VREGO_A_RANGEA ((uint32_t)(0x1UL << MXC_F_SIMO_VREGO_A_RANGEA_POS))
161 #define MXC_F_SIMO_VREGO_B_VSETB_POS 0
162 #define MXC_F_SIMO_VREGO_B_VSETB ((uint32_t)(0x7FUL << MXC_F_SIMO_VREGO_B_VSETB_POS))
164 #define MXC_F_SIMO_VREGO_B_RANGEB_POS 7
165 #define MXC_F_SIMO_VREGO_B_RANGEB ((uint32_t)(0x1UL << MXC_F_SIMO_VREGO_B_RANGEB_POS))
175 #define MXC_F_SIMO_VREGO_C_VSETC_POS 0
176 #define MXC_F_SIMO_VREGO_C_VSETC ((uint32_t)(0x7FUL << MXC_F_SIMO_VREGO_C_VSETC_POS))
178 #define MXC_F_SIMO_VREGO_C_RANGEC_POS 7
179 #define MXC_F_SIMO_VREGO_C_RANGEC ((uint32_t)(0x1UL << MXC_F_SIMO_VREGO_C_RANGEC_POS))
189 #define MXC_F_SIMO_VREGO_D_VSETD_POS 0
190 #define MXC_F_SIMO_VREGO_D_VSETD ((uint32_t)(0x7FUL << MXC_F_SIMO_VREGO_D_VSETD_POS))
192 #define MXC_F_SIMO_VREGO_D_RANGED_POS 7
193 #define MXC_F_SIMO_VREGO_D_RANGED ((uint32_t)(0x1UL << MXC_F_SIMO_VREGO_D_RANGED_POS))
203 #define MXC_F_SIMO_IPKA_IPKSETA_POS 0
204 #define MXC_F_SIMO_IPKA_IPKSETA ((uint32_t)(0xFUL << MXC_F_SIMO_IPKA_IPKSETA_POS))
206 #define MXC_F_SIMO_IPKA_IPKSETB_POS 4
207 #define MXC_F_SIMO_IPKA_IPKSETB ((uint32_t)(0xFUL << MXC_F_SIMO_IPKA_IPKSETB_POS))
217 #define MXC_F_SIMO_IPKB_IPKSETC_POS 0
218 #define MXC_F_SIMO_IPKB_IPKSETC ((uint32_t)(0xFUL << MXC_F_SIMO_IPKB_IPKSETC_POS))
220 #define MXC_F_SIMO_IPKB_IPKSETD_POS 4
221 #define MXC_F_SIMO_IPKB_IPKSETD ((uint32_t)(0xFUL << MXC_F_SIMO_IPKB_IPKSETD_POS))
231 #define MXC_F_SIMO_MAXTON_TONSET_POS 0
232 #define MXC_F_SIMO_MAXTON_TONSET ((uint32_t)(0xFUL << MXC_F_SIMO_MAXTON_TONSET_POS))
242 #define MXC_F_SIMO_ILOAD_A_ILOADA_POS 0
243 #define MXC_F_SIMO_ILOAD_A_ILOADA ((uint32_t)(0xFFUL << MXC_F_SIMO_ILOAD_A_ILOADA_POS))
253 #define MXC_F_SIMO_ILOAD_B_ILOADB_POS 0
254 #define MXC_F_SIMO_ILOAD_B_ILOADB ((uint32_t)(0xFFUL << MXC_F_SIMO_ILOAD_B_ILOADB_POS))
264 #define MXC_F_SIMO_ILOAD_C_ILOADC_POS 0
265 #define MXC_F_SIMO_ILOAD_C_ILOADC ((uint32_t)(0xFFUL << MXC_F_SIMO_ILOAD_C_ILOADC_POS))
275 #define MXC_F_SIMO_ILOAD_D_ILOADD_POS 0
276 #define MXC_F_SIMO_ILOAD_D_ILOADD ((uint32_t)(0xFFUL << MXC_F_SIMO_ILOAD_D_ILOADD_POS))
286 #define MXC_F_SIMO_BUCK_ALERT_THR_A_BUCKTHRA_POS 0
287 #define MXC_F_SIMO_BUCK_ALERT_THR_A_BUCKTHRA ((uint32_t)(0xFFUL << MXC_F_SIMO_BUCK_ALERT_THR_A_BUCKTHRA_POS))
297 #define MXC_F_SIMO_BUCK_ALERT_THR_B_BUCKTHRB_POS 0
298 #define MXC_F_SIMO_BUCK_ALERT_THR_B_BUCKTHRB ((uint32_t)(0xFFUL << MXC_F_SIMO_BUCK_ALERT_THR_B_BUCKTHRB_POS))
308 #define MXC_F_SIMO_BUCK_ALERT_THR_C_BUCKTHRC_POS 0
309 #define MXC_F_SIMO_BUCK_ALERT_THR_C_BUCKTHRC ((uint32_t)(0xFFUL << MXC_F_SIMO_BUCK_ALERT_THR_C_BUCKTHRC_POS))
319 #define MXC_F_SIMO_BUCK_ALERT_THR_D_BUCKTHRD_POS 0
320 #define MXC_F_SIMO_BUCK_ALERT_THR_D_BUCKTHRD ((uint32_t)(0xFFUL << MXC_F_SIMO_BUCK_ALERT_THR_D_BUCKTHRD_POS))
330 #define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYA_POS 0
331 #define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYA ((uint32_t)(0x1UL << MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYA_POS))
333 #define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYB_POS 1
334 #define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYB ((uint32_t)(0x1UL << MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYB_POS))
336 #define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYC_POS 2
337 #define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYC ((uint32_t)(0x1UL << MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYC_POS))
339 #define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYD_POS 3
340 #define MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYD ((uint32_t)(0x1UL << MXC_F_SIMO_BUCK_OUT_READY_BUCKOUTRDYD_POS))
350 #define MXC_F_SIMO_ZERO_CROSS_CAL_A_ZXCALA_POS 0
351 #define MXC_F_SIMO_ZERO_CROSS_CAL_A_ZXCALA ((uint32_t)(0xFUL << MXC_F_SIMO_ZERO_CROSS_CAL_A_ZXCALA_POS))
361 #define MXC_F_SIMO_ZERO_CROSS_CAL_B_ZXCALB_POS 0
362 #define MXC_F_SIMO_ZERO_CROSS_CAL_B_ZXCALB ((uint32_t)(0xFUL << MXC_F_SIMO_ZERO_CROSS_CAL_B_ZXCALB_POS))
372 #define MXC_F_SIMO_ZERO_CROSS_CAL_C_ZXCALC_POS 0
373 #define MXC_F_SIMO_ZERO_CROSS_CAL_C_ZXCALC ((uint32_t)(0xFUL << MXC_F_SIMO_ZERO_CROSS_CAL_C_ZXCALC_POS))
383 #define MXC_F_SIMO_ZERO_CROSS_CAL_D_ZXCALD_POS 0
384 #define MXC_F_SIMO_ZERO_CROSS_CAL_D_ZXCALD ((uint32_t)(0xFUL << MXC_F_SIMO_ZERO_CROSS_CAL_D_ZXCALD_POS))
__IO uint32_t ipka
Definition: simo_regs.h:94
__IO uint32_t ipkb
Definition: simo_regs.h:95
__IO uint32_t buck_alert_thr_c
Definition: simo_regs.h:103
__IO uint32_t vrego_c
Definition: simo_regs.h:92
__IO uint32_t maxton
Definition: simo_regs.h:96
__IO uint32_t vrego_b
Definition: simo_regs.h:91
__I uint32_t iload_c
Definition: simo_regs.h:99
__I uint32_t iload_b
Definition: simo_regs.h:98
__I uint32_t iload_d
Definition: simo_regs.h:100
__IO uint32_t vrego_d
Definition: simo_regs.h:93
__IO uint32_t buck_alert_thr_b
Definition: simo_regs.h:102
__I uint32_t buck_out_ready
Definition: simo_regs.h:105
__I uint32_t zero_cross_cal_b
Definition: simo_regs.h:107
Definition: simo_regs.h:88
__IO uint32_t buck_alert_thr_a
Definition: simo_regs.h:101
__I uint32_t zero_cross_cal_a
Definition: simo_regs.h:106
__I uint32_t zero_cross_cal_c
Definition: simo_regs.h:108
__IO uint32_t buck_alert_thr_d
Definition: simo_regs.h:104
__I uint32_t iload_a
Definition: simo_regs.h:97
__I uint32_t zero_cross_cal_d
Definition: simo_regs.h:109
__IO uint32_t vrego_a
Definition: simo_regs.h:90