EFR32 Blue Gecko 12 Software Documentation  efr32bg12-doc-5.1.2
efr32bg12p_cryotimer.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t PERIODSEL;
45  __IM uint32_t CNT;
46  __IOM uint32_t EM4WUEN;
47  __IM uint32_t IF;
48  __IOM uint32_t IFS;
49  __IOM uint32_t IFC;
50  __IOM uint32_t IEN;
53 /**************************************************************************/
58 /* Bit fields for CRYOTIMER CTRL */
59 #define _CRYOTIMER_CTRL_RESETVALUE 0x00000000UL
60 #define _CRYOTIMER_CTRL_MASK 0x000000EFUL
61 #define CRYOTIMER_CTRL_EN (0x1UL << 0)
62 #define _CRYOTIMER_CTRL_EN_SHIFT 0
63 #define _CRYOTIMER_CTRL_EN_MASK 0x1UL
64 #define _CRYOTIMER_CTRL_EN_DEFAULT 0x00000000UL
65 #define CRYOTIMER_CTRL_EN_DEFAULT (_CRYOTIMER_CTRL_EN_DEFAULT << 0)
66 #define CRYOTIMER_CTRL_DEBUGRUN (0x1UL << 1)
67 #define _CRYOTIMER_CTRL_DEBUGRUN_SHIFT 1
68 #define _CRYOTIMER_CTRL_DEBUGRUN_MASK 0x2UL
69 #define _CRYOTIMER_CTRL_DEBUGRUN_DEFAULT 0x00000000UL
70 #define CRYOTIMER_CTRL_DEBUGRUN_DEFAULT (_CRYOTIMER_CTRL_DEBUGRUN_DEFAULT << 1)
71 #define _CRYOTIMER_CTRL_OSCSEL_SHIFT 2
72 #define _CRYOTIMER_CTRL_OSCSEL_MASK 0xCUL
73 #define _CRYOTIMER_CTRL_OSCSEL_DEFAULT 0x00000000UL
74 #define _CRYOTIMER_CTRL_OSCSEL_DISABLED 0x00000000UL
75 #define _CRYOTIMER_CTRL_OSCSEL_LFRCO 0x00000001UL
76 #define _CRYOTIMER_CTRL_OSCSEL_LFXO 0x00000002UL
77 #define _CRYOTIMER_CTRL_OSCSEL_ULFRCO 0x00000003UL
78 #define CRYOTIMER_CTRL_OSCSEL_DEFAULT (_CRYOTIMER_CTRL_OSCSEL_DEFAULT << 2)
79 #define CRYOTIMER_CTRL_OSCSEL_DISABLED (_CRYOTIMER_CTRL_OSCSEL_DISABLED << 2)
80 #define CRYOTIMER_CTRL_OSCSEL_LFRCO (_CRYOTIMER_CTRL_OSCSEL_LFRCO << 2)
81 #define CRYOTIMER_CTRL_OSCSEL_LFXO (_CRYOTIMER_CTRL_OSCSEL_LFXO << 2)
82 #define CRYOTIMER_CTRL_OSCSEL_ULFRCO (_CRYOTIMER_CTRL_OSCSEL_ULFRCO << 2)
83 #define _CRYOTIMER_CTRL_PRESC_SHIFT 5
84 #define _CRYOTIMER_CTRL_PRESC_MASK 0xE0UL
85 #define _CRYOTIMER_CTRL_PRESC_DEFAULT 0x00000000UL
86 #define _CRYOTIMER_CTRL_PRESC_DIV1 0x00000000UL
87 #define _CRYOTIMER_CTRL_PRESC_DIV2 0x00000001UL
88 #define _CRYOTIMER_CTRL_PRESC_DIV4 0x00000002UL
89 #define _CRYOTIMER_CTRL_PRESC_DIV8 0x00000003UL
90 #define _CRYOTIMER_CTRL_PRESC_DIV16 0x00000004UL
91 #define _CRYOTIMER_CTRL_PRESC_DIV32 0x00000005UL
92 #define _CRYOTIMER_CTRL_PRESC_DIV64 0x00000006UL
93 #define _CRYOTIMER_CTRL_PRESC_DIV128 0x00000007UL
94 #define CRYOTIMER_CTRL_PRESC_DEFAULT (_CRYOTIMER_CTRL_PRESC_DEFAULT << 5)
95 #define CRYOTIMER_CTRL_PRESC_DIV1 (_CRYOTIMER_CTRL_PRESC_DIV1 << 5)
96 #define CRYOTIMER_CTRL_PRESC_DIV2 (_CRYOTIMER_CTRL_PRESC_DIV2 << 5)
97 #define CRYOTIMER_CTRL_PRESC_DIV4 (_CRYOTIMER_CTRL_PRESC_DIV4 << 5)
98 #define CRYOTIMER_CTRL_PRESC_DIV8 (_CRYOTIMER_CTRL_PRESC_DIV8 << 5)
99 #define CRYOTIMER_CTRL_PRESC_DIV16 (_CRYOTIMER_CTRL_PRESC_DIV16 << 5)
100 #define CRYOTIMER_CTRL_PRESC_DIV32 (_CRYOTIMER_CTRL_PRESC_DIV32 << 5)
101 #define CRYOTIMER_CTRL_PRESC_DIV64 (_CRYOTIMER_CTRL_PRESC_DIV64 << 5)
102 #define CRYOTIMER_CTRL_PRESC_DIV128 (_CRYOTIMER_CTRL_PRESC_DIV128 << 5)
104 /* Bit fields for CRYOTIMER PERIODSEL */
105 #define _CRYOTIMER_PERIODSEL_RESETVALUE 0x00000020UL
106 #define _CRYOTIMER_PERIODSEL_MASK 0x0000003FUL
107 #define _CRYOTIMER_PERIODSEL_PERIODSEL_SHIFT 0
108 #define _CRYOTIMER_PERIODSEL_PERIODSEL_MASK 0x3FUL
109 #define _CRYOTIMER_PERIODSEL_PERIODSEL_DEFAULT 0x00000020UL
110 #define CRYOTIMER_PERIODSEL_PERIODSEL_DEFAULT (_CRYOTIMER_PERIODSEL_PERIODSEL_DEFAULT << 0)
112 /* Bit fields for CRYOTIMER CNT */
113 #define _CRYOTIMER_CNT_RESETVALUE 0x00000000UL
114 #define _CRYOTIMER_CNT_MASK 0xFFFFFFFFUL
115 #define _CRYOTIMER_CNT_CNT_SHIFT 0
116 #define _CRYOTIMER_CNT_CNT_MASK 0xFFFFFFFFUL
117 #define _CRYOTIMER_CNT_CNT_DEFAULT 0x00000000UL
118 #define CRYOTIMER_CNT_CNT_DEFAULT (_CRYOTIMER_CNT_CNT_DEFAULT << 0)
120 /* Bit fields for CRYOTIMER EM4WUEN */
121 #define _CRYOTIMER_EM4WUEN_RESETVALUE 0x00000000UL
122 #define _CRYOTIMER_EM4WUEN_MASK 0x00000001UL
123 #define CRYOTIMER_EM4WUEN_EM4WU (0x1UL << 0)
124 #define _CRYOTIMER_EM4WUEN_EM4WU_SHIFT 0
125 #define _CRYOTIMER_EM4WUEN_EM4WU_MASK 0x1UL
126 #define _CRYOTIMER_EM4WUEN_EM4WU_DEFAULT 0x00000000UL
127 #define CRYOTIMER_EM4WUEN_EM4WU_DEFAULT (_CRYOTIMER_EM4WUEN_EM4WU_DEFAULT << 0)
129 /* Bit fields for CRYOTIMER IF */
130 #define _CRYOTIMER_IF_RESETVALUE 0x00000000UL
131 #define _CRYOTIMER_IF_MASK 0x00000001UL
132 #define CRYOTIMER_IF_PERIOD (0x1UL << 0)
133 #define _CRYOTIMER_IF_PERIOD_SHIFT 0
134 #define _CRYOTIMER_IF_PERIOD_MASK 0x1UL
135 #define _CRYOTIMER_IF_PERIOD_DEFAULT 0x00000000UL
136 #define CRYOTIMER_IF_PERIOD_DEFAULT (_CRYOTIMER_IF_PERIOD_DEFAULT << 0)
138 /* Bit fields for CRYOTIMER IFS */
139 #define _CRYOTIMER_IFS_RESETVALUE 0x00000000UL
140 #define _CRYOTIMER_IFS_MASK 0x00000001UL
141 #define CRYOTIMER_IFS_PERIOD (0x1UL << 0)
142 #define _CRYOTIMER_IFS_PERIOD_SHIFT 0
143 #define _CRYOTIMER_IFS_PERIOD_MASK 0x1UL
144 #define _CRYOTIMER_IFS_PERIOD_DEFAULT 0x00000000UL
145 #define CRYOTIMER_IFS_PERIOD_DEFAULT (_CRYOTIMER_IFS_PERIOD_DEFAULT << 0)
147 /* Bit fields for CRYOTIMER IFC */
148 #define _CRYOTIMER_IFC_RESETVALUE 0x00000000UL
149 #define _CRYOTIMER_IFC_MASK 0x00000001UL
150 #define CRYOTIMER_IFC_PERIOD (0x1UL << 0)
151 #define _CRYOTIMER_IFC_PERIOD_SHIFT 0
152 #define _CRYOTIMER_IFC_PERIOD_MASK 0x1UL
153 #define _CRYOTIMER_IFC_PERIOD_DEFAULT 0x00000000UL
154 #define CRYOTIMER_IFC_PERIOD_DEFAULT (_CRYOTIMER_IFC_PERIOD_DEFAULT << 0)
156 /* Bit fields for CRYOTIMER IEN */
157 #define _CRYOTIMER_IEN_RESETVALUE 0x00000000UL
158 #define _CRYOTIMER_IEN_MASK 0x00000001UL
159 #define CRYOTIMER_IEN_PERIOD (0x1UL << 0)
160 #define _CRYOTIMER_IEN_PERIOD_SHIFT 0
161 #define _CRYOTIMER_IEN_PERIOD_MASK 0x1UL
162 #define _CRYOTIMER_IEN_PERIOD_DEFAULT 0x00000000UL
163 #define CRYOTIMER_IEN_PERIOD_DEFAULT (_CRYOTIMER_IEN_PERIOD_DEFAULT << 0)
__IOM uint32_t EM4WUEN
__IOM uint32_t PERIODSEL