MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
si_regs.h
1 
6 /* ****************************************************************************
7  * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
8  *
9  * Permission is hereby granted, free of charge, to any person obtaining a
10  * copy of this software and associated documentation files (the "Software"),
11  * to deal in the Software without restriction, including without limitation
12  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13  * and/or sell copies of the Software, and to permit persons to whom the
14  * Software is furnished to do so, subject to the following conditions:
15  *
16  * The above copyright notice and this permission notice shall be included
17  * in all copies or substantial portions of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22  * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
23  * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25  * OTHER DEALINGS IN THE SOFTWARE.
26  *
27  * Except as contained in this notice, the name of Maxim Integrated
28  * Products, Inc. shall not be used except as stated in the Maxim Integrated
29  * Products, Inc. Branding Policy.
30  *
31  * The mere transfer of this software does not imply any licenses
32  * of trade secrets, proprietary technology, copyrights, patents,
33  * trademarks, maskwork rights, or any other form of intellectual
34  * property whatsoever. Maxim Integrated Products, Inc. retains all
35  * ownership rights.
36  *
37  *
38  *************************************************************************** */
39 
40 #ifndef _SIR_REGS_H_
41 #define _SIR_REGS_H_
42 
43 /* **** Includes **** */
44 #include <stdint.h>
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 #if defined (__ICCARM__)
51  #pragma system_include
52 #endif
53 
54 #if defined (__CC_ARM)
55  #pragma anon_unions
56 #endif
57 /*
59  If types are not defined elsewhere (CMSIS) define them here
60 */
61 #ifndef __IO
62 #define __IO volatile
63 #endif
64 #ifndef __I
65 #define __I volatile const
66 #endif
67 #ifndef __O
68 #define __O volatile
69 #endif
70 #ifndef __R
71 #define __R volatile const
72 #endif
73 
75 /* **** Definitions **** */
76 
88 typedef struct {
89  __I uint32_t sistat;
90  __I uint32_t erraddr;
91  __R uint32_t rsv_0x8_0xff[62];
92  __I uint32_t fstat;
93  __I uint32_t sfstat;
95 
96 /* Register offsets for module SIR */
103  #define MXC_R_SIR_SISTAT ((uint32_t)0x00000000UL)
104  #define MXC_R_SIR_ERRADDR ((uint32_t)0x00000004UL)
105  #define MXC_R_SIR_FSTAT ((uint32_t)0x00000100UL)
106  #define MXC_R_SIR_SFSTAT ((uint32_t)0x00000104UL)
115  #define MXC_F_SIR_SISTAT_MAGIC_POS 0
116  #define MXC_F_SIR_SISTAT_MAGIC ((uint32_t)(0x1UL << MXC_F_SIR_SISTAT_MAGIC_POS))
118  #define MXC_F_SIR_SISTAT_CRCERR_POS 1
119  #define MXC_F_SIR_SISTAT_CRCERR ((uint32_t)(0x1UL << MXC_F_SIR_SISTAT_CRCERR_POS))
131  #define MXC_F_SIR_ERRADDR_ERRADDR_POS 0
132  #define MXC_F_SIR_ERRADDR_ERRADDR ((uint32_t)(0xFFFFFFFFUL << MXC_F_SIR_ERRADDR_ERRADDR_POS))
142  #define MXC_F_SIR_FSTAT_FPU_POS 0
143  #define MXC_F_SIR_FSTAT_FPU ((uint32_t)(0x1UL << MXC_F_SIR_FSTAT_FPU_POS))
145  #define MXC_F_SIR_FSTAT_USB_POS 1
146  #define MXC_F_SIR_FSTAT_USB ((uint32_t)(0x1UL << MXC_F_SIR_FSTAT_USB_POS))
148  #define MXC_F_SIR_FSTAT_ADC_POS 2
149  #define MXC_F_SIR_FSTAT_ADC ((uint32_t)(0x1UL << MXC_F_SIR_FSTAT_ADC_POS))
151  #define MXC_F_SIR_FSTAT_XIP_POS 3
152  #define MXC_F_SIR_FSTAT_XIP ((uint32_t)(0x1UL << MXC_F_SIR_FSTAT_XIP_POS))
154  #define MXC_F_SIR_FSTAT_PBM_POS 4
155  #define MXC_F_SIR_FSTAT_PBM ((uint32_t)(0x1UL << MXC_F_SIR_FSTAT_PBM_POS))
157  #define MXC_F_SIR_FSTAT_HBC_POS 5
158  #define MXC_F_SIR_FSTAT_HBC ((uint32_t)(0x1UL << MXC_F_SIR_FSTAT_HBC_POS))
160  #define MXC_F_SIR_FSTAT_SDHC_POS 6
161  #define MXC_F_SIR_FSTAT_SDHC ((uint32_t)(0x1UL << MXC_F_SIR_FSTAT_SDHC_POS))
163  #define MXC_F_SIR_FSTAT_SMPHR_POS 7
164  #define MXC_F_SIR_FSTAT_SMPHR ((uint32_t)(0x1UL << MXC_F_SIR_FSTAT_SMPHR_POS))
166  #define MXC_F_SIR_FSTAT_SCACHE_POS 8
167  #define MXC_F_SIR_FSTAT_SCACHE ((uint32_t)(0x1UL << MXC_F_SIR_FSTAT_SCACHE_POS))
177  #define MXC_F_SIR_SFSTAT_TRNG_POS 2
178  #define MXC_F_SIR_SFSTAT_TRNG ((uint32_t)(0x1UL << MXC_F_SIR_SFSTAT_TRNG_POS))
180  #define MXC_F_SIR_SFSTAT_AES_POS 3
181  #define MXC_F_SIR_SFSTAT_AES ((uint32_t)(0x1UL << MXC_F_SIR_SFSTAT_AES_POS))
183  #define MXC_F_SIR_SFSTAT_SHA_POS 4
184  #define MXC_F_SIR_SFSTAT_SHA ((uint32_t)(0x1UL << MXC_F_SIR_SFSTAT_SHA_POS))
186  #define MXC_F_SIR_SFSTAT_MAA_POS 5
187  #define MXC_F_SIR_SFSTAT_MAA ((uint32_t)(0x1UL << MXC_F_SIR_SFSTAT_MAA_POS))
191 #ifdef __cplusplus
192 }
193 #endif
194 
195 #endif /* _SIR_REGS_H_ */
mxc_sir_regs_t
Definition: si_regs.h:88
mxc_sir_regs_t::sistat
__I uint32_t sistat
Definition: si_regs.h:89
mxc_sir_regs_t::sfstat
__I uint32_t sfstat
Definition: si_regs.h:93
mxc_sir_regs_t::erraddr
__I uint32_t erraddr
Definition: si_regs.h:90
mxc_sir_regs_t::fstat
__I uint32_t fstat
Definition: si_regs.h:92