EFR32 Blue Gecko 13 Software Documentation  efr32bg13-doc-5.1.2
efr32bg13p_gpcrc.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t CMD;
45  __IOM uint32_t INIT;
46  __IOM uint32_t POLY;
47  __IOM uint32_t INPUTDATA;
48  __IOM uint32_t INPUTDATAHWORD;
49  __IOM uint32_t INPUTDATABYTE;
50  __IM uint32_t DATA;
51  __IM uint32_t DATAREV;
52  __IM uint32_t DATABYTEREV;
53 } GPCRC_TypeDef;
55 /**************************************************************************/
60 /* Bit fields for GPCRC CTRL */
61 #define _GPCRC_CTRL_RESETVALUE 0x00000000UL
62 #define _GPCRC_CTRL_MASK 0x00002711UL
63 #define GPCRC_CTRL_EN (0x1UL << 0)
64 #define _GPCRC_CTRL_EN_SHIFT 0
65 #define _GPCRC_CTRL_EN_MASK 0x1UL
66 #define _GPCRC_CTRL_EN_DEFAULT 0x00000000UL
67 #define _GPCRC_CTRL_EN_DISABLE 0x00000000UL
68 #define _GPCRC_CTRL_EN_ENABLE 0x00000001UL
69 #define GPCRC_CTRL_EN_DEFAULT (_GPCRC_CTRL_EN_DEFAULT << 0)
70 #define GPCRC_CTRL_EN_DISABLE (_GPCRC_CTRL_EN_DISABLE << 0)
71 #define GPCRC_CTRL_EN_ENABLE (_GPCRC_CTRL_EN_ENABLE << 0)
72 #define GPCRC_CTRL_POLYSEL (0x1UL << 4)
73 #define _GPCRC_CTRL_POLYSEL_SHIFT 4
74 #define _GPCRC_CTRL_POLYSEL_MASK 0x10UL
75 #define _GPCRC_CTRL_POLYSEL_DEFAULT 0x00000000UL
76 #define _GPCRC_CTRL_POLYSEL_CRC32 0x00000000UL
77 #define _GPCRC_CTRL_POLYSEL_16 0x00000001UL
78 #define GPCRC_CTRL_POLYSEL_DEFAULT (_GPCRC_CTRL_POLYSEL_DEFAULT << 4)
79 #define GPCRC_CTRL_POLYSEL_CRC32 (_GPCRC_CTRL_POLYSEL_CRC32 << 4)
80 #define GPCRC_CTRL_POLYSEL_16 (_GPCRC_CTRL_POLYSEL_16 << 4)
81 #define GPCRC_CTRL_BYTEMODE (0x1UL << 8)
82 #define _GPCRC_CTRL_BYTEMODE_SHIFT 8
83 #define _GPCRC_CTRL_BYTEMODE_MASK 0x100UL
84 #define _GPCRC_CTRL_BYTEMODE_DEFAULT 0x00000000UL
85 #define GPCRC_CTRL_BYTEMODE_DEFAULT (_GPCRC_CTRL_BYTEMODE_DEFAULT << 8)
86 #define GPCRC_CTRL_BITREVERSE (0x1UL << 9)
87 #define _GPCRC_CTRL_BITREVERSE_SHIFT 9
88 #define _GPCRC_CTRL_BITREVERSE_MASK 0x200UL
89 #define _GPCRC_CTRL_BITREVERSE_DEFAULT 0x00000000UL
90 #define _GPCRC_CTRL_BITREVERSE_NORMAL 0x00000000UL
91 #define _GPCRC_CTRL_BITREVERSE_REVERSED 0x00000001UL
92 #define GPCRC_CTRL_BITREVERSE_DEFAULT (_GPCRC_CTRL_BITREVERSE_DEFAULT << 9)
93 #define GPCRC_CTRL_BITREVERSE_NORMAL (_GPCRC_CTRL_BITREVERSE_NORMAL << 9)
94 #define GPCRC_CTRL_BITREVERSE_REVERSED (_GPCRC_CTRL_BITREVERSE_REVERSED << 9)
95 #define GPCRC_CTRL_BYTEREVERSE (0x1UL << 10)
96 #define _GPCRC_CTRL_BYTEREVERSE_SHIFT 10
97 #define _GPCRC_CTRL_BYTEREVERSE_MASK 0x400UL
98 #define _GPCRC_CTRL_BYTEREVERSE_DEFAULT 0x00000000UL
99 #define _GPCRC_CTRL_BYTEREVERSE_NORMAL 0x00000000UL
100 #define _GPCRC_CTRL_BYTEREVERSE_REVERSED 0x00000001UL
101 #define GPCRC_CTRL_BYTEREVERSE_DEFAULT (_GPCRC_CTRL_BYTEREVERSE_DEFAULT << 10)
102 #define GPCRC_CTRL_BYTEREVERSE_NORMAL (_GPCRC_CTRL_BYTEREVERSE_NORMAL << 10)
103 #define GPCRC_CTRL_BYTEREVERSE_REVERSED (_GPCRC_CTRL_BYTEREVERSE_REVERSED << 10)
104 #define GPCRC_CTRL_AUTOINIT (0x1UL << 13)
105 #define _GPCRC_CTRL_AUTOINIT_SHIFT 13
106 #define _GPCRC_CTRL_AUTOINIT_MASK 0x2000UL
107 #define _GPCRC_CTRL_AUTOINIT_DEFAULT 0x00000000UL
108 #define GPCRC_CTRL_AUTOINIT_DEFAULT (_GPCRC_CTRL_AUTOINIT_DEFAULT << 13)
110 /* Bit fields for GPCRC CMD */
111 #define _GPCRC_CMD_RESETVALUE 0x00000000UL
112 #define _GPCRC_CMD_MASK 0x00000001UL
113 #define GPCRC_CMD_INIT (0x1UL << 0)
114 #define _GPCRC_CMD_INIT_SHIFT 0
115 #define _GPCRC_CMD_INIT_MASK 0x1UL
116 #define _GPCRC_CMD_INIT_DEFAULT 0x00000000UL
117 #define GPCRC_CMD_INIT_DEFAULT (_GPCRC_CMD_INIT_DEFAULT << 0)
119 /* Bit fields for GPCRC INIT */
120 #define _GPCRC_INIT_RESETVALUE 0x00000000UL
121 #define _GPCRC_INIT_MASK 0xFFFFFFFFUL
122 #define _GPCRC_INIT_INIT_SHIFT 0
123 #define _GPCRC_INIT_INIT_MASK 0xFFFFFFFFUL
124 #define _GPCRC_INIT_INIT_DEFAULT 0x00000000UL
125 #define GPCRC_INIT_INIT_DEFAULT (_GPCRC_INIT_INIT_DEFAULT << 0)
127 /* Bit fields for GPCRC POLY */
128 #define _GPCRC_POLY_RESETVALUE 0x00000000UL
129 #define _GPCRC_POLY_MASK 0x0000FFFFUL
130 #define _GPCRC_POLY_POLY_SHIFT 0
131 #define _GPCRC_POLY_POLY_MASK 0xFFFFUL
132 #define _GPCRC_POLY_POLY_DEFAULT 0x00000000UL
133 #define GPCRC_POLY_POLY_DEFAULT (_GPCRC_POLY_POLY_DEFAULT << 0)
135 /* Bit fields for GPCRC INPUTDATA */
136 #define _GPCRC_INPUTDATA_RESETVALUE 0x00000000UL
137 #define _GPCRC_INPUTDATA_MASK 0xFFFFFFFFUL
138 #define _GPCRC_INPUTDATA_INPUTDATA_SHIFT 0
139 #define _GPCRC_INPUTDATA_INPUTDATA_MASK 0xFFFFFFFFUL
140 #define _GPCRC_INPUTDATA_INPUTDATA_DEFAULT 0x00000000UL
141 #define GPCRC_INPUTDATA_INPUTDATA_DEFAULT (_GPCRC_INPUTDATA_INPUTDATA_DEFAULT << 0)
143 /* Bit fields for GPCRC INPUTDATAHWORD */
144 #define _GPCRC_INPUTDATAHWORD_RESETVALUE 0x00000000UL
145 #define _GPCRC_INPUTDATAHWORD_MASK 0x0000FFFFUL
146 #define _GPCRC_INPUTDATAHWORD_INPUTDATAHWORD_SHIFT 0
147 #define _GPCRC_INPUTDATAHWORD_INPUTDATAHWORD_MASK 0xFFFFUL
148 #define _GPCRC_INPUTDATAHWORD_INPUTDATAHWORD_DEFAULT 0x00000000UL
149 #define GPCRC_INPUTDATAHWORD_INPUTDATAHWORD_DEFAULT (_GPCRC_INPUTDATAHWORD_INPUTDATAHWORD_DEFAULT << 0)
151 /* Bit fields for GPCRC INPUTDATABYTE */
152 #define _GPCRC_INPUTDATABYTE_RESETVALUE 0x00000000UL
153 #define _GPCRC_INPUTDATABYTE_MASK 0x000000FFUL
154 #define _GPCRC_INPUTDATABYTE_INPUTDATABYTE_SHIFT 0
155 #define _GPCRC_INPUTDATABYTE_INPUTDATABYTE_MASK 0xFFUL
156 #define _GPCRC_INPUTDATABYTE_INPUTDATABYTE_DEFAULT 0x00000000UL
157 #define GPCRC_INPUTDATABYTE_INPUTDATABYTE_DEFAULT (_GPCRC_INPUTDATABYTE_INPUTDATABYTE_DEFAULT << 0)
159 /* Bit fields for GPCRC DATA */
160 #define _GPCRC_DATA_RESETVALUE 0x00000000UL
161 #define _GPCRC_DATA_MASK 0xFFFFFFFFUL
162 #define _GPCRC_DATA_DATA_SHIFT 0
163 #define _GPCRC_DATA_DATA_MASK 0xFFFFFFFFUL
164 #define _GPCRC_DATA_DATA_DEFAULT 0x00000000UL
165 #define GPCRC_DATA_DATA_DEFAULT (_GPCRC_DATA_DATA_DEFAULT << 0)
167 /* Bit fields for GPCRC DATAREV */
168 #define _GPCRC_DATAREV_RESETVALUE 0x00000000UL
169 #define _GPCRC_DATAREV_MASK 0xFFFFFFFFUL
170 #define _GPCRC_DATAREV_DATAREV_SHIFT 0
171 #define _GPCRC_DATAREV_DATAREV_MASK 0xFFFFFFFFUL
172 #define _GPCRC_DATAREV_DATAREV_DEFAULT 0x00000000UL
173 #define GPCRC_DATAREV_DATAREV_DEFAULT (_GPCRC_DATAREV_DATAREV_DEFAULT << 0)
175 /* Bit fields for GPCRC DATABYTEREV */
176 #define _GPCRC_DATABYTEREV_RESETVALUE 0x00000000UL
177 #define _GPCRC_DATABYTEREV_MASK 0xFFFFFFFFUL
178 #define _GPCRC_DATABYTEREV_DATABYTEREV_SHIFT 0
179 #define _GPCRC_DATABYTEREV_DATABYTEREV_MASK 0xFFFFFFFFUL
180 #define _GPCRC_DATABYTEREV_DATABYTEREV_DEFAULT 0x00000000UL
181 #define GPCRC_DATABYTEREV_DATABYTEREV_DEFAULT (_GPCRC_DATABYTEREV_DATABYTEREV_DEFAULT << 0)
__IOM uint32_t CMD
__IM uint32_t DATAREV
__IOM uint32_t INPUTDATABYTE
__IOM uint32_t INIT
__IOM uint32_t INPUTDATAHWORD
__IOM uint32_t CTRL
__IOM uint32_t INPUTDATA
__IM uint32_t DATA
__IOM uint32_t POLY
__IM uint32_t DATABYTEREV