aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/common/ext/ST/STM32L4xx/stm32l471xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/os/common/ext/ST/STM32L4xx/stm32l471xx.h')
-rw-r--r--lib/chibios/os/common/ext/ST/STM32L4xx/stm32l471xx.h16846
1 files changed, 16846 insertions, 0 deletions
diff --git a/lib/chibios/os/common/ext/ST/STM32L4xx/stm32l471xx.h b/lib/chibios/os/common/ext/ST/STM32L4xx/stm32l471xx.h
new file mode 100644
index 000000000..2900a4aa3
--- /dev/null
+++ b/lib/chibios/os/common/ext/ST/STM32L4xx/stm32l471xx.h
@@ -0,0 +1,16846 @@
1/**
2 ******************************************************************************
3 * @file stm32l471xx.h
4 * @author MCD Application Team
5 * @brief CMSIS STM32L471xx Device Peripheral Access Layer Header File.
6 *
7 * This file contains:
8 * - Data structures and the address mapping for all peripherals
9 * - Peripheral's registers declarations and bits definition
10 * - Macros to access peripheral�s registers hardware
11 *
12 ******************************************************************************
13 * @attention
14 *
15 * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
16 *
17 * Redistribution and use in source and binary forms, with or without modification,
18 * are permitted provided that the following conditions are met:
19 * 1. Redistributions of source code must retain the above copyright notice,
20 * this list of conditions and the following disclaimer.
21 * 2. Redistributions in binary form must reproduce the above copyright notice,
22 * this list of conditions and the following disclaimer in the documentation
23 * and/or other materials provided with the distribution.
24 * 3. Neither the name of STMicroelectronics nor the names of its contributors
25 * may be used to endorse or promote products derived from this software
26 * without specific prior written permission.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
32 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 *
39 ******************************************************************************
40 */
41
42/** @addtogroup CMSIS_Device
43 * @{
44 */
45
46/** @addtogroup stm32l471xx
47 * @{
48 */
49
50#ifndef __STM32L471xx_H
51#define __STM32L471xx_H
52
53#ifdef __cplusplus
54 extern "C" {
55#endif /* __cplusplus */
56
57/** @addtogroup Configuration_section_for_CMSIS
58 * @{
59 */
60
61/**
62 * @brief Configuration of the Cortex-M4 Processor and Core Peripherals
63 */
64#define __CM4_REV 0x0001 /*!< Cortex-M4 revision r0p1 */
65#define __MPU_PRESENT 1 /*!< STM32L4XX provides an MPU */
66#define __NVIC_PRIO_BITS 4 /*!< STM32L4XX uses 4 Bits for the Priority Levels */
67#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
68#define __FPU_PRESENT 1 /*!< FPU present */
69
70/**
71 * @}
72 */
73
74/** @addtogroup Peripheral_interrupt_number_definition
75 * @{
76 */
77
78/**
79 * @brief STM32L4XX Interrupt Number Definition, according to the selected device
80 * in @ref Library_configuration_section
81 */
82typedef enum
83{
84/****** Cortex-M4 Processor Exceptions Numbers ****************************************************************/
85 NonMaskableInt_IRQn = -14, /*!< 2 Cortex-M4 Non Maskable Interrupt */
86 HardFault_IRQn = -13, /*!< 3 Cortex-M4 Hard Fault Interrupt */
87 MemoryManagement_IRQn = -12, /*!< 4 Cortex-M4 Memory Management Interrupt */
88 BusFault_IRQn = -11, /*!< 5 Cortex-M4 Bus Fault Interrupt */
89 UsageFault_IRQn = -10, /*!< 6 Cortex-M4 Usage Fault Interrupt */
90 SVCall_IRQn = -5, /*!< 11 Cortex-M4 SV Call Interrupt */
91 DebugMonitor_IRQn = -4, /*!< 12 Cortex-M4 Debug Monitor Interrupt */
92 PendSV_IRQn = -2, /*!< 14 Cortex-M4 Pend SV Interrupt */
93 SysTick_IRQn = -1, /*!< 15 Cortex-M4 System Tick Interrupt */
94/****** STM32 specific Interrupt Numbers **********************************************************************/
95 WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
96 PVD_PVM_IRQn = 1, /*!< PVD/PVM1/PVM2/PVM3/PVM4 through EXTI Line detection Interrupts */
97 TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line */
98 RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line */
99 FLASH_IRQn = 4, /*!< FLASH global Interrupt */
100 RCC_IRQn = 5, /*!< RCC global Interrupt */
101 EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */
102 EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */
103 EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */
104 EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */
105 EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */
106 DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 global Interrupt */
107 DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 global Interrupt */
108 DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 global Interrupt */
109 DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 global Interrupt */
110 DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 global Interrupt */
111 DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 global Interrupt */
112 DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 global Interrupt */
113 ADC1_2_IRQn = 18, /*!< ADC1, ADC2 SAR global Interrupts */
114 CAN1_TX_IRQn = 19, /*!< CAN1 TX Interrupt */
115 CAN1_RX0_IRQn = 20, /*!< CAN1 RX0 Interrupt */
116 CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */
117 CAN1_SCE_IRQn = 22, /*!< CAN1 SCE Interrupt */
118 EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */
119 TIM1_BRK_TIM15_IRQn = 24, /*!< TIM1 Break interrupt and TIM15 global interrupt */
120 TIM1_UP_TIM16_IRQn = 25, /*!< TIM1 Update Interrupt and TIM16 global interrupt */
121 TIM1_TRG_COM_TIM17_IRQn = 26, /*!< TIM1 Trigger and Commutation Interrupt and TIM17 global interrupt */
122 TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */
123 TIM2_IRQn = 28, /*!< TIM2 global Interrupt */
124 TIM3_IRQn = 29, /*!< TIM3 global Interrupt */
125 TIM4_IRQn = 30, /*!< TIM4 global Interrupt */
126 I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt */
127 I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */
128 I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt */
129 I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */
130 SPI1_IRQn = 35, /*!< SPI1 global Interrupt */
131 SPI2_IRQn = 36, /*!< SPI2 global Interrupt */
132 USART1_IRQn = 37, /*!< USART1 global Interrupt */
133 USART2_IRQn = 38, /*!< USART2 global Interrupt */
134 USART3_IRQn = 39, /*!< USART3 global Interrupt */
135 EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */
136 RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line Interrupt */
137 DFSDM1_FLT3_IRQn = 42, /*!< DFSDM1 Filter 3 global Interrupt */
138 TIM8_BRK_IRQn = 43, /*!< TIM8 Break Interrupt */
139 TIM8_UP_IRQn = 44, /*!< TIM8 Update Interrupt */
140 TIM8_TRG_COM_IRQn = 45, /*!< TIM8 Trigger and Commutation Interrupt */
141 TIM8_CC_IRQn = 46, /*!< TIM8 Capture Compare Interrupt */
142 ADC3_IRQn = 47, /*!< ADC3 global Interrupt */
143 FMC_IRQn = 48, /*!< FMC global Interrupt */
144 SDMMC1_IRQn = 49, /*!< SDMMC1 global Interrupt */
145 TIM5_IRQn = 50, /*!< TIM5 global Interrupt */
146 SPI3_IRQn = 51, /*!< SPI3 global Interrupt */
147 UART4_IRQn = 52, /*!< UART4 global Interrupt */
148 UART5_IRQn = 53, /*!< UART5 global Interrupt */
149 TIM6_DAC_IRQn = 54, /*!< TIM6 global and DAC1&2 underrun error interrupts */
150 TIM7_IRQn = 55, /*!< TIM7 global interrupt */
151 DMA2_Channel1_IRQn = 56, /*!< DMA2 Channel 1 global Interrupt */
152 DMA2_Channel2_IRQn = 57, /*!< DMA2 Channel 2 global Interrupt */
153 DMA2_Channel3_IRQn = 58, /*!< DMA2 Channel 3 global Interrupt */
154 DMA2_Channel4_IRQn = 59, /*!< DMA2 Channel 4 global Interrupt */
155 DMA2_Channel5_IRQn = 60, /*!< DMA2 Channel 5 global Interrupt */
156 DFSDM1_FLT0_IRQn = 61, /*!< DFSDM1 Filter 0 global Interrupt */
157 DFSDM1_FLT1_IRQn = 62, /*!< DFSDM1 Filter 1 global Interrupt */
158 DFSDM1_FLT2_IRQn = 63, /*!< DFSDM1 Filter 2 global Interrupt */
159 COMP_IRQn = 64, /*!< COMP1 and COMP2 Interrupts */
160 LPTIM1_IRQn = 65, /*!< LP TIM1 interrupt */
161 LPTIM2_IRQn = 66, /*!< LP TIM2 interrupt */
162 DMA2_Channel6_IRQn = 68, /*!< DMA2 Channel 6 global interrupt */
163 DMA2_Channel7_IRQn = 69, /*!< DMA2 Channel 7 global interrupt */
164 LPUART1_IRQn = 70, /*!< LP UART1 interrupt */
165 QUADSPI_IRQn = 71, /*!< Quad SPI global interrupt */
166 I2C3_EV_IRQn = 72, /*!< I2C3 event interrupt */
167 I2C3_ER_IRQn = 73, /*!< I2C3 error interrupt */
168 SAI1_IRQn = 74, /*!< Serial Audio Interface 1 global interrupt */
169 SAI2_IRQn = 75, /*!< Serial Audio Interface 2 global interrupt */
170 SWPMI1_IRQn = 76, /*!< Serial Wire Interface 1 global interrupt */
171 TSC_IRQn = 77, /*!< Touch Sense Controller global interrupt */
172 RNG_IRQn = 80, /*!< RNG global interrupt */
173 FPU_IRQn = 81 /*!< FPU global interrupt */
174} IRQn_Type;
175
176/**
177 * @}
178 */
179
180#include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
181#include "system_stm32l4xx.h"
182#include <stdint.h>
183
184/** @addtogroup Peripheral_registers_structures
185 * @{
186 */
187
188/**
189 * @brief Analog to Digital Converter
190 */
191
192typedef struct
193{
194 __IO uint32_t ISR; /*!< ADC interrupt and status register, Address offset: 0x00 */
195 __IO uint32_t IER; /*!< ADC interrupt enable register, Address offset: 0x04 */
196 __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */
197 __IO uint32_t CFGR; /*!< ADC configuration register 1, Address offset: 0x0C */
198 __IO uint32_t CFGR2; /*!< ADC configuration register 2, Address offset: 0x10 */
199 __IO uint32_t SMPR1; /*!< ADC sampling time register 1, Address offset: 0x14 */
200 __IO uint32_t SMPR2; /*!< ADC sampling time register 2, Address offset: 0x18 */
201 uint32_t RESERVED1; /*!< Reserved, 0x1C */
202 __IO uint32_t TR1; /*!< ADC analog watchdog 1 threshold register, Address offset: 0x20 */
203 __IO uint32_t TR2; /*!< ADC analog watchdog 2 threshold register, Address offset: 0x24 */
204 __IO uint32_t TR3; /*!< ADC analog watchdog 3 threshold register, Address offset: 0x28 */
205 uint32_t RESERVED2; /*!< Reserved, 0x2C */
206 __IO uint32_t SQR1; /*!< ADC group regular sequencer register 1, Address offset: 0x30 */
207 __IO uint32_t SQR2; /*!< ADC group regular sequencer register 2, Address offset: 0x34 */
208 __IO uint32_t SQR3; /*!< ADC group regular sequencer register 3, Address offset: 0x38 */
209 __IO uint32_t SQR4; /*!< ADC group regular sequencer register 4, Address offset: 0x3C */
210 __IO uint32_t DR; /*!< ADC group regular data register, Address offset: 0x40 */
211 uint32_t RESERVED3; /*!< Reserved, 0x44 */
212 uint32_t RESERVED4; /*!< Reserved, 0x48 */
213 __IO uint32_t JSQR; /*!< ADC group injected sequencer register, Address offset: 0x4C */
214 uint32_t RESERVED5[4]; /*!< Reserved, 0x50 - 0x5C */
215 __IO uint32_t OFR1; /*!< ADC offset register 1, Address offset: 0x60 */
216 __IO uint32_t OFR2; /*!< ADC offset register 2, Address offset: 0x64 */
217 __IO uint32_t OFR3; /*!< ADC offset register 3, Address offset: 0x68 */
218 __IO uint32_t OFR4; /*!< ADC offset register 4, Address offset: 0x6C */
219 uint32_t RESERVED6[4]; /*!< Reserved, 0x70 - 0x7C */
220 __IO uint32_t JDR1; /*!< ADC group injected rank 1 data register, Address offset: 0x80 */
221 __IO uint32_t JDR2; /*!< ADC group injected rank 2 data register, Address offset: 0x84 */
222 __IO uint32_t JDR3; /*!< ADC group injected rank 3 data register, Address offset: 0x88 */
223 __IO uint32_t JDR4; /*!< ADC group injected rank 4 data register, Address offset: 0x8C */
224 uint32_t RESERVED7[4]; /*!< Reserved, 0x090 - 0x09C */
225 __IO uint32_t AWD2CR; /*!< ADC analog watchdog 1 configuration register, Address offset: 0xA0 */
226 __IO uint32_t AWD3CR; /*!< ADC analog watchdog 3 Configuration Register, Address offset: 0xA4 */
227 uint32_t RESERVED8; /*!< Reserved, 0x0A8 */
228 uint32_t RESERVED9; /*!< Reserved, 0x0AC */
229 __IO uint32_t DIFSEL; /*!< ADC differential mode selection register, Address offset: 0xB0 */
230 __IO uint32_t CALFACT; /*!< ADC calibration factors, Address offset: 0xB4 */
231
232} ADC_TypeDef;
233
234typedef struct
235{
236 __IO uint32_t CSR; /*!< ADC common status register, Address offset: ADC1 base address + 0x300 */
237 uint32_t RESERVED; /*!< Reserved, Address offset: ADC1 base address + 0x304 */
238 __IO uint32_t CCR; /*!< ADC common configuration register, Address offset: ADC1 base address + 0x308 */
239 __IO uint32_t CDR; /*!< ADC common group regular data register Address offset: ADC1 base address + 0x30C */
240} ADC_Common_TypeDef;
241
242
243/**
244 * @brief Controller Area Network TxMailBox
245 */
246
247typedef struct
248{
249 __IO uint32_t TIR; /*!< CAN TX mailbox identifier register */
250 __IO uint32_t TDTR; /*!< CAN mailbox data length control and time stamp register */
251 __IO uint32_t TDLR; /*!< CAN mailbox data low register */
252 __IO uint32_t TDHR; /*!< CAN mailbox data high register */
253} CAN_TxMailBox_TypeDef;
254
255/**
256 * @brief Controller Area Network FIFOMailBox
257 */
258
259typedef struct
260{
261 __IO uint32_t RIR; /*!< CAN receive FIFO mailbox identifier register */
262 __IO uint32_t RDTR; /*!< CAN receive FIFO mailbox data length control and time stamp register */
263 __IO uint32_t RDLR; /*!< CAN receive FIFO mailbox data low register */
264 __IO uint32_t RDHR; /*!< CAN receive FIFO mailbox data high register */
265} CAN_FIFOMailBox_TypeDef;
266
267/**
268 * @brief Controller Area Network FilterRegister
269 */
270
271typedef struct
272{
273 __IO uint32_t FR1; /*!< CAN Filter bank register 1 */
274 __IO uint32_t FR2; /*!< CAN Filter bank register 1 */
275} CAN_FilterRegister_TypeDef;
276
277/**
278 * @brief Controller Area Network
279 */
280
281typedef struct
282{
283 __IO uint32_t MCR; /*!< CAN master control register, Address offset: 0x00 */
284 __IO uint32_t MSR; /*!< CAN master status register, Address offset: 0x04 */
285 __IO uint32_t TSR; /*!< CAN transmit status register, Address offset: 0x08 */
286 __IO uint32_t RF0R; /*!< CAN receive FIFO 0 register, Address offset: 0x0C */
287 __IO uint32_t RF1R; /*!< CAN receive FIFO 1 register, Address offset: 0x10 */
288 __IO uint32_t IER; /*!< CAN interrupt enable register, Address offset: 0x14 */
289 __IO uint32_t ESR; /*!< CAN error status register, Address offset: 0x18 */
290 __IO uint32_t BTR; /*!< CAN bit timing register, Address offset: 0x1C */
291 uint32_t RESERVED0[88]; /*!< Reserved, 0x020 - 0x17F */
292 CAN_TxMailBox_TypeDef sTxMailBox[3]; /*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC */
293 CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; /*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC */
294 uint32_t RESERVED1[12]; /*!< Reserved, 0x1D0 - 0x1FF */
295 __IO uint32_t FMR; /*!< CAN filter master register, Address offset: 0x200 */
296 __IO uint32_t FM1R; /*!< CAN filter mode register, Address offset: 0x204 */
297 uint32_t RESERVED2; /*!< Reserved, 0x208 */
298 __IO uint32_t FS1R; /*!< CAN filter scale register, Address offset: 0x20C */
299 uint32_t RESERVED3; /*!< Reserved, 0x210 */
300 __IO uint32_t FFA1R; /*!< CAN filter FIFO assignment register, Address offset: 0x214 */
301 uint32_t RESERVED4; /*!< Reserved, 0x218 */
302 __IO uint32_t FA1R; /*!< CAN filter activation register, Address offset: 0x21C */
303 uint32_t RESERVED5[8]; /*!< Reserved, 0x220-0x23F */
304 CAN_FilterRegister_TypeDef sFilterRegister[28]; /*!< CAN Filter Register, Address offset: 0x240-0x31C */
305} CAN_TypeDef;
306
307
308/**
309 * @brief Comparator
310 */
311
312typedef struct
313{
314 __IO uint32_t CSR; /*!< COMP control and status register, Address offset: 0x00 */
315} COMP_TypeDef;
316
317typedef struct
318{
319 __IO uint32_t CSR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
320} COMP_Common_TypeDef;
321
322/**
323 * @brief CRC calculation unit
324 */
325
326typedef struct
327{
328 __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
329 __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
330 uint8_t RESERVED0; /*!< Reserved, 0x05 */
331 uint16_t RESERVED1; /*!< Reserved, 0x06 */
332 __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
333 uint32_t RESERVED2; /*!< Reserved, 0x0C */
334 __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
335 __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
336} CRC_TypeDef;
337
338/**
339 * @brief Digital to Analog Converter
340 */
341
342typedef struct
343{
344 __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
345 __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
346 __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
347 __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
348 __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
349 __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
350 __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
351 __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
352 __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
353 __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
354 __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
355 __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
356 __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
357 __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
358 __IO uint32_t CCR; /*!< DAC calibration control register, Address offset: 0x38 */
359 __IO uint32_t MCR; /*!< DAC mode control register, Address offset: 0x3C */
360 __IO uint32_t SHSR1; /*!< DAC Sample and Hold sample time register 1, Address offset: 0x40 */
361 __IO uint32_t SHSR2; /*!< DAC Sample and Hold sample time register 2, Address offset: 0x44 */
362 __IO uint32_t SHHR; /*!< DAC Sample and Hold hold time register, Address offset: 0x48 */
363 __IO uint32_t SHRR; /*!< DAC Sample and Hold refresh time register, Address offset: 0x4C */
364} DAC_TypeDef;
365
366/**
367 * @brief DFSDM module registers
368 */
369typedef struct
370{
371 __IO uint32_t FLTCR1; /*!< DFSDM control register1, Address offset: 0x100 */
372 __IO uint32_t FLTCR2; /*!< DFSDM control register2, Address offset: 0x104 */
373 __IO uint32_t FLTISR; /*!< DFSDM interrupt and status register, Address offset: 0x108 */
374 __IO uint32_t FLTICR; /*!< DFSDM interrupt flag clear register, Address offset: 0x10C */
375 __IO uint32_t FLTJCHGR; /*!< DFSDM injected channel group selection register, Address offset: 0x110 */
376 __IO uint32_t FLTFCR; /*!< DFSDM filter control register, Address offset: 0x114 */
377 __IO uint32_t FLTJDATAR; /*!< DFSDM data register for injected group, Address offset: 0x118 */
378 __IO uint32_t FLTRDATAR; /*!< DFSDM data register for regular group, Address offset: 0x11C */
379 __IO uint32_t FLTAWHTR; /*!< DFSDM analog watchdog high threshold register, Address offset: 0x120 */
380 __IO uint32_t FLTAWLTR; /*!< DFSDM analog watchdog low threshold register, Address offset: 0x124 */
381 __IO uint32_t FLTAWSR; /*!< DFSDM analog watchdog status register Address offset: 0x128 */
382 __IO uint32_t FLTAWCFR; /*!< DFSDM analog watchdog clear flag register Address offset: 0x12C */
383 __IO uint32_t FLTEXMAX; /*!< DFSDM extreme detector maximum register, Address offset: 0x130 */
384 __IO uint32_t FLTEXMIN; /*!< DFSDM extreme detector minimum register Address offset: 0x134 */
385 __IO uint32_t FLTCNVTIMR; /*!< DFSDM conversion timer, Address offset: 0x138 */
386} DFSDM_Filter_TypeDef;
387
388/**
389 * @brief DFSDM channel configuration registers
390 */
391typedef struct
392{
393 __IO uint32_t CHCFGR1; /*!< DFSDM channel configuration register1, Address offset: 0x00 */
394 __IO uint32_t CHCFGR2; /*!< DFSDM channel configuration register2, Address offset: 0x04 */
395 __IO uint32_t CHAWSCDR; /*!< DFSDM channel analog watchdog and
396 short circuit detector register, Address offset: 0x08 */
397 __IO uint32_t CHWDATAR; /*!< DFSDM channel watchdog filter data register, Address offset: 0x0C */
398 __IO uint32_t CHDATINR; /*!< DFSDM channel data input register, Address offset: 0x10 */
399} DFSDM_Channel_TypeDef;
400
401/**
402 * @brief Debug MCU
403 */
404
405typedef struct
406{
407 __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
408 __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
409 __IO uint32_t APB1FZR1; /*!< Debug MCU APB1 freeze register 1, Address offset: 0x08 */
410 __IO uint32_t APB1FZR2; /*!< Debug MCU APB1 freeze register 2, Address offset: 0x0C */
411 __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x10 */
412} DBGMCU_TypeDef;
413
414
415/**
416 * @brief DMA Controller
417 */
418
419typedef struct
420{
421 __IO uint32_t CCR; /*!< DMA channel x configuration register */
422 __IO uint32_t CNDTR; /*!< DMA channel x number of data register */
423 __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */
424 __IO uint32_t CMAR; /*!< DMA channel x memory address register */
425} DMA_Channel_TypeDef;
426
427typedef struct
428{
429 __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
430 __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */
431} DMA_TypeDef;
432
433typedef struct
434{
435 __IO uint32_t CSELR; /*!< DMA channel selection register */
436} DMA_Request_TypeDef;
437
438/* Legacy define */
439#define DMA_request_TypeDef DMA_Request_TypeDef
440
441
442/**
443 * @brief External Interrupt/Event Controller
444 */
445
446typedef struct
447{
448 __IO uint32_t IMR1; /*!< EXTI Interrupt mask register 1, Address offset: 0x00 */
449 __IO uint32_t EMR1; /*!< EXTI Event mask register 1, Address offset: 0x04 */
450 __IO uint32_t RTSR1; /*!< EXTI Rising trigger selection register 1, Address offset: 0x08 */
451 __IO uint32_t FTSR1; /*!< EXTI Falling trigger selection register 1, Address offset: 0x0C */
452 __IO uint32_t SWIER1; /*!< EXTI Software interrupt event register 1, Address offset: 0x10 */
453 __IO uint32_t PR1; /*!< EXTI Pending register 1, Address offset: 0x14 */
454 uint32_t RESERVED1; /*!< Reserved, 0x18 */
455 uint32_t RESERVED2; /*!< Reserved, 0x1C */
456 __IO uint32_t IMR2; /*!< EXTI Interrupt mask register 2, Address offset: 0x20 */
457 __IO uint32_t EMR2; /*!< EXTI Event mask register 2, Address offset: 0x24 */
458 __IO uint32_t RTSR2; /*!< EXTI Rising trigger selection register 2, Address offset: 0x28 */
459 __IO uint32_t FTSR2; /*!< EXTI Falling trigger selection register 2, Address offset: 0x2C */
460 __IO uint32_t SWIER2; /*!< EXTI Software interrupt event register 2, Address offset: 0x30 */
461 __IO uint32_t PR2; /*!< EXTI Pending register 2, Address offset: 0x34 */
462} EXTI_TypeDef;
463
464
465/**
466 * @brief Firewall
467 */
468
469typedef struct
470{
471 __IO uint32_t CSSA; /*!< Code Segment Start Address register, Address offset: 0x00 */
472 __IO uint32_t CSL; /*!< Code Segment Length register, Address offset: 0x04 */
473 __IO uint32_t NVDSSA; /*!< NON volatile data Segment Start Address register, Address offset: 0x08 */
474 __IO uint32_t NVDSL; /*!< NON volatile data Segment Length register, Address offset: 0x0C */
475 __IO uint32_t VDSSA ; /*!< Volatile data Segment Start Address register, Address offset: 0x10 */
476 __IO uint32_t VDSL ; /*!< Volatile data Segment Length register, Address offset: 0x14 */
477 uint32_t RESERVED1; /*!< Reserved1, Address offset: 0x18 */
478 uint32_t RESERVED2; /*!< Reserved2, Address offset: 0x1C */
479 __IO uint32_t CR ; /*!< Configuration register, Address offset: 0x20 */
480} FIREWALL_TypeDef;
481
482
483/**
484 * @brief FLASH Registers
485 */
486
487typedef struct
488{
489 __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */
490 __IO uint32_t PDKEYR; /*!< FLASH power down key register, Address offset: 0x04 */
491 __IO uint32_t KEYR; /*!< FLASH key register, Address offset: 0x08 */
492 __IO uint32_t OPTKEYR; /*!< FLASH option key register, Address offset: 0x0C */
493 __IO uint32_t SR; /*!< FLASH status register, Address offset: 0x10 */
494 __IO uint32_t CR; /*!< FLASH control register, Address offset: 0x14 */
495 __IO uint32_t ECCR; /*!< FLASH ECC register, Address offset: 0x18 */
496 __IO uint32_t RESERVED1; /*!< Reserved1, Address offset: 0x1C */
497 __IO uint32_t OPTR; /*!< FLASH option register, Address offset: 0x20 */
498 __IO uint32_t PCROP1SR; /*!< FLASH bank1 PCROP start address register, Address offset: 0x24 */
499 __IO uint32_t PCROP1ER; /*!< FLASH bank1 PCROP end address register, Address offset: 0x28 */
500 __IO uint32_t WRP1AR; /*!< FLASH bank1 WRP area A address register, Address offset: 0x2C */
501 __IO uint32_t WRP1BR; /*!< FLASH bank1 WRP area B address register, Address offset: 0x30 */
502 uint32_t RESERVED2[4]; /*!< Reserved2, Address offset: 0x34-0x40 */
503 __IO uint32_t PCROP2SR; /*!< FLASH bank2 PCROP start address register, Address offset: 0x44 */
504 __IO uint32_t PCROP2ER; /*!< FLASH bank2 PCROP end address register, Address offset: 0x48 */
505 __IO uint32_t WRP2AR; /*!< FLASH bank2 WRP area A address register, Address offset: 0x4C */
506 __IO uint32_t WRP2BR; /*!< FLASH bank2 WRP area B address register, Address offset: 0x50 */
507} FLASH_TypeDef;
508
509
510/**
511 * @brief Flexible Memory Controller
512 */
513
514typedef struct
515{
516 __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */
517} FMC_Bank1_TypeDef;
518
519/**
520 * @brief Flexible Memory Controller Bank1E
521 */
522
523typedef struct
524{
525 __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */
526} FMC_Bank1E_TypeDef;
527
528/**
529 * @brief Flexible Memory Controller Bank3
530 */
531
532typedef struct
533{
534 __IO uint32_t PCR; /*!< NAND Flash control register, Address offset: 0x80 */
535 __IO uint32_t SR; /*!< NAND Flash FIFO status and interrupt register, Address offset: 0x84 */
536 __IO uint32_t PMEM; /*!< NAND Flash Common memory space timing register, Address offset: 0x88 */
537 __IO uint32_t PATT; /*!< NAND Flash Attribute memory space timing register, Address offset: 0x8C */
538 uint32_t RESERVED0; /*!< Reserved, 0x90 */
539 __IO uint32_t ECCR; /*!< NAND Flash ECC result registers, Address offset: 0x94 */
540} FMC_Bank3_TypeDef;
541
542/**
543 * @brief General Purpose I/O
544 */
545
546typedef struct
547{
548 __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
549 __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
550 __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
551 __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
552 __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
553 __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
554 __IO uint32_t BSRR; /*!< GPIO port bit set/reset register, Address offset: 0x18 */
555 __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
556 __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */
557 __IO uint32_t BRR; /*!< GPIO Bit Reset register, Address offset: 0x28 */
558 __IO uint32_t ASCR; /*!< GPIO analog switch control register, Address offset: 0x2C */
559
560} GPIO_TypeDef;
561
562
563/**
564 * @brief Inter-integrated Circuit Interface
565 */
566
567typedef struct
568{
569 __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
570 __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
571 __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
572 __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
573 __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
574 __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
575 __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
576 __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
577 __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
578 __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
579 __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
580} I2C_TypeDef;
581
582/**
583 * @brief Independent WATCHDOG
584 */
585
586typedef struct
587{
588 __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
589 __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
590 __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
591 __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
592 __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
593} IWDG_TypeDef;
594
595/**
596 * @brief LPTIMER
597 */
598typedef struct
599{
600 __IO uint32_t ISR; /*!< LPTIM Interrupt and Status register, Address offset: 0x00 */
601 __IO uint32_t ICR; /*!< LPTIM Interrupt Clear register, Address offset: 0x04 */
602 __IO uint32_t IER; /*!< LPTIM Interrupt Enable register, Address offset: 0x08 */
603 __IO uint32_t CFGR; /*!< LPTIM Configuration register, Address offset: 0x0C */
604 __IO uint32_t CR; /*!< LPTIM Control register, Address offset: 0x10 */
605 __IO uint32_t CMP; /*!< LPTIM Compare register, Address offset: 0x14 */
606 __IO uint32_t ARR; /*!< LPTIM Autoreload register, Address offset: 0x18 */
607 __IO uint32_t CNT; /*!< LPTIM Counter register, Address offset: 0x1C */
608 __IO uint32_t OR; /*!< LPTIM Option register, Address offset: 0x20 */
609} LPTIM_TypeDef;
610
611/**
612 * @brief Operational Amplifier (OPAMP)
613 */
614
615typedef struct
616{
617 __IO uint32_t CSR; /*!< OPAMP control/status register, Address offset: 0x00 */
618 __IO uint32_t OTR; /*!< OPAMP offset trimming register for normal mode, Address offset: 0x04 */
619 __IO uint32_t LPOTR; /*!< OPAMP offset trimming register for low power mode, Address offset: 0x08 */
620} OPAMP_TypeDef;
621
622typedef struct
623{
624 __IO uint32_t CSR; /*!< OPAMP control/status register, used for bits common to several OPAMP instances, Address offset: 0x00 */
625} OPAMP_Common_TypeDef;
626
627/**
628 * @brief Power Control
629 */
630
631typedef struct
632{
633 __IO uint32_t CR1; /*!< PWR power control register 1, Address offset: 0x00 */
634 __IO uint32_t CR2; /*!< PWR power control register 2, Address offset: 0x04 */
635 __IO uint32_t CR3; /*!< PWR power control register 3, Address offset: 0x08 */
636 __IO uint32_t CR4; /*!< PWR power control register 4, Address offset: 0x0C */
637 __IO uint32_t SR1; /*!< PWR power status register 1, Address offset: 0x10 */
638 __IO uint32_t SR2; /*!< PWR power status register 2, Address offset: 0x14 */
639 __IO uint32_t SCR; /*!< PWR power status reset register, Address offset: 0x18 */
640 uint32_t RESERVED; /*!< Reserved, Address offset: 0x1C */
641 __IO uint32_t PUCRA; /*!< Pull_up control register of portA, Address offset: 0x20 */
642 __IO uint32_t PDCRA; /*!< Pull_Down control register of portA, Address offset: 0x24 */
643 __IO uint32_t PUCRB; /*!< Pull_up control register of portB, Address offset: 0x28 */
644 __IO uint32_t PDCRB; /*!< Pull_Down control register of portB, Address offset: 0x2C */
645 __IO uint32_t PUCRC; /*!< Pull_up control register of portC, Address offset: 0x30 */
646 __IO uint32_t PDCRC; /*!< Pull_Down control register of portC, Address offset: 0x34 */
647 __IO uint32_t PUCRD; /*!< Pull_up control register of portD, Address offset: 0x38 */
648 __IO uint32_t PDCRD; /*!< Pull_Down control register of portD, Address offset: 0x3C */
649 __IO uint32_t PUCRE; /*!< Pull_up control register of portE, Address offset: 0x40 */
650 __IO uint32_t PDCRE; /*!< Pull_Down control register of portE, Address offset: 0x44 */
651 __IO uint32_t PUCRF; /*!< Pull_up control register of portF, Address offset: 0x48 */
652 __IO uint32_t PDCRF; /*!< Pull_Down control register of portF, Address offset: 0x4C */
653 __IO uint32_t PUCRG; /*!< Pull_up control register of portG, Address offset: 0x50 */
654 __IO uint32_t PDCRG; /*!< Pull_Down control register of portG, Address offset: 0x54 */
655 __IO uint32_t PUCRH; /*!< Pull_up control register of portH, Address offset: 0x58 */
656 __IO uint32_t PDCRH; /*!< Pull_Down control register of portH, Address offset: 0x5C */
657} PWR_TypeDef;
658
659
660/**
661 * @brief QUAD Serial Peripheral Interface
662 */
663
664typedef struct
665{
666 __IO uint32_t CR; /*!< QUADSPI Control register, Address offset: 0x00 */
667 __IO uint32_t DCR; /*!< QUADSPI Device Configuration register, Address offset: 0x04 */
668 __IO uint32_t SR; /*!< QUADSPI Status register, Address offset: 0x08 */
669 __IO uint32_t FCR; /*!< QUADSPI Flag Clear register, Address offset: 0x0C */
670 __IO uint32_t DLR; /*!< QUADSPI Data Length register, Address offset: 0x10 */
671 __IO uint32_t CCR; /*!< QUADSPI Communication Configuration register, Address offset: 0x14 */
672 __IO uint32_t AR; /*!< QUADSPI Address register, Address offset: 0x18 */
673 __IO uint32_t ABR; /*!< QUADSPI Alternate Bytes register, Address offset: 0x1C */
674 __IO uint32_t DR; /*!< QUADSPI Data register, Address offset: 0x20 */
675 __IO uint32_t PSMKR; /*!< QUADSPI Polling Status Mask register, Address offset: 0x24 */
676 __IO uint32_t PSMAR; /*!< QUADSPI Polling Status Match register, Address offset: 0x28 */
677 __IO uint32_t PIR; /*!< QUADSPI Polling Interval register, Address offset: 0x2C */
678 __IO uint32_t LPTR; /*!< QUADSPI Low Power Timeout register, Address offset: 0x30 */
679} QUADSPI_TypeDef;
680
681
682/**
683 * @brief Reset and Clock Control
684 */
685
686typedef struct
687{
688 __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
689 __IO uint32_t ICSCR; /*!< RCC internal clock sources calibration register, Address offset: 0x04 */
690 __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x08 */
691 __IO uint32_t PLLCFGR; /*!< RCC system PLL configuration register, Address offset: 0x0C */
692 __IO uint32_t PLLSAI1CFGR; /*!< RCC PLL SAI1 configuration register, Address offset: 0x10 */
693 __IO uint32_t PLLSAI2CFGR; /*!< RCC PLL SAI2 configuration register, Address offset: 0x14 */
694 __IO uint32_t CIER; /*!< RCC clock interrupt enable register, Address offset: 0x18 */
695 __IO uint32_t CIFR; /*!< RCC clock interrupt flag register, Address offset: 0x1C */
696 __IO uint32_t CICR; /*!< RCC clock interrupt clear register, Address offset: 0x20 */
697 uint32_t RESERVED0; /*!< Reserved, Address offset: 0x24 */
698 __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x28 */
699 __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x2C */
700 __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x30 */
701 uint32_t RESERVED1; /*!< Reserved, Address offset: 0x34 */
702 __IO uint32_t APB1RSTR1; /*!< RCC APB1 peripheral reset register 1, Address offset: 0x38 */
703 __IO uint32_t APB1RSTR2; /*!< RCC APB1 peripheral reset register 2, Address offset: 0x3C */
704 __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x40 */
705 uint32_t RESERVED2; /*!< Reserved, Address offset: 0x44 */
706 __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clocks enable register, Address offset: 0x48 */
707 __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clocks enable register, Address offset: 0x4C */
708 __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clocks enable register, Address offset: 0x50 */
709 uint32_t RESERVED3; /*!< Reserved, Address offset: 0x54 */
710 __IO uint32_t APB1ENR1; /*!< RCC APB1 peripheral clocks enable register 1, Address offset: 0x58 */
711 __IO uint32_t APB1ENR2; /*!< RCC APB1 peripheral clocks enable register 2, Address offset: 0x5C */
712 __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clocks enable register, Address offset: 0x60 */
713 uint32_t RESERVED4; /*!< Reserved, Address offset: 0x64 */
714 __IO uint32_t AHB1SMENR; /*!< RCC AHB1 peripheral clocks enable in sleep and stop modes register, Address offset: 0x68 */
715 __IO uint32_t AHB2SMENR; /*!< RCC AHB2 peripheral clocks enable in sleep and stop modes register, Address offset: 0x6C */
716 __IO uint32_t AHB3SMENR; /*!< RCC AHB3 peripheral clocks enable in sleep and stop modes register, Address offset: 0x70 */
717 uint32_t RESERVED5; /*!< Reserved, Address offset: 0x74 */
718 __IO uint32_t APB1SMENR1; /*!< RCC APB1 peripheral clocks enable in sleep mode and stop modes register 1, Address offset: 0x78 */
719 __IO uint32_t APB1SMENR2; /*!< RCC APB1 peripheral clocks enable in sleep mode and stop modes register 2, Address offset: 0x7C */
720 __IO uint32_t APB2SMENR; /*!< RCC APB2 peripheral clocks enable in sleep mode and stop modes register, Address offset: 0x80 */
721 uint32_t RESERVED6; /*!< Reserved, Address offset: 0x84 */
722 __IO uint32_t CCIPR; /*!< RCC peripherals independent clock configuration register, Address offset: 0x88 */
723 uint32_t RESERVED7; /*!< Reserved, Address offset: 0x8C */
724 __IO uint32_t BDCR; /*!< RCC backup domain control register, Address offset: 0x90 */
725 __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x94 */
726} RCC_TypeDef;
727
728/**
729 * @brief Real-Time Clock
730 */
731
732typedef struct
733{
734 __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
735 __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
736 __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */
737 __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */
738 __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
739 __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
740 uint32_t reserved; /*!< Reserved */
741 __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */
742 __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */
743 __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
744 __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */
745 __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
746 __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
747 __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
748 __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
749 __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */
750 __IO uint32_t TAMPCR; /*!< RTC tamper configuration register, Address offset: 0x40 */
751 __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
752 __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x48 */
753 __IO uint32_t OR; /*!< RTC option register, Address offset: 0x4C */
754 __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */
755 __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */
756 __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */
757 __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */
758 __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */
759 __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */
760 __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */
761 __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */
762 __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */
763 __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */
764 __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */
765 __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */
766 __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */
767 __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */
768 __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */
769 __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */
770 __IO uint32_t BKP16R; /*!< RTC backup register 16, Address offset: 0x90 */
771 __IO uint32_t BKP17R; /*!< RTC backup register 17, Address offset: 0x94 */
772 __IO uint32_t BKP18R; /*!< RTC backup register 18, Address offset: 0x98 */
773 __IO uint32_t BKP19R; /*!< RTC backup register 19, Address offset: 0x9C */
774 __IO uint32_t BKP20R; /*!< RTC backup register 20, Address offset: 0xA0 */
775 __IO uint32_t BKP21R; /*!< RTC backup register 21, Address offset: 0xA4 */
776 __IO uint32_t BKP22R; /*!< RTC backup register 22, Address offset: 0xA8 */
777 __IO uint32_t BKP23R; /*!< RTC backup register 23, Address offset: 0xAC */
778 __IO uint32_t BKP24R; /*!< RTC backup register 24, Address offset: 0xB0 */
779 __IO uint32_t BKP25R; /*!< RTC backup register 25, Address offset: 0xB4 */
780 __IO uint32_t BKP26R; /*!< RTC backup register 26, Address offset: 0xB8 */
781 __IO uint32_t BKP27R; /*!< RTC backup register 27, Address offset: 0xBC */
782 __IO uint32_t BKP28R; /*!< RTC backup register 28, Address offset: 0xC0 */
783 __IO uint32_t BKP29R; /*!< RTC backup register 29, Address offset: 0xC4 */
784 __IO uint32_t BKP30R; /*!< RTC backup register 30, Address offset: 0xC8 */
785 __IO uint32_t BKP31R; /*!< RTC backup register 31, Address offset: 0xCC */
786} RTC_TypeDef;
787
788
789/**
790 * @brief Serial Audio Interface
791 */
792
793typedef struct
794{
795 __IO uint32_t GCR; /*!< SAI global configuration register, Address offset: 0x00 */
796} SAI_TypeDef;
797
798typedef struct
799{
800 __IO uint32_t CR1; /*!< SAI block x configuration register 1, Address offset: 0x04 */
801 __IO uint32_t CR2; /*!< SAI block x configuration register 2, Address offset: 0x08 */
802 __IO uint32_t FRCR; /*!< SAI block x frame configuration register, Address offset: 0x0C */
803 __IO uint32_t SLOTR; /*!< SAI block x slot register, Address offset: 0x10 */
804 __IO uint32_t IMR; /*!< SAI block x interrupt mask register, Address offset: 0x14 */
805 __IO uint32_t SR; /*!< SAI block x status register, Address offset: 0x18 */
806 __IO uint32_t CLRFR; /*!< SAI block x clear flag register, Address offset: 0x1C */
807 __IO uint32_t DR; /*!< SAI block x data register, Address offset: 0x20 */
808} SAI_Block_TypeDef;
809
810
811/**
812 * @brief Secure digital input/output Interface
813 */
814
815typedef struct
816{
817 __IO uint32_t POWER; /*!< SDMMC power control register, Address offset: 0x00 */
818 __IO uint32_t CLKCR; /*!< SDMMC clock control register, Address offset: 0x04 */
819 __IO uint32_t ARG; /*!< SDMMC argument register, Address offset: 0x08 */
820 __IO uint32_t CMD; /*!< SDMMC command register, Address offset: 0x0C */
821 __I uint32_t RESPCMD; /*!< SDMMC command response register, Address offset: 0x10 */
822 __I uint32_t RESP1; /*!< SDMMC response 1 register, Address offset: 0x14 */
823 __I uint32_t RESP2; /*!< SDMMC response 2 register, Address offset: 0x18 */
824 __I uint32_t RESP3; /*!< SDMMC response 3 register, Address offset: 0x1C */
825 __I uint32_t RESP4; /*!< SDMMC response 4 register, Address offset: 0x20 */
826 __IO uint32_t DTIMER; /*!< SDMMC data timer register, Address offset: 0x24 */
827 __IO uint32_t DLEN; /*!< SDMMC data length register, Address offset: 0x28 */
828 __IO uint32_t DCTRL; /*!< SDMMC data control register, Address offset: 0x2C */
829 __I uint32_t DCOUNT; /*!< SDMMC data counter register, Address offset: 0x30 */
830 __I uint32_t STA; /*!< SDMMC status register, Address offset: 0x34 */
831 __IO uint32_t ICR; /*!< SDMMC interrupt clear register, Address offset: 0x38 */
832 __IO uint32_t MASK; /*!< SDMMC mask register, Address offset: 0x3C */
833 uint32_t RESERVED0[2]; /*!< Reserved, 0x40-0x44 */
834 __I uint32_t FIFOCNT; /*!< SDMMC FIFO counter register, Address offset: 0x48 */
835 uint32_t RESERVED1[13]; /*!< Reserved, 0x4C-0x7C */
836 __IO uint32_t FIFO; /*!< SDMMC data FIFO register, Address offset: 0x80 */
837} SDMMC_TypeDef;
838
839
840/**
841 * @brief Serial Peripheral Interface
842 */
843
844typedef struct
845{
846 __IO uint32_t CR1; /*!< SPI Control register 1, Address offset: 0x00 */
847 __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
848 __IO uint32_t SR; /*!< SPI Status register, Address offset: 0x08 */
849 __IO uint32_t DR; /*!< SPI data register, Address offset: 0x0C */
850 __IO uint32_t CRCPR; /*!< SPI CRC polynomial register, Address offset: 0x10 */
851 __IO uint32_t RXCRCR; /*!< SPI Rx CRC register, Address offset: 0x14 */
852 __IO uint32_t TXCRCR; /*!< SPI Tx CRC register, Address offset: 0x18 */
853} SPI_TypeDef;
854
855
856/**
857 * @brief Single Wire Protocol Master Interface SPWMI
858 */
859
860typedef struct
861{
862 __IO uint32_t CR; /*!< SWPMI Configuration/Control register, Address offset: 0x00 */
863 __IO uint32_t BRR; /*!< SWPMI bitrate register, Address offset: 0x04 */
864 uint32_t RESERVED1; /*!< Reserved, 0x08 */
865 __IO uint32_t ISR; /*!< SWPMI Interrupt and Status register, Address offset: 0x0C */
866 __IO uint32_t ICR; /*!< SWPMI Interrupt Flag Clear register, Address offset: 0x10 */
867 __IO uint32_t IER; /*!< SWPMI Interrupt Enable register, Address offset: 0x14 */
868 __IO uint32_t RFL; /*!< SWPMI Receive Frame Length register, Address offset: 0x18 */
869 __IO uint32_t TDR; /*!< SWPMI Transmit data register, Address offset: 0x1C */
870 __IO uint32_t RDR; /*!< SWPMI Receive data register, Address offset: 0x20 */
871 __IO uint32_t OR; /*!< SWPMI Option register, Address offset: 0x24 */
872} SWPMI_TypeDef;
873
874
875/**
876 * @brief System configuration controller
877 */
878
879typedef struct
880{
881 __IO uint32_t MEMRMP; /*!< SYSCFG memory remap register, Address offset: 0x00 */
882 __IO uint32_t CFGR1; /*!< SYSCFG configuration register 1, Address offset: 0x04 */
883 __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x08-0x14 */
884 __IO uint32_t SCSR; /*!< SYSCFG SRAM2 control and status register, Address offset: 0x18 */
885 __IO uint32_t CFGR2; /*!< SYSCFG configuration register 2, Address offset: 0x1C */
886 __IO uint32_t SWPR; /*!< SYSCFG SRAM2 write protection register, Address offset: 0x20 */
887 __IO uint32_t SKR; /*!< SYSCFG SRAM2 key register, Address offset: 0x24 */
888} SYSCFG_TypeDef;
889
890
891/**
892 * @brief TIM
893 */
894
895typedef struct
896{
897 __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
898 __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
899 __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */
900 __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
901 __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
902 __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
903 __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
904 __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
905 __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
906 __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
907 __IO uint32_t PSC; /*!< TIM prescaler, Address offset: 0x28 */
908 __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
909 __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
910 __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
911 __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
912 __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
913 __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
914 __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
915 __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
916 __IO uint32_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */
917 __IO uint32_t OR1; /*!< TIM option register 1, Address offset: 0x50 */
918 __IO uint32_t CCMR3; /*!< TIM capture/compare mode register 3, Address offset: 0x54 */
919 __IO uint32_t CCR5; /*!< TIM capture/compare register5, Address offset: 0x58 */
920 __IO uint32_t CCR6; /*!< TIM capture/compare register6, Address offset: 0x5C */
921 __IO uint32_t OR2; /*!< TIM option register 2, Address offset: 0x60 */
922 __IO uint32_t OR3; /*!< TIM option register 3, Address offset: 0x64 */
923} TIM_TypeDef;
924
925
926/**
927 * @brief Touch Sensing Controller (TSC)
928 */
929
930typedef struct
931{
932 __IO uint32_t CR; /*!< TSC control register, Address offset: 0x00 */
933 __IO uint32_t IER; /*!< TSC interrupt enable register, Address offset: 0x04 */
934 __IO uint32_t ICR; /*!< TSC interrupt clear register, Address offset: 0x08 */
935 __IO uint32_t ISR; /*!< TSC interrupt status register, Address offset: 0x0C */
936 __IO uint32_t IOHCR; /*!< TSC I/O hysteresis control register, Address offset: 0x10 */
937 uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
938 __IO uint32_t IOASCR; /*!< TSC I/O analog switch control register, Address offset: 0x18 */
939 uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */
940 __IO uint32_t IOSCR; /*!< TSC I/O sampling control register, Address offset: 0x20 */
941 uint32_t RESERVED3; /*!< Reserved, Address offset: 0x24 */
942 __IO uint32_t IOCCR; /*!< TSC I/O channel control register, Address offset: 0x28 */
943 uint32_t RESERVED4; /*!< Reserved, Address offset: 0x2C */
944 __IO uint32_t IOGCSR; /*!< TSC I/O group control status register, Address offset: 0x30 */
945 __IO uint32_t IOGXCR[8]; /*!< TSC I/O group x counter register, Address offset: 0x34-50 */
946} TSC_TypeDef;
947
948/**
949 * @brief Universal Synchronous Asynchronous Receiver Transmitter
950 */
951
952typedef struct
953{
954 __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
955 __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
956 __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
957 __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
958 __IO uint16_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
959 uint16_t RESERVED2; /*!< Reserved, 0x12 */
960 __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
961 __IO uint16_t RQR; /*!< USART Request register, Address offset: 0x18 */
962 uint16_t RESERVED3; /*!< Reserved, 0x1A */
963 __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
964 __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
965 __IO uint16_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
966 uint16_t RESERVED4; /*!< Reserved, 0x26 */
967 __IO uint16_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
968 uint16_t RESERVED5; /*!< Reserved, 0x2A */
969} USART_TypeDef;
970
971/**
972 * @brief VREFBUF
973 */
974
975typedef struct
976{
977 __IO uint32_t CSR; /*!< VREFBUF control and status register, Address offset: 0x00 */
978 __IO uint32_t CCR; /*!< VREFBUF calibration and control register, Address offset: 0x04 */
979} VREFBUF_TypeDef;
980
981/**
982 * @brief Window WATCHDOG
983 */
984
985typedef struct
986{
987 __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */
988 __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */
989 __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */
990} WWDG_TypeDef;
991
992/**
993 * @brief RNG
994 */
995
996typedef struct
997{
998 __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */
999 __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */
1000 __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */
1001} RNG_TypeDef;
1002
1003/**
1004 * @}
1005 */
1006
1007/** @addtogroup Peripheral_memory_map
1008 * @{
1009 */
1010#define FLASH_BASE ((uint32_t)0x08000000U) /*!< FLASH(up to 1 MB) base address */
1011#define SRAM1_BASE ((uint32_t)0x20000000U) /*!< SRAM1(up to 96 KB) base address */
1012#define SRAM2_BASE ((uint32_t)0x10000000U) /*!< SRAM2(32 KB) base address */
1013#define PERIPH_BASE ((uint32_t)0x40000000U) /*!< Peripheral base address */
1014#define FMC_BASE ((uint32_t)0x60000000U) /*!< FMC base address */
1015#define QSPI_BASE ((uint32_t)0x90000000U) /*!< QUADSPI memories accessible over AHB base address */
1016
1017#define FMC_R_BASE ((uint32_t)0xA0000000U) /*!< FMC control registers base address */
1018#define QSPI_R_BASE ((uint32_t)0xA0001000U) /*!< QUADSPI control registers base address */
1019#define SRAM1_BB_BASE ((uint32_t)0x22000000U) /*!< SRAM1(96 KB) base address in the bit-band region */
1020#define PERIPH_BB_BASE ((uint32_t)0x42000000U) /*!< Peripheral base address in the bit-band region */
1021
1022/* Legacy defines */
1023#define SRAM_BASE SRAM1_BASE
1024#define SRAM_BB_BASE SRAM1_BB_BASE
1025
1026#define SRAM1_SIZE_MAX ((uint32_t)0x00018000U) /*!< maximum SRAM1 size (up to 96 KBytes) */
1027#define SRAM2_SIZE ((uint32_t)0x00008000U) /*!< SRAM2 size (32 KBytes) */
1028
1029/*!< Peripheral memory map */
1030#define APB1PERIPH_BASE PERIPH_BASE
1031#define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000U)
1032#define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000U)
1033#define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000U)
1034
1035#define FMC_BANK1 FMC_BASE
1036#define FMC_BANK1_1 FMC_BANK1
1037#define FMC_BANK1_2 (FMC_BANK1 + 0x04000000U)
1038#define FMC_BANK1_3 (FMC_BANK1 + 0x08000000U)
1039#define FMC_BANK1_4 (FMC_BANK1 + 0x0C000000U)
1040#define FMC_BANK3 (FMC_BASE + 0x20000000U)
1041
1042/*!< APB1 peripherals */
1043#define TIM2_BASE (APB1PERIPH_BASE + 0x0000U)
1044#define TIM3_BASE (APB1PERIPH_BASE + 0x0400U)
1045#define TIM4_BASE (APB1PERIPH_BASE + 0x0800U)
1046#define TIM5_BASE (APB1PERIPH_BASE + 0x0C00U)
1047#define TIM6_BASE (APB1PERIPH_BASE + 0x1000U)
1048#define TIM7_BASE (APB1PERIPH_BASE + 0x1400U)
1049#define RTC_BASE (APB1PERIPH_BASE + 0x2800U)
1050#define WWDG_BASE (APB1PERIPH_BASE + 0x2C00U)
1051#define IWDG_BASE (APB1PERIPH_BASE + 0x3000U)
1052#define SPI2_BASE (APB1PERIPH_BASE + 0x3800U)
1053#define SPI3_BASE (APB1PERIPH_BASE + 0x3C00U)
1054#define USART2_BASE (APB1PERIPH_BASE + 0x4400U)
1055#define USART3_BASE (APB1PERIPH_BASE + 0x4800U)
1056#define UART4_BASE (APB1PERIPH_BASE + 0x4C00U)
1057#define UART5_BASE (APB1PERIPH_BASE + 0x5000U)
1058#define I2C1_BASE (APB1PERIPH_BASE + 0x5400U)
1059#define I2C2_BASE (APB1PERIPH_BASE + 0x5800U)
1060#define I2C3_BASE (APB1PERIPH_BASE + 0x5C00U)
1061#define CAN1_BASE (APB1PERIPH_BASE + 0x6400U)
1062#define PWR_BASE (APB1PERIPH_BASE + 0x7000U)
1063#define DAC_BASE (APB1PERIPH_BASE + 0x7400U)
1064#define DAC1_BASE (APB1PERIPH_BASE + 0x7400U)
1065#define OPAMP_BASE (APB1PERIPH_BASE + 0x7800U)
1066#define OPAMP1_BASE (APB1PERIPH_BASE + 0x7800U)
1067#define OPAMP2_BASE (APB1PERIPH_BASE + 0x7810U)
1068#define LPTIM1_BASE (APB1PERIPH_BASE + 0x7C00U)
1069#define LPUART1_BASE (APB1PERIPH_BASE + 0x8000U)
1070#define SWPMI1_BASE (APB1PERIPH_BASE + 0x8800U)
1071#define LPTIM2_BASE (APB1PERIPH_BASE + 0x9400U)
1072
1073
1074/*!< APB2 peripherals */
1075#define SYSCFG_BASE (APB2PERIPH_BASE + 0x0000U)
1076#define VREFBUF_BASE (APB2PERIPH_BASE + 0x0030U)
1077#define COMP1_BASE (APB2PERIPH_BASE + 0x0200U)
1078#define COMP2_BASE (APB2PERIPH_BASE + 0x0204U)
1079#define EXTI_BASE (APB2PERIPH_BASE + 0x0400U)
1080#define FIREWALL_BASE (APB2PERIPH_BASE + 0x1C00U)
1081#define SDMMC1_BASE (APB2PERIPH_BASE + 0x2800U)
1082#define TIM1_BASE (APB2PERIPH_BASE + 0x2C00U)
1083#define SPI1_BASE (APB2PERIPH_BASE + 0x3000U)
1084#define TIM8_BASE (APB2PERIPH_BASE + 0x3400U)
1085#define USART1_BASE (APB2PERIPH_BASE + 0x3800U)
1086#define TIM15_BASE (APB2PERIPH_BASE + 0x4000U)
1087#define TIM16_BASE (APB2PERIPH_BASE + 0x4400U)
1088#define TIM17_BASE (APB2PERIPH_BASE + 0x4800U)
1089#define SAI1_BASE (APB2PERIPH_BASE + 0x5400U)
1090#define SAI1_Block_A_BASE (SAI1_BASE + 0x004)
1091#define SAI1_Block_B_BASE (SAI1_BASE + 0x024)
1092#define SAI2_BASE (APB2PERIPH_BASE + 0x5800U)
1093#define SAI2_Block_A_BASE (SAI2_BASE + 0x004)
1094#define SAI2_Block_B_BASE (SAI2_BASE + 0x024)
1095#define DFSDM1_BASE (APB2PERIPH_BASE + 0x6000U)
1096#define DFSDM1_Channel0_BASE (DFSDM1_BASE + 0x00)
1097#define DFSDM1_Channel1_BASE (DFSDM1_BASE + 0x20)
1098#define DFSDM1_Channel2_BASE (DFSDM1_BASE + 0x40)
1099#define DFSDM1_Channel3_BASE (DFSDM1_BASE + 0x60)
1100#define DFSDM1_Channel4_BASE (DFSDM1_BASE + 0x80)
1101#define DFSDM1_Channel5_BASE (DFSDM1_BASE + 0xA0)
1102#define DFSDM1_Channel6_BASE (DFSDM1_BASE + 0xC0)
1103#define DFSDM1_Channel7_BASE (DFSDM1_BASE + 0xE0)
1104#define DFSDM1_Filter0_BASE (DFSDM1_BASE + 0x100)
1105#define DFSDM1_Filter1_BASE (DFSDM1_BASE + 0x180)
1106#define DFSDM1_Filter2_BASE (DFSDM1_BASE + 0x200)
1107#define DFSDM1_Filter3_BASE (DFSDM1_BASE + 0x280)
1108
1109/*!< AHB1 peripherals */
1110#define DMA1_BASE (AHB1PERIPH_BASE)
1111#define DMA2_BASE (AHB1PERIPH_BASE + 0x0400U)
1112#define RCC_BASE (AHB1PERIPH_BASE + 0x1000U)
1113#define FLASH_R_BASE (AHB1PERIPH_BASE + 0x2000U)
1114#define CRC_BASE (AHB1PERIPH_BASE + 0x3000U)
1115#define TSC_BASE (AHB1PERIPH_BASE + 0x4000U)
1116
1117
1118#define DMA1_Channel1_BASE (DMA1_BASE + 0x0008U)
1119#define DMA1_Channel2_BASE (DMA1_BASE + 0x001CU)
1120#define DMA1_Channel3_BASE (DMA1_BASE + 0x0030U)
1121#define DMA1_Channel4_BASE (DMA1_BASE + 0x0044U)
1122#define DMA1_Channel5_BASE (DMA1_BASE + 0x0058U)
1123#define DMA1_Channel6_BASE (DMA1_BASE + 0x006CU)
1124#define DMA1_Channel7_BASE (DMA1_BASE + 0x0080U)
1125#define DMA1_CSELR_BASE (DMA1_BASE + 0x00A8U)
1126
1127
1128#define DMA2_Channel1_BASE (DMA2_BASE + 0x0008U)
1129#define DMA2_Channel2_BASE (DMA2_BASE + 0x001CU)
1130#define DMA2_Channel3_BASE (DMA2_BASE + 0x0030U)
1131#define DMA2_Channel4_BASE (DMA2_BASE + 0x0044U)
1132#define DMA2_Channel5_BASE (DMA2_BASE + 0x0058U)
1133#define DMA2_Channel6_BASE (DMA2_BASE + 0x006CU)
1134#define DMA2_Channel7_BASE (DMA2_BASE + 0x0080U)
1135#define DMA2_CSELR_BASE (DMA2_BASE + 0x00A8U)
1136
1137
1138/*!< AHB2 peripherals */
1139#define GPIOA_BASE (AHB2PERIPH_BASE + 0x0000U)
1140#define GPIOB_BASE (AHB2PERIPH_BASE + 0x0400U)
1141#define GPIOC_BASE (AHB2PERIPH_BASE + 0x0800U)
1142#define GPIOD_BASE (AHB2PERIPH_BASE + 0x0C00U)
1143#define GPIOE_BASE (AHB2PERIPH_BASE + 0x1000U)
1144#define GPIOF_BASE (AHB2PERIPH_BASE + 0x1400U)
1145#define GPIOG_BASE (AHB2PERIPH_BASE + 0x1800U)
1146#define GPIOH_BASE (AHB2PERIPH_BASE + 0x1C00U)
1147
1148
1149#define ADC1_BASE (AHB2PERIPH_BASE + 0x08040000U)
1150#define ADC2_BASE (AHB2PERIPH_BASE + 0x08040100U)
1151#define ADC3_BASE (AHB2PERIPH_BASE + 0x08040200U)
1152#define ADC123_COMMON_BASE (AHB2PERIPH_BASE + 0x08040300U)
1153
1154
1155#define RNG_BASE (AHB2PERIPH_BASE + 0x08060800U)
1156
1157
1158/*!< FMC Banks registers base address */
1159#define FMC_Bank1_R_BASE (FMC_R_BASE + 0x0000U)
1160#define FMC_Bank1E_R_BASE (FMC_R_BASE + 0x0104U)
1161#define FMC_Bank3_R_BASE (FMC_R_BASE + 0x0080U)
1162
1163/* Debug MCU registers base address */
1164#define DBGMCU_BASE ((uint32_t)0xE0042000U)
1165
1166
1167#define PACKAGE_BASE ((uint32_t)0x1FFF7500U) /*!< Package data register base address */
1168#define UID_BASE ((uint32_t)0x1FFF7590U) /*!< Unique device ID register base address */
1169#define FLASHSIZE_BASE ((uint32_t)0x1FFF75E0U) /*!< Flash size data register base address */
1170/**
1171 * @}
1172 */
1173
1174/** @addtogroup Peripheral_declaration
1175 * @{
1176 */
1177#define TIM2 ((TIM_TypeDef *) TIM2_BASE)
1178#define TIM3 ((TIM_TypeDef *) TIM3_BASE)
1179#define TIM4 ((TIM_TypeDef *) TIM4_BASE)
1180#define TIM5 ((TIM_TypeDef *) TIM5_BASE)
1181#define TIM6 ((TIM_TypeDef *) TIM6_BASE)
1182#define TIM7 ((TIM_TypeDef *) TIM7_BASE)
1183#define RTC ((RTC_TypeDef *) RTC_BASE)
1184#define WWDG ((WWDG_TypeDef *) WWDG_BASE)
1185#define IWDG ((IWDG_TypeDef *) IWDG_BASE)
1186#define SPI2 ((SPI_TypeDef *) SPI2_BASE)
1187#define SPI3 ((SPI_TypeDef *) SPI3_BASE)
1188#define USART2 ((USART_TypeDef *) USART2_BASE)
1189#define USART3 ((USART_TypeDef *) USART3_BASE)
1190#define UART4 ((USART_TypeDef *) UART4_BASE)
1191#define UART5 ((USART_TypeDef *) UART5_BASE)
1192#define I2C1 ((I2C_TypeDef *) I2C1_BASE)
1193#define I2C2 ((I2C_TypeDef *) I2C2_BASE)
1194#define I2C3 ((I2C_TypeDef *) I2C3_BASE)
1195#define CAN ((CAN_TypeDef *) CAN1_BASE)
1196#define CAN1 ((CAN_TypeDef *) CAN1_BASE)
1197#define PWR ((PWR_TypeDef *) PWR_BASE)
1198#define DAC ((DAC_TypeDef *) DAC1_BASE)
1199#define DAC1 ((DAC_TypeDef *) DAC1_BASE)
1200#define OPAMP ((OPAMP_TypeDef *) OPAMP_BASE)
1201#define OPAMP1 ((OPAMP_TypeDef *) OPAMP1_BASE)
1202#define OPAMP2 ((OPAMP_TypeDef *) OPAMP2_BASE)
1203#define OPAMP12_COMMON ((OPAMP_Common_TypeDef *) OPAMP1_BASE)
1204#define LPTIM1 ((LPTIM_TypeDef *) LPTIM1_BASE)
1205#define LPUART1 ((USART_TypeDef *) LPUART1_BASE)
1206#define SWPMI1 ((SWPMI_TypeDef *) SWPMI1_BASE)
1207#define LPTIM2 ((LPTIM_TypeDef *) LPTIM2_BASE)
1208
1209#define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE)
1210#define VREFBUF ((VREFBUF_TypeDef *) VREFBUF_BASE)
1211#define COMP1 ((COMP_TypeDef *) COMP1_BASE)
1212#define COMP2 ((COMP_TypeDef *) COMP2_BASE)
1213#define COMP12_COMMON ((COMP_Common_TypeDef *) COMP2_BASE)
1214#define EXTI ((EXTI_TypeDef *) EXTI_BASE)
1215#define FIREWALL ((FIREWALL_TypeDef *) FIREWALL_BASE)
1216#define SDMMC1 ((SDMMC_TypeDef *) SDMMC1_BASE)
1217#define TIM1 ((TIM_TypeDef *) TIM1_BASE)
1218#define SPI1 ((SPI_TypeDef *) SPI1_BASE)
1219#define TIM8 ((TIM_TypeDef *) TIM8_BASE)
1220#define USART1 ((USART_TypeDef *) USART1_BASE)
1221#define TIM15 ((TIM_TypeDef *) TIM15_BASE)
1222#define TIM16 ((TIM_TypeDef *) TIM16_BASE)
1223#define TIM17 ((TIM_TypeDef *) TIM17_BASE)
1224#define SAI1 ((SAI_TypeDef *) SAI1_BASE)
1225#define SAI1_Block_A ((SAI_Block_TypeDef *)SAI1_Block_A_BASE)
1226#define SAI1_Block_B ((SAI_Block_TypeDef *)SAI1_Block_B_BASE)
1227#define SAI2 ((SAI_TypeDef *) SAI2_BASE)
1228#define SAI2_Block_A ((SAI_Block_TypeDef *)SAI2_Block_A_BASE)
1229#define SAI2_Block_B ((SAI_Block_TypeDef *)SAI2_Block_B_BASE)
1230#define DFSDM1_Channel0 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel0_BASE)
1231#define DFSDM1_Channel1 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel1_BASE)
1232#define DFSDM1_Channel2 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel2_BASE)
1233#define DFSDM1_Channel3 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel3_BASE)
1234#define DFSDM1_Channel4 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel4_BASE)
1235#define DFSDM1_Channel5 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel5_BASE)
1236#define DFSDM1_Channel6 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel6_BASE)
1237#define DFSDM1_Channel7 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel7_BASE)
1238#define DFSDM1_Filter0 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter0_BASE)
1239#define DFSDM1_Filter1 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter1_BASE)
1240#define DFSDM1_Filter2 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter2_BASE)
1241#define DFSDM1_Filter3 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter3_BASE)
1242/* Aliases to keep compatibility after DFSDM renaming */
1243#define DFSDM_Channel0 DFSDM1_Channel0
1244#define DFSDM_Channel1 DFSDM1_Channel1
1245#define DFSDM_Channel2 DFSDM1_Channel2
1246#define DFSDM_Channel3 DFSDM1_Channel3
1247#define DFSDM_Channel4 DFSDM1_Channel4
1248#define DFSDM_Channel5 DFSDM1_Channel5
1249#define DFSDM_Channel6 DFSDM1_Channel6
1250#define DFSDM_Channel7 DFSDM1_Channel7
1251#define DFSDM_Filter0 DFSDM1_Filter0
1252#define DFSDM_Filter1 DFSDM1_Filter1
1253#define DFSDM_Filter2 DFSDM1_Filter2
1254#define DFSDM_Filter3 DFSDM1_Filter3
1255#define DMA1 ((DMA_TypeDef *) DMA1_BASE)
1256#define DMA2 ((DMA_TypeDef *) DMA2_BASE)
1257#define RCC ((RCC_TypeDef *) RCC_BASE)
1258#define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
1259#define CRC ((CRC_TypeDef *) CRC_BASE)
1260#define TSC ((TSC_TypeDef *) TSC_BASE)
1261
1262#define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
1263#define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
1264#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
1265#define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
1266#define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
1267#define GPIOF ((GPIO_TypeDef *) GPIOF_BASE)
1268#define GPIOG ((GPIO_TypeDef *) GPIOG_BASE)
1269#define GPIOH ((GPIO_TypeDef *) GPIOH_BASE)
1270#define ADC1 ((ADC_TypeDef *) ADC1_BASE)
1271#define ADC2 ((ADC_TypeDef *) ADC2_BASE)
1272#define ADC3 ((ADC_TypeDef *) ADC3_BASE)
1273#define ADC123_COMMON ((ADC_Common_TypeDef *) ADC123_COMMON_BASE)
1274#define RNG ((RNG_TypeDef *) RNG_BASE)
1275
1276
1277#define DMA1_Channel1 ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE)
1278#define DMA1_Channel2 ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE)
1279#define DMA1_Channel3 ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE)
1280#define DMA1_Channel4 ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE)
1281#define DMA1_Channel5 ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE)
1282#define DMA1_Channel6 ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE)
1283#define DMA1_Channel7 ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE)
1284#define DMA1_CSELR ((DMA_Request_TypeDef *) DMA1_CSELR_BASE)
1285
1286
1287#define DMA2_Channel1 ((DMA_Channel_TypeDef *) DMA2_Channel1_BASE)
1288#define DMA2_Channel2 ((DMA_Channel_TypeDef *) DMA2_Channel2_BASE)
1289#define DMA2_Channel3 ((DMA_Channel_TypeDef *) DMA2_Channel3_BASE)
1290#define DMA2_Channel4 ((DMA_Channel_TypeDef *) DMA2_Channel4_BASE)
1291#define DMA2_Channel5 ((DMA_Channel_TypeDef *) DMA2_Channel5_BASE)
1292#define DMA2_Channel6 ((DMA_Channel_TypeDef *) DMA2_Channel6_BASE)
1293#define DMA2_Channel7 ((DMA_Channel_TypeDef *) DMA2_Channel7_BASE)
1294#define DMA2_CSELR ((DMA_Request_TypeDef *) DMA2_CSELR_BASE)
1295
1296
1297#define FMC_Bank1_R ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE)
1298#define FMC_Bank1E_R ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE)
1299#define FMC_Bank3_R ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE)
1300
1301#define QUADSPI ((QUADSPI_TypeDef *) QSPI_R_BASE)
1302
1303#define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
1304
1305/**
1306 * @}
1307 */
1308
1309/** @addtogroup Exported_constants
1310 * @{
1311 */
1312
1313/** @addtogroup Peripheral_Registers_Bits_Definition
1314 * @{
1315 */
1316
1317/******************************************************************************/
1318/* Peripheral Registers_Bits_Definition */
1319/******************************************************************************/
1320
1321/******************************************************************************/
1322/* */
1323/* Analog to Digital Converter */
1324/* */
1325/******************************************************************************/
1326
1327/*
1328 * @brief Specific device feature definitions (not present on all devices in the STM32L4 serie)
1329 */
1330#define ADC_MULTIMODE_SUPPORT /*!< ADC feature available only on specific devices: multimode available on devices with several ADC instances */
1331
1332/******************** Bit definition for ADC_ISR register *******************/
1333#define ADC_ISR_ADRDY_Pos (0U)
1334#define ADC_ISR_ADRDY_Msk (0x1U << ADC_ISR_ADRDY_Pos) /*!< 0x00000001 */
1335#define ADC_ISR_ADRDY ADC_ISR_ADRDY_Msk /*!< ADC ready flag */
1336#define ADC_ISR_EOSMP_Pos (1U)
1337#define ADC_ISR_EOSMP_Msk (0x1U << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */
1338#define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC group regular end of sampling flag */
1339#define ADC_ISR_EOC_Pos (2U)
1340#define ADC_ISR_EOC_Msk (0x1U << ADC_ISR_EOC_Pos) /*!< 0x00000004 */
1341#define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC group regular end of unitary conversion flag */
1342#define ADC_ISR_EOS_Pos (3U)
1343#define ADC_ISR_EOS_Msk (0x1U << ADC_ISR_EOS_Pos) /*!< 0x00000008 */
1344#define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC group regular end of sequence conversions flag */
1345#define ADC_ISR_OVR_Pos (4U)
1346#define ADC_ISR_OVR_Msk (0x1U << ADC_ISR_OVR_Pos) /*!< 0x00000010 */
1347#define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC group regular overrun flag */
1348#define ADC_ISR_JEOC_Pos (5U)
1349#define ADC_ISR_JEOC_Msk (0x1U << ADC_ISR_JEOC_Pos) /*!< 0x00000020 */
1350#define ADC_ISR_JEOC ADC_ISR_JEOC_Msk /*!< ADC group injected end of unitary conversion flag */
1351#define ADC_ISR_JEOS_Pos (6U)
1352#define ADC_ISR_JEOS_Msk (0x1U << ADC_ISR_JEOS_Pos) /*!< 0x00000040 */
1353#define ADC_ISR_JEOS ADC_ISR_JEOS_Msk /*!< ADC group injected end of sequence conversions flag */
1354#define ADC_ISR_AWD1_Pos (7U)
1355#define ADC_ISR_AWD1_Msk (0x1U << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */
1356#define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC analog watchdog 1 flag */
1357#define ADC_ISR_AWD2_Pos (8U)
1358#define ADC_ISR_AWD2_Msk (0x1U << ADC_ISR_AWD2_Pos) /*!< 0x00000100 */
1359#define ADC_ISR_AWD2 ADC_ISR_AWD2_Msk /*!< ADC analog watchdog 2 flag */
1360#define ADC_ISR_AWD3_Pos (9U)
1361#define ADC_ISR_AWD3_Msk (0x1U << ADC_ISR_AWD3_Pos) /*!< 0x00000200 */
1362#define ADC_ISR_AWD3 ADC_ISR_AWD3_Msk /*!< ADC analog watchdog 3 flag */
1363#define ADC_ISR_JQOVF_Pos (10U)
1364#define ADC_ISR_JQOVF_Msk (0x1U << ADC_ISR_JQOVF_Pos) /*!< 0x00000400 */
1365#define ADC_ISR_JQOVF ADC_ISR_JQOVF_Msk /*!< ADC group injected contexts queue overflow flag */
1366
1367/******************** Bit definition for ADC_IER register *******************/
1368#define ADC_IER_ADRDYIE_Pos (0U)
1369#define ADC_IER_ADRDYIE_Msk (0x1U << ADC_IER_ADRDYIE_Pos) /*!< 0x00000001 */
1370#define ADC_IER_ADRDYIE ADC_IER_ADRDYIE_Msk /*!< ADC ready interrupt */
1371#define ADC_IER_EOSMPIE_Pos (1U)
1372#define ADC_IER_EOSMPIE_Msk (0x1U << ADC_IER_EOSMPIE_Pos) /*!< 0x00000002 */
1373#define ADC_IER_EOSMPIE ADC_IER_EOSMPIE_Msk /*!< ADC group regular end of sampling interrupt */
1374#define ADC_IER_EOCIE_Pos (2U)
1375#define ADC_IER_EOCIE_Msk (0x1U << ADC_IER_EOCIE_Pos) /*!< 0x00000004 */
1376#define ADC_IER_EOCIE ADC_IER_EOCIE_Msk /*!< ADC group regular end of unitary conversion interrupt */
1377#define ADC_IER_EOSIE_Pos (3U)
1378#define ADC_IER_EOSIE_Msk (0x1U << ADC_IER_EOSIE_Pos) /*!< 0x00000008 */
1379#define ADC_IER_EOSIE ADC_IER_EOSIE_Msk /*!< ADC group regular end of sequence conversions interrupt */
1380#define ADC_IER_OVRIE_Pos (4U)
1381#define ADC_IER_OVRIE_Msk (0x1U << ADC_IER_OVRIE_Pos) /*!< 0x00000010 */
1382#define ADC_IER_OVRIE ADC_IER_OVRIE_Msk /*!< ADC group regular overrun interrupt */
1383#define ADC_IER_JEOCIE_Pos (5U)
1384#define ADC_IER_JEOCIE_Msk (0x1U << ADC_IER_JEOCIE_Pos) /*!< 0x00000020 */
1385#define ADC_IER_JEOCIE ADC_IER_JEOCIE_Msk /*!< ADC group injected end of unitary conversion interrupt */
1386#define ADC_IER_JEOSIE_Pos (6U)
1387#define ADC_IER_JEOSIE_Msk (0x1U << ADC_IER_JEOSIE_Pos) /*!< 0x00000040 */
1388#define ADC_IER_JEOSIE ADC_IER_JEOSIE_Msk /*!< ADC group injected end of sequence conversions interrupt */
1389#define ADC_IER_AWD1IE_Pos (7U)
1390#define ADC_IER_AWD1IE_Msk (0x1U << ADC_IER_AWD1IE_Pos) /*!< 0x00000080 */
1391#define ADC_IER_AWD1IE ADC_IER_AWD1IE_Msk /*!< ADC analog watchdog 1 interrupt */
1392#define ADC_IER_AWD2IE_Pos (8U)
1393#define ADC_IER_AWD2IE_Msk (0x1U << ADC_IER_AWD2IE_Pos) /*!< 0x00000100 */
1394#define ADC_IER_AWD2IE ADC_IER_AWD2IE_Msk /*!< ADC analog watchdog 2 interrupt */
1395#define ADC_IER_AWD3IE_Pos (9U)
1396#define ADC_IER_AWD3IE_Msk (0x1U << ADC_IER_AWD3IE_Pos) /*!< 0x00000200 */
1397#define ADC_IER_AWD3IE ADC_IER_AWD3IE_Msk /*!< ADC analog watchdog 3 interrupt */
1398#define ADC_IER_JQOVFIE_Pos (10U)
1399#define ADC_IER_JQOVFIE_Msk (0x1U << ADC_IER_JQOVFIE_Pos) /*!< 0x00000400 */
1400#define ADC_IER_JQOVFIE ADC_IER_JQOVFIE_Msk /*!< ADC group injected contexts queue overflow interrupt */
1401
1402/* Legacy defines */
1403#define ADC_IER_ADRDY (ADC_IER_ADRDYIE)
1404#define ADC_IER_EOSMP (ADC_IER_EOSMPIE)
1405#define ADC_IER_EOC (ADC_IER_EOCIE)
1406#define ADC_IER_EOS (ADC_IER_EOSIE)
1407#define ADC_IER_OVR (ADC_IER_OVRIE)
1408#define ADC_IER_JEOC (ADC_IER_JEOCIE)
1409#define ADC_IER_JEOS (ADC_IER_JEOSIE)
1410#define ADC_IER_AWD1 (ADC_IER_AWD1IE)
1411#define ADC_IER_AWD2 (ADC_IER_AWD2IE)
1412#define ADC_IER_AWD3 (ADC_IER_AWD3IE)
1413#define ADC_IER_JQOVF (ADC_IER_JQOVFIE)
1414
1415/******************** Bit definition for ADC_CR register ********************/
1416#define ADC_CR_ADEN_Pos (0U)
1417#define ADC_CR_ADEN_Msk (0x1U << ADC_CR_ADEN_Pos) /*!< 0x00000001 */
1418#define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC enable */
1419#define ADC_CR_ADDIS_Pos (1U)
1420#define ADC_CR_ADDIS_Msk (0x1U << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */
1421#define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC disable */
1422#define ADC_CR_ADSTART_Pos (2U)
1423#define ADC_CR_ADSTART_Msk (0x1U << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */
1424#define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC group regular conversion start */
1425#define ADC_CR_JADSTART_Pos (3U)
1426#define ADC_CR_JADSTART_Msk (0x1U << ADC_CR_JADSTART_Pos) /*!< 0x00000008 */
1427#define ADC_CR_JADSTART ADC_CR_JADSTART_Msk /*!< ADC group injected conversion start */
1428#define ADC_CR_ADSTP_Pos (4U)
1429#define ADC_CR_ADSTP_Msk (0x1U << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */
1430#define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC group regular conversion stop */
1431#define ADC_CR_JADSTP_Pos (5U)
1432#define ADC_CR_JADSTP_Msk (0x1U << ADC_CR_JADSTP_Pos) /*!< 0x00000020 */
1433#define ADC_CR_JADSTP ADC_CR_JADSTP_Msk /*!< ADC group injected conversion stop */
1434#define ADC_CR_ADVREGEN_Pos (28U)
1435#define ADC_CR_ADVREGEN_Msk (0x1U << ADC_CR_ADVREGEN_Pos) /*!< 0x10000000 */
1436#define ADC_CR_ADVREGEN ADC_CR_ADVREGEN_Msk /*!< ADC voltage regulator enable */
1437#define ADC_CR_DEEPPWD_Pos (29U)
1438#define ADC_CR_DEEPPWD_Msk (0x1U << ADC_CR_DEEPPWD_Pos) /*!< 0x20000000 */
1439#define ADC_CR_DEEPPWD ADC_CR_DEEPPWD_Msk /*!< ADC deep power down enable */
1440#define ADC_CR_ADCALDIF_Pos (30U)
1441#define ADC_CR_ADCALDIF_Msk (0x1U << ADC_CR_ADCALDIF_Pos) /*!< 0x40000000 */
1442#define ADC_CR_ADCALDIF ADC_CR_ADCALDIF_Msk /*!< ADC differential mode for calibration */
1443#define ADC_CR_ADCAL_Pos (31U)
1444#define ADC_CR_ADCAL_Msk (0x1U << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */
1445#define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC calibration */
1446
1447/******************** Bit definition for ADC_CFGR register ******************/
1448#define ADC_CFGR_DMAEN_Pos (0U)
1449#define ADC_CFGR_DMAEN_Msk (0x1U << ADC_CFGR_DMAEN_Pos) /*!< 0x00000001 */
1450#define ADC_CFGR_DMAEN ADC_CFGR_DMAEN_Msk /*!< ADC DMA transfer enable */
1451#define ADC_CFGR_DMACFG_Pos (1U)
1452#define ADC_CFGR_DMACFG_Msk (0x1U << ADC_CFGR_DMACFG_Pos) /*!< 0x00000002 */
1453#define ADC_CFGR_DMACFG ADC_CFGR_DMACFG_Msk /*!< ADC DMA transfer configuration */
1454
1455#define ADC_CFGR_RES_Pos (3U)
1456#define ADC_CFGR_RES_Msk (0x3U << ADC_CFGR_RES_Pos) /*!< 0x00000018 */
1457#define ADC_CFGR_RES ADC_CFGR_RES_Msk /*!< ADC data resolution */
1458#define ADC_CFGR_RES_0 (0x1U << ADC_CFGR_RES_Pos) /*!< 0x00000008 */
1459#define ADC_CFGR_RES_1 (0x2U << ADC_CFGR_RES_Pos) /*!< 0x00000010 */
1460
1461#define ADC_CFGR_ALIGN_Pos (5U)
1462#define ADC_CFGR_ALIGN_Msk (0x1U << ADC_CFGR_ALIGN_Pos) /*!< 0x00000020 */
1463#define ADC_CFGR_ALIGN ADC_CFGR_ALIGN_Msk /*!< ADC data alignement */
1464
1465#define ADC_CFGR_EXTSEL_Pos (6U)
1466#define ADC_CFGR_EXTSEL_Msk (0xFU << ADC_CFGR_EXTSEL_Pos) /*!< 0x000003C0 */
1467#define ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_Msk /*!< ADC group regular external trigger source */
1468#define ADC_CFGR_EXTSEL_0 (0x1U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000040 */
1469#define ADC_CFGR_EXTSEL_1 (0x2U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000080 */
1470#define ADC_CFGR_EXTSEL_2 (0x4U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000100 */
1471#define ADC_CFGR_EXTSEL_3 (0x8U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000200 */
1472
1473#define ADC_CFGR_EXTEN_Pos (10U)
1474#define ADC_CFGR_EXTEN_Msk (0x3U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000C00 */
1475#define ADC_CFGR_EXTEN ADC_CFGR_EXTEN_Msk /*!< ADC group regular external trigger polarity */
1476#define ADC_CFGR_EXTEN_0 (0x1U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000400 */
1477#define ADC_CFGR_EXTEN_1 (0x2U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000800 */
1478
1479#define ADC_CFGR_OVRMOD_Pos (12U)
1480#define ADC_CFGR_OVRMOD_Msk (0x1U << ADC_CFGR_OVRMOD_Pos) /*!< 0x00001000 */
1481#define ADC_CFGR_OVRMOD ADC_CFGR_OVRMOD_Msk /*!< ADC group regular overrun configuration */
1482#define ADC_CFGR_CONT_Pos (13U)
1483#define ADC_CFGR_CONT_Msk (0x1U << ADC_CFGR_CONT_Pos) /*!< 0x00002000 */
1484#define ADC_CFGR_CONT ADC_CFGR_CONT_Msk /*!< ADC group regular continuous conversion mode */
1485#define ADC_CFGR_AUTDLY_Pos (14U)
1486#define ADC_CFGR_AUTDLY_Msk (0x1U << ADC_CFGR_AUTDLY_Pos) /*!< 0x00004000 */
1487#define ADC_CFGR_AUTDLY ADC_CFGR_AUTDLY_Msk /*!< ADC low power auto wait */
1488
1489#define ADC_CFGR_DISCEN_Pos (16U)
1490#define ADC_CFGR_DISCEN_Msk (0x1U << ADC_CFGR_DISCEN_Pos) /*!< 0x00010000 */
1491#define ADC_CFGR_DISCEN ADC_CFGR_DISCEN_Msk /*!< ADC group regular sequencer discontinuous mode */
1492
1493#define ADC_CFGR_DISCNUM_Pos (17U)
1494#define ADC_CFGR_DISCNUM_Msk (0x7U << ADC_CFGR_DISCNUM_Pos) /*!< 0x000E0000 */
1495#define ADC_CFGR_DISCNUM ADC_CFGR_DISCNUM_Msk /*!< ADC group regular sequencer discontinuous number of ranks */
1496#define ADC_CFGR_DISCNUM_0 (0x1U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00020000 */
1497#define ADC_CFGR_DISCNUM_1 (0x2U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00040000 */
1498#define ADC_CFGR_DISCNUM_2 (0x4U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00080000 */
1499
1500#define ADC_CFGR_JDISCEN_Pos (20U)
1501#define ADC_CFGR_JDISCEN_Msk (0x1U << ADC_CFGR_JDISCEN_Pos) /*!< 0x00100000 */
1502#define ADC_CFGR_JDISCEN ADC_CFGR_JDISCEN_Msk /*!< ADC group injected sequencer discontinuous mode */
1503#define ADC_CFGR_JQM_Pos (21U)
1504#define ADC_CFGR_JQM_Msk (0x1U << ADC_CFGR_JQM_Pos) /*!< 0x00200000 */
1505#define ADC_CFGR_JQM ADC_CFGR_JQM_Msk /*!< ADC group injected contexts queue mode */
1506#define ADC_CFGR_AWD1SGL_Pos (22U)
1507#define ADC_CFGR_AWD1SGL_Msk (0x1U << ADC_CFGR_AWD1SGL_Pos) /*!< 0x00400000 */
1508#define ADC_CFGR_AWD1SGL ADC_CFGR_AWD1SGL_Msk /*!< ADC analog watchdog 1 monitoring a single channel or all channels */
1509#define ADC_CFGR_AWD1EN_Pos (23U)
1510#define ADC_CFGR_AWD1EN_Msk (0x1U << ADC_CFGR_AWD1EN_Pos) /*!< 0x00800000 */
1511#define ADC_CFGR_AWD1EN ADC_CFGR_AWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group regular */
1512#define ADC_CFGR_JAWD1EN_Pos (24U)
1513#define ADC_CFGR_JAWD1EN_Msk (0x1U << ADC_CFGR_JAWD1EN_Pos) /*!< 0x01000000 */
1514#define ADC_CFGR_JAWD1EN ADC_CFGR_JAWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group injected */
1515#define ADC_CFGR_JAUTO_Pos (25U)
1516#define ADC_CFGR_JAUTO_Msk (0x1U << ADC_CFGR_JAUTO_Pos) /*!< 0x02000000 */
1517#define ADC_CFGR_JAUTO ADC_CFGR_JAUTO_Msk /*!< ADC group injected automatic trigger mode */
1518
1519#define ADC_CFGR_AWD1CH_Pos (26U)
1520#define ADC_CFGR_AWD1CH_Msk (0x1FU << ADC_CFGR_AWD1CH_Pos) /*!< 0x7C000000 */
1521#define ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_Msk /*!< ADC analog watchdog 1 monitored channel selection */
1522#define ADC_CFGR_AWD1CH_0 (0x01U << ADC_CFGR_AWD1CH_Pos) /*!< 0x04000000 */
1523#define ADC_CFGR_AWD1CH_1 (0x02U << ADC_CFGR_AWD1CH_Pos) /*!< 0x08000000 */
1524#define ADC_CFGR_AWD1CH_2 (0x04U << ADC_CFGR_AWD1CH_Pos) /*!< 0x10000000 */
1525#define ADC_CFGR_AWD1CH_3 (0x08U << ADC_CFGR_AWD1CH_Pos) /*!< 0x20000000 */
1526#define ADC_CFGR_AWD1CH_4 (0x10U << ADC_CFGR_AWD1CH_Pos) /*!< 0x40000000 */
1527
1528#define ADC_CFGR_JQDIS_Pos (31U)
1529#define ADC_CFGR_JQDIS_Msk (0x1U << ADC_CFGR_JQDIS_Pos) /*!< 0x80000000 */
1530#define ADC_CFGR_JQDIS ADC_CFGR_JQDIS_Msk /*!< ADC group injected contexts queue disable */
1531
1532/******************** Bit definition for ADC_CFGR2 register *****************/
1533#define ADC_CFGR2_ROVSE_Pos (0U)
1534#define ADC_CFGR2_ROVSE_Msk (0x1U << ADC_CFGR2_ROVSE_Pos) /*!< 0x00000001 */
1535#define ADC_CFGR2_ROVSE ADC_CFGR2_ROVSE_Msk /*!< ADC oversampler enable on scope ADC group regular */
1536#define ADC_CFGR2_JOVSE_Pos (1U)
1537#define ADC_CFGR2_JOVSE_Msk (0x1U << ADC_CFGR2_JOVSE_Pos) /*!< 0x00000002 */
1538#define ADC_CFGR2_JOVSE ADC_CFGR2_JOVSE_Msk /*!< ADC oversampler enable on scope ADC group injected */
1539
1540#define ADC_CFGR2_OVSR_Pos (2U)
1541#define ADC_CFGR2_OVSR_Msk (0x7U << ADC_CFGR2_OVSR_Pos) /*!< 0x0000001C */
1542#define ADC_CFGR2_OVSR ADC_CFGR2_OVSR_Msk /*!< ADC oversampling ratio */
1543#define ADC_CFGR2_OVSR_0 (0x1U << ADC_CFGR2_OVSR_Pos) /*!< 0x00000004 */
1544#define ADC_CFGR2_OVSR_1 (0x2U << ADC_CFGR2_OVSR_Pos) /*!< 0x00000008 */
1545#define ADC_CFGR2_OVSR_2 (0x4U << ADC_CFGR2_OVSR_Pos) /*!< 0x00000010 */
1546
1547#define ADC_CFGR2_OVSS_Pos (5U)
1548#define ADC_CFGR2_OVSS_Msk (0xFU << ADC_CFGR2_OVSS_Pos) /*!< 0x000001E0 */
1549#define ADC_CFGR2_OVSS ADC_CFGR2_OVSS_Msk /*!< ADC oversampling shift */
1550#define ADC_CFGR2_OVSS_0 (0x1U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000020 */
1551#define ADC_CFGR2_OVSS_1 (0x2U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000040 */
1552#define ADC_CFGR2_OVSS_2 (0x4U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000080 */
1553#define ADC_CFGR2_OVSS_3 (0x8U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000100 */
1554
1555#define ADC_CFGR2_TROVS_Pos (9U)
1556#define ADC_CFGR2_TROVS_Msk (0x1U << ADC_CFGR2_TROVS_Pos) /*!< 0x00000200 */
1557#define ADC_CFGR2_TROVS ADC_CFGR2_TROVS_Msk /*!< ADC oversampling discontinuous mode (triggered mode) for ADC group regular */
1558#define ADC_CFGR2_ROVSM_Pos (10U)
1559#define ADC_CFGR2_ROVSM_Msk (0x1U << ADC_CFGR2_ROVSM_Pos) /*!< 0x00000400 */
1560#define ADC_CFGR2_ROVSM ADC_CFGR2_ROVSM_Msk /*!< ADC oversampling mode managing interlaced conversions of ADC group regular and group injected */
1561
1562/******************** Bit definition for ADC_SMPR1 register *****************/
1563#define ADC_SMPR1_SMP0_Pos (0U)
1564#define ADC_SMPR1_SMP0_Msk (0x7U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000007 */
1565#define ADC_SMPR1_SMP0 ADC_SMPR1_SMP0_Msk /*!< ADC channel 0 sampling time selection */
1566#define ADC_SMPR1_SMP0_0 (0x1U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000001 */
1567#define ADC_SMPR1_SMP0_1 (0x2U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000002 */
1568#define ADC_SMPR1_SMP0_2 (0x4U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000004 */
1569
1570#define ADC_SMPR1_SMP1_Pos (3U)
1571#define ADC_SMPR1_SMP1_Msk (0x7U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000038 */
1572#define ADC_SMPR1_SMP1 ADC_SMPR1_SMP1_Msk /*!< ADC channel 1 sampling time selection */
1573#define ADC_SMPR1_SMP1_0 (0x1U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000008 */
1574#define ADC_SMPR1_SMP1_1 (0x2U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000010 */
1575#define ADC_SMPR1_SMP1_2 (0x4U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000020 */
1576
1577#define ADC_SMPR1_SMP2_Pos (6U)
1578#define ADC_SMPR1_SMP2_Msk (0x7U << ADC_SMPR1_SMP2_Pos) /*!< 0x000001C0 */
1579#define ADC_SMPR1_SMP2 ADC_SMPR1_SMP2_Msk /*!< ADC channel 2 sampling time selection */
1580#define ADC_SMPR1_SMP2_0 (0x1U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000040 */
1581#define ADC_SMPR1_SMP2_1 (0x2U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000080 */
1582#define ADC_SMPR1_SMP2_2 (0x4U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000100 */
1583
1584#define ADC_SMPR1_SMP3_Pos (9U)
1585#define ADC_SMPR1_SMP3_Msk (0x7U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000E00 */
1586#define ADC_SMPR1_SMP3 ADC_SMPR1_SMP3_Msk /*!< ADC channel 3 sampling time selection */
1587#define ADC_SMPR1_SMP3_0 (0x1U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000200 */
1588#define ADC_SMPR1_SMP3_1 (0x2U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000400 */
1589#define ADC_SMPR1_SMP3_2 (0x4U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000800 */
1590
1591#define ADC_SMPR1_SMP4_Pos (12U)
1592#define ADC_SMPR1_SMP4_Msk (0x7U << ADC_SMPR1_SMP4_Pos) /*!< 0x00007000 */
1593#define ADC_SMPR1_SMP4 ADC_SMPR1_SMP4_Msk /*!< ADC channel 4 sampling time selection */
1594#define ADC_SMPR1_SMP4_0 (0x1U << ADC_SMPR1_SMP4_Pos) /*!< 0x00001000 */
1595#define ADC_SMPR1_SMP4_1 (0x2U << ADC_SMPR1_SMP4_Pos) /*!< 0x00002000 */
1596#define ADC_SMPR1_SMP4_2 (0x4U << ADC_SMPR1_SMP4_Pos) /*!< 0x00004000 */
1597
1598#define ADC_SMPR1_SMP5_Pos (15U)
1599#define ADC_SMPR1_SMP5_Msk (0x7U << ADC_SMPR1_SMP5_Pos) /*!< 0x00038000 */
1600#define ADC_SMPR1_SMP5 ADC_SMPR1_SMP5_Msk /*!< ADC channel 5 sampling time selection */
1601#define ADC_SMPR1_SMP5_0 (0x1U << ADC_SMPR1_SMP5_Pos) /*!< 0x00008000 */
1602#define ADC_SMPR1_SMP5_1 (0x2U << ADC_SMPR1_SMP5_Pos) /*!< 0x00010000 */
1603#define ADC_SMPR1_SMP5_2 (0x4U << ADC_SMPR1_SMP5_Pos) /*!< 0x00020000 */
1604
1605#define ADC_SMPR1_SMP6_Pos (18U)
1606#define ADC_SMPR1_SMP6_Msk (0x7U << ADC_SMPR1_SMP6_Pos) /*!< 0x001C0000 */
1607#define ADC_SMPR1_SMP6 ADC_SMPR1_SMP6_Msk /*!< ADC channel 6 sampling time selection */
1608#define ADC_SMPR1_SMP6_0 (0x1U << ADC_SMPR1_SMP6_Pos) /*!< 0x00040000 */
1609#define ADC_SMPR1_SMP6_1 (0x2U << ADC_SMPR1_SMP6_Pos) /*!< 0x00080000 */
1610#define ADC_SMPR1_SMP6_2 (0x4U << ADC_SMPR1_SMP6_Pos) /*!< 0x00100000 */
1611
1612#define ADC_SMPR1_SMP7_Pos (21U)
1613#define ADC_SMPR1_SMP7_Msk (0x7U << ADC_SMPR1_SMP7_Pos) /*!< 0x00E00000 */
1614#define ADC_SMPR1_SMP7 ADC_SMPR1_SMP7_Msk /*!< ADC channel 7 sampling time selection */
1615#define ADC_SMPR1_SMP7_0 (0x1U << ADC_SMPR1_SMP7_Pos) /*!< 0x00200000 */
1616#define ADC_SMPR1_SMP7_1 (0x2U << ADC_SMPR1_SMP7_Pos) /*!< 0x00400000 */
1617#define ADC_SMPR1_SMP7_2 (0x4U << ADC_SMPR1_SMP7_Pos) /*!< 0x00800000 */
1618
1619#define ADC_SMPR1_SMP8_Pos (24U)
1620#define ADC_SMPR1_SMP8_Msk (0x7U << ADC_SMPR1_SMP8_Pos) /*!< 0x07000000 */
1621#define ADC_SMPR1_SMP8 ADC_SMPR1_SMP8_Msk /*!< ADC channel 8 sampling time selection */
1622#define ADC_SMPR1_SMP8_0 (0x1U << ADC_SMPR1_SMP8_Pos) /*!< 0x01000000 */
1623#define ADC_SMPR1_SMP8_1 (0x2U << ADC_SMPR1_SMP8_Pos) /*!< 0x02000000 */
1624#define ADC_SMPR1_SMP8_2 (0x4U << ADC_SMPR1_SMP8_Pos) /*!< 0x04000000 */
1625
1626#define ADC_SMPR1_SMP9_Pos (27U)
1627#define ADC_SMPR1_SMP9_Msk (0x7U << ADC_SMPR1_SMP9_Pos) /*!< 0x38000000 */
1628#define ADC_SMPR1_SMP9 ADC_SMPR1_SMP9_Msk /*!< ADC channel 9 sampling time selection */
1629#define ADC_SMPR1_SMP9_0 (0x1U << ADC_SMPR1_SMP9_Pos) /*!< 0x08000000 */
1630#define ADC_SMPR1_SMP9_1 (0x2U << ADC_SMPR1_SMP9_Pos) /*!< 0x10000000 */
1631#define ADC_SMPR1_SMP9_2 (0x4U << ADC_SMPR1_SMP9_Pos) /*!< 0x20000000 */
1632
1633/******************** Bit definition for ADC_SMPR2 register *****************/
1634#define ADC_SMPR2_SMP10_Pos (0U)
1635#define ADC_SMPR2_SMP10_Msk (0x7U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000007 */
1636#define ADC_SMPR2_SMP10 ADC_SMPR2_SMP10_Msk /*!< ADC channel 10 sampling time selection */
1637#define ADC_SMPR2_SMP10_0 (0x1U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000001 */
1638#define ADC_SMPR2_SMP10_1 (0x2U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000002 */
1639#define ADC_SMPR2_SMP10_2 (0x4U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000004 */
1640
1641#define ADC_SMPR2_SMP11_Pos (3U)
1642#define ADC_SMPR2_SMP11_Msk (0x7U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000038 */
1643#define ADC_SMPR2_SMP11 ADC_SMPR2_SMP11_Msk /*!< ADC channel 11 sampling time selection */
1644#define ADC_SMPR2_SMP11_0 (0x1U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000008 */
1645#define ADC_SMPR2_SMP11_1 (0x2U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000010 */
1646#define ADC_SMPR2_SMP11_2 (0x4U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000020 */
1647
1648#define ADC_SMPR2_SMP12_Pos (6U)
1649#define ADC_SMPR2_SMP12_Msk (0x7U << ADC_SMPR2_SMP12_Pos) /*!< 0x000001C0 */
1650#define ADC_SMPR2_SMP12 ADC_SMPR2_SMP12_Msk /*!< ADC channel 12 sampling time selection */
1651#define ADC_SMPR2_SMP12_0 (0x1U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000040 */
1652#define ADC_SMPR2_SMP12_1 (0x2U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000080 */
1653#define ADC_SMPR2_SMP12_2 (0x4U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000100 */
1654
1655#define ADC_SMPR2_SMP13_Pos (9U)
1656#define ADC_SMPR2_SMP13_Msk (0x7U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000E00 */
1657#define ADC_SMPR2_SMP13 ADC_SMPR2_SMP13_Msk /*!< ADC channel 13 sampling time selection */
1658#define ADC_SMPR2_SMP13_0 (0x1U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000200 */
1659#define ADC_SMPR2_SMP13_1 (0x2U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000400 */
1660#define ADC_SMPR2_SMP13_2 (0x4U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000800 */
1661
1662#define ADC_SMPR2_SMP14_Pos (12U)
1663#define ADC_SMPR2_SMP14_Msk (0x7U << ADC_SMPR2_SMP14_Pos) /*!< 0x00007000 */
1664#define ADC_SMPR2_SMP14 ADC_SMPR2_SMP14_Msk /*!< ADC channel 14 sampling time selection */
1665#define ADC_SMPR2_SMP14_0 (0x1U << ADC_SMPR2_SMP14_Pos) /*!< 0x00001000 */
1666#define ADC_SMPR2_SMP14_1 (0x2U << ADC_SMPR2_SMP14_Pos) /*!< 0x00002000 */
1667#define ADC_SMPR2_SMP14_2 (0x4U << ADC_SMPR2_SMP14_Pos) /*!< 0x00004000 */
1668
1669#define ADC_SMPR2_SMP15_Pos (15U)
1670#define ADC_SMPR2_SMP15_Msk (0x7U << ADC_SMPR2_SMP15_Pos) /*!< 0x00038000 */
1671#define ADC_SMPR2_SMP15 ADC_SMPR2_SMP15_Msk /*!< ADC channel 15 sampling time selection */
1672#define ADC_SMPR2_SMP15_0 (0x1U << ADC_SMPR2_SMP15_Pos) /*!< 0x00008000 */
1673#define ADC_SMPR2_SMP15_1 (0x2U << ADC_SMPR2_SMP15_Pos) /*!< 0x00010000 */
1674#define ADC_SMPR2_SMP15_2 (0x4U << ADC_SMPR2_SMP15_Pos) /*!< 0x00020000 */
1675
1676#define ADC_SMPR2_SMP16_Pos (18U)
1677#define ADC_SMPR2_SMP16_Msk (0x7U << ADC_SMPR2_SMP16_Pos) /*!< 0x001C0000 */
1678#define ADC_SMPR2_SMP16 ADC_SMPR2_SMP16_Msk /*!< ADC channel 16 sampling time selection */
1679#define ADC_SMPR2_SMP16_0 (0x1U << ADC_SMPR2_SMP16_Pos) /*!< 0x00040000 */
1680#define ADC_SMPR2_SMP16_1 (0x2U << ADC_SMPR2_SMP16_Pos) /*!< 0x00080000 */
1681#define ADC_SMPR2_SMP16_2 (0x4U << ADC_SMPR2_SMP16_Pos) /*!< 0x00100000 */
1682
1683#define ADC_SMPR2_SMP17_Pos (21U)
1684#define ADC_SMPR2_SMP17_Msk (0x7U << ADC_SMPR2_SMP17_Pos) /*!< 0x00E00000 */
1685#define ADC_SMPR2_SMP17 ADC_SMPR2_SMP17_Msk /*!< ADC channel 17 sampling time selection */
1686#define ADC_SMPR2_SMP17_0 (0x1U << ADC_SMPR2_SMP17_Pos) /*!< 0x00200000 */
1687#define ADC_SMPR2_SMP17_1 (0x2U << ADC_SMPR2_SMP17_Pos) /*!< 0x00400000 */
1688#define ADC_SMPR2_SMP17_2 (0x4U << ADC_SMPR2_SMP17_Pos) /*!< 0x00800000 */
1689
1690#define ADC_SMPR2_SMP18_Pos (24U)
1691#define ADC_SMPR2_SMP18_Msk (0x7U << ADC_SMPR2_SMP18_Pos) /*!< 0x07000000 */
1692#define ADC_SMPR2_SMP18 ADC_SMPR2_SMP18_Msk /*!< ADC channel 18 sampling time selection */
1693#define ADC_SMPR2_SMP18_0 (0x1U << ADC_SMPR2_SMP18_Pos) /*!< 0x01000000 */
1694#define ADC_SMPR2_SMP18_1 (0x2U << ADC_SMPR2_SMP18_Pos) /*!< 0x02000000 */
1695#define ADC_SMPR2_SMP18_2 (0x4U << ADC_SMPR2_SMP18_Pos) /*!< 0x04000000 */
1696
1697/******************** Bit definition for ADC_TR1 register *******************/
1698#define ADC_TR1_LT1_Pos (0U)
1699#define ADC_TR1_LT1_Msk (0xFFFU << ADC_TR1_LT1_Pos) /*!< 0x00000FFF */
1700#define ADC_TR1_LT1 ADC_TR1_LT1_Msk /*!< ADC analog watchdog 1 threshold low */
1701#define ADC_TR1_LT1_0 (0x001U << ADC_TR1_LT1_Pos) /*!< 0x00000001 */
1702#define ADC_TR1_LT1_1 (0x002U << ADC_TR1_LT1_Pos) /*!< 0x00000002 */
1703#define ADC_TR1_LT1_2 (0x004U << ADC_TR1_LT1_Pos) /*!< 0x00000004 */
1704#define ADC_TR1_LT1_3 (0x008U << ADC_TR1_LT1_Pos) /*!< 0x00000008 */
1705#define ADC_TR1_LT1_4 (0x010U << ADC_TR1_LT1_Pos) /*!< 0x00000010 */
1706#define ADC_TR1_LT1_5 (0x020U << ADC_TR1_LT1_Pos) /*!< 0x00000020 */
1707#define ADC_TR1_LT1_6 (0x040U << ADC_TR1_LT1_Pos) /*!< 0x00000040 */
1708#define ADC_TR1_LT1_7 (0x080U << ADC_TR1_LT1_Pos) /*!< 0x00000080 */
1709#define ADC_TR1_LT1_8 (0x100U << ADC_TR1_LT1_Pos) /*!< 0x00000100 */
1710#define ADC_TR1_LT1_9 (0x200U << ADC_TR1_LT1_Pos) /*!< 0x00000200 */
1711#define ADC_TR1_LT1_10 (0x400U << ADC_TR1_LT1_Pos) /*!< 0x00000400 */
1712#define ADC_TR1_LT1_11 (0x800U << ADC_TR1_LT1_Pos) /*!< 0x00000800 */
1713
1714#define ADC_TR1_HT1_Pos (16U)
1715#define ADC_TR1_HT1_Msk (0xFFFU << ADC_TR1_HT1_Pos) /*!< 0x0FFF0000 */
1716#define ADC_TR1_HT1 ADC_TR1_HT1_Msk /*!< ADC Analog watchdog 1 threshold high */
1717#define ADC_TR1_HT1_0 (0x001U << ADC_TR1_HT1_Pos) /*!< 0x00010000 */
1718#define ADC_TR1_HT1_1 (0x002U << ADC_TR1_HT1_Pos) /*!< 0x00020000 */
1719#define ADC_TR1_HT1_2 (0x004U << ADC_TR1_HT1_Pos) /*!< 0x00040000 */
1720#define ADC_TR1_HT1_3 (0x008U << ADC_TR1_HT1_Pos) /*!< 0x00080000 */
1721#define ADC_TR1_HT1_4 (0x010U << ADC_TR1_HT1_Pos) /*!< 0x00100000 */
1722#define ADC_TR1_HT1_5 (0x020U << ADC_TR1_HT1_Pos) /*!< 0x00200000 */
1723#define ADC_TR1_HT1_6 (0x040U << ADC_TR1_HT1_Pos) /*!< 0x00400000 */
1724#define ADC_TR1_HT1_7 (0x080U << ADC_TR1_HT1_Pos) /*!< 0x00800000 */
1725#define ADC_TR1_HT1_8 (0x100U << ADC_TR1_HT1_Pos) /*!< 0x01000000 */
1726#define ADC_TR1_HT1_9 (0x200U << ADC_TR1_HT1_Pos) /*!< 0x02000000 */
1727#define ADC_TR1_HT1_10 (0x400U << ADC_TR1_HT1_Pos) /*!< 0x04000000 */
1728#define ADC_TR1_HT1_11 (0x800U << ADC_TR1_HT1_Pos) /*!< 0x08000000 */
1729
1730/******************** Bit definition for ADC_TR2 register *******************/
1731#define ADC_TR2_LT2_Pos (0U)
1732#define ADC_TR2_LT2_Msk (0xFFU << ADC_TR2_LT2_Pos) /*!< 0x000000FF */
1733#define ADC_TR2_LT2 ADC_TR2_LT2_Msk /*!< ADC analog watchdog 2 threshold low */
1734#define ADC_TR2_LT2_0 (0x01U << ADC_TR2_LT2_Pos) /*!< 0x00000001 */
1735#define ADC_TR2_LT2_1 (0x02U << ADC_TR2_LT2_Pos) /*!< 0x00000002 */
1736#define ADC_TR2_LT2_2 (0x04U << ADC_TR2_LT2_Pos) /*!< 0x00000004 */
1737#define ADC_TR2_LT2_3 (0x08U << ADC_TR2_LT2_Pos) /*!< 0x00000008 */
1738#define ADC_TR2_LT2_4 (0x10U << ADC_TR2_LT2_Pos) /*!< 0x00000010 */
1739#define ADC_TR2_LT2_5 (0x20U << ADC_TR2_LT2_Pos) /*!< 0x00000020 */
1740#define ADC_TR2_LT2_6 (0x40U << ADC_TR2_LT2_Pos) /*!< 0x00000040 */
1741#define ADC_TR2_LT2_7 (0x80U << ADC_TR2_LT2_Pos) /*!< 0x00000080 */
1742
1743#define ADC_TR2_HT2_Pos (16U)
1744#define ADC_TR2_HT2_Msk (0xFFU << ADC_TR2_HT2_Pos) /*!< 0x00FF0000 */
1745#define ADC_TR2_HT2 ADC_TR2_HT2_Msk /*!< ADC analog watchdog 2 threshold high */
1746#define ADC_TR2_HT2_0 (0x01U << ADC_TR2_HT2_Pos) /*!< 0x00010000 */
1747#define ADC_TR2_HT2_1 (0x02U << ADC_TR2_HT2_Pos) /*!< 0x00020000 */
1748#define ADC_TR2_HT2_2 (0x04U << ADC_TR2_HT2_Pos) /*!< 0x00040000 */
1749#define ADC_TR2_HT2_3 (0x08U << ADC_TR2_HT2_Pos) /*!< 0x00080000 */
1750#define ADC_TR2_HT2_4 (0x10U << ADC_TR2_HT2_Pos) /*!< 0x00100000 */
1751#define ADC_TR2_HT2_5 (0x20U << ADC_TR2_HT2_Pos) /*!< 0x00200000 */
1752#define ADC_TR2_HT2_6 (0x40U << ADC_TR2_HT2_Pos) /*!< 0x00400000 */
1753#define ADC_TR2_HT2_7 (0x80U << ADC_TR2_HT2_Pos) /*!< 0x00800000 */
1754
1755/******************** Bit definition for ADC_TR3 register *******************/
1756#define ADC_TR3_LT3_Pos (0U)
1757#define ADC_TR3_LT3_Msk (0xFFU << ADC_TR3_LT3_Pos) /*!< 0x000000FF */
1758#define ADC_TR3_LT3 ADC_TR3_LT3_Msk /*!< ADC analog watchdog 3 threshold low */
1759#define ADC_TR3_LT3_0 (0x01U << ADC_TR3_LT3_Pos) /*!< 0x00000001 */
1760#define ADC_TR3_LT3_1 (0x02U << ADC_TR3_LT3_Pos) /*!< 0x00000002 */
1761#define ADC_TR3_LT3_2 (0x04U << ADC_TR3_LT3_Pos) /*!< 0x00000004 */
1762#define ADC_TR3_LT3_3 (0x08U << ADC_TR3_LT3_Pos) /*!< 0x00000008 */
1763#define ADC_TR3_LT3_4 (0x10U << ADC_TR3_LT3_Pos) /*!< 0x00000010 */
1764#define ADC_TR3_LT3_5 (0x20U << ADC_TR3_LT3_Pos) /*!< 0x00000020 */
1765#define ADC_TR3_LT3_6 (0x40U << ADC_TR3_LT3_Pos) /*!< 0x00000040 */
1766#define ADC_TR3_LT3_7 (0x80U << ADC_TR3_LT3_Pos) /*!< 0x00000080 */
1767
1768#define ADC_TR3_HT3_Pos (16U)
1769#define ADC_TR3_HT3_Msk (0xFFU << ADC_TR3_HT3_Pos) /*!< 0x00FF0000 */
1770#define ADC_TR3_HT3 ADC_TR3_HT3_Msk /*!< ADC analog watchdog 3 threshold high */
1771#define ADC_TR3_HT3_0 (0x01U << ADC_TR3_HT3_Pos) /*!< 0x00010000 */
1772#define ADC_TR3_HT3_1 (0x02U << ADC_TR3_HT3_Pos) /*!< 0x00020000 */
1773#define ADC_TR3_HT3_2 (0x04U << ADC_TR3_HT3_Pos) /*!< 0x00040000 */
1774#define ADC_TR3_HT3_3 (0x08U << ADC_TR3_HT3_Pos) /*!< 0x00080000 */
1775#define ADC_TR3_HT3_4 (0x10U << ADC_TR3_HT3_Pos) /*!< 0x00100000 */
1776#define ADC_TR3_HT3_5 (0x20U << ADC_TR3_HT3_Pos) /*!< 0x00200000 */
1777#define ADC_TR3_HT3_6 (0x40U << ADC_TR3_HT3_Pos) /*!< 0x00400000 */
1778#define ADC_TR3_HT3_7 (0x80U << ADC_TR3_HT3_Pos) /*!< 0x00800000 */
1779
1780/******************** Bit definition for ADC_SQR1 register ******************/
1781#define ADC_SQR1_L_Pos (0U)
1782#define ADC_SQR1_L_Msk (0xFU << ADC_SQR1_L_Pos) /*!< 0x0000000F */
1783#define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC group regular sequencer scan length */
1784#define ADC_SQR1_L_0 (0x1U << ADC_SQR1_L_Pos) /*!< 0x00000001 */
1785#define ADC_SQR1_L_1 (0x2U << ADC_SQR1_L_Pos) /*!< 0x00000002 */
1786#define ADC_SQR1_L_2 (0x4U << ADC_SQR1_L_Pos) /*!< 0x00000004 */
1787#define ADC_SQR1_L_3 (0x8U << ADC_SQR1_L_Pos) /*!< 0x00000008 */
1788
1789#define ADC_SQR1_SQ1_Pos (6U)
1790#define ADC_SQR1_SQ1_Msk (0x1FU << ADC_SQR1_SQ1_Pos) /*!< 0x000007C0 */
1791#define ADC_SQR1_SQ1 ADC_SQR1_SQ1_Msk /*!< ADC group regular sequencer rank 1 */
1792#define ADC_SQR1_SQ1_0 (0x01U << ADC_SQR1_SQ1_Pos) /*!< 0x00000040 */
1793#define ADC_SQR1_SQ1_1 (0x02U << ADC_SQR1_SQ1_Pos) /*!< 0x00000080 */
1794#define ADC_SQR1_SQ1_2 (0x04U << ADC_SQR1_SQ1_Pos) /*!< 0x00000100 */
1795#define ADC_SQR1_SQ1_3 (0x08U << ADC_SQR1_SQ1_Pos) /*!< 0x00000200 */
1796#define ADC_SQR1_SQ1_4 (0x10U << ADC_SQR1_SQ1_Pos) /*!< 0x00000400 */
1797
1798#define ADC_SQR1_SQ2_Pos (12U)
1799#define ADC_SQR1_SQ2_Msk (0x1FU << ADC_SQR1_SQ2_Pos) /*!< 0x0001F000 */
1800#define ADC_SQR1_SQ2 ADC_SQR1_SQ2_Msk /*!< ADC group regular sequencer rank 2 */
1801#define ADC_SQR1_SQ2_0 (0x01U << ADC_SQR1_SQ2_Pos) /*!< 0x00001000 */
1802#define ADC_SQR1_SQ2_1 (0x02U << ADC_SQR1_SQ2_Pos) /*!< 0x00002000 */
1803#define ADC_SQR1_SQ2_2 (0x04U << ADC_SQR1_SQ2_Pos) /*!< 0x00004000 */
1804#define ADC_SQR1_SQ2_3 (0x08U << ADC_SQR1_SQ2_Pos) /*!< 0x00008000 */
1805#define ADC_SQR1_SQ2_4 (0x10U << ADC_SQR1_SQ2_Pos) /*!< 0x00010000 */
1806
1807#define ADC_SQR1_SQ3_Pos (18U)
1808#define ADC_SQR1_SQ3_Msk (0x1FU << ADC_SQR1_SQ3_Pos) /*!< 0x007C0000 */
1809#define ADC_SQR1_SQ3 ADC_SQR1_SQ3_Msk /*!< ADC group regular sequencer rank 3 */
1810#define ADC_SQR1_SQ3_0 (0x01U << ADC_SQR1_SQ3_Pos) /*!< 0x00040000 */
1811#define ADC_SQR1_SQ3_1 (0x02U << ADC_SQR1_SQ3_Pos) /*!< 0x00080000 */
1812#define ADC_SQR1_SQ3_2 (0x04U << ADC_SQR1_SQ3_Pos) /*!< 0x00100000 */
1813#define ADC_SQR1_SQ3_3 (0x08U << ADC_SQR1_SQ3_Pos) /*!< 0x00200000 */
1814#define ADC_SQR1_SQ3_4 (0x10U << ADC_SQR1_SQ3_Pos) /*!< 0x00400000 */
1815
1816#define ADC_SQR1_SQ4_Pos (24U)
1817#define ADC_SQR1_SQ4_Msk (0x1FU << ADC_SQR1_SQ4_Pos) /*!< 0x1F000000 */
1818#define ADC_SQR1_SQ4 ADC_SQR1_SQ4_Msk /*!< ADC group regular sequencer rank 4 */
1819#define ADC_SQR1_SQ4_0 (0x01U << ADC_SQR1_SQ4_Pos) /*!< 0x01000000 */
1820#define ADC_SQR1_SQ4_1 (0x02U << ADC_SQR1_SQ4_Pos) /*!< 0x02000000 */
1821#define ADC_SQR1_SQ4_2 (0x04U << ADC_SQR1_SQ4_Pos) /*!< 0x04000000 */
1822#define ADC_SQR1_SQ4_3 (0x08U << ADC_SQR1_SQ4_Pos) /*!< 0x08000000 */
1823#define ADC_SQR1_SQ4_4 (0x10U << ADC_SQR1_SQ4_Pos) /*!< 0x10000000 */
1824
1825/******************** Bit definition for ADC_SQR2 register ******************/
1826#define ADC_SQR2_SQ5_Pos (0U)
1827#define ADC_SQR2_SQ5_Msk (0x1FU << ADC_SQR2_SQ5_Pos) /*!< 0x0000001F */
1828#define ADC_SQR2_SQ5 ADC_SQR2_SQ5_Msk /*!< ADC group regular sequencer rank 5 */
1829#define ADC_SQR2_SQ5_0 (0x01U << ADC_SQR2_SQ5_Pos) /*!< 0x00000001 */
1830#define ADC_SQR2_SQ5_1 (0x02U << ADC_SQR2_SQ5_Pos) /*!< 0x00000002 */
1831#define ADC_SQR2_SQ5_2 (0x04U << ADC_SQR2_SQ5_Pos) /*!< 0x00000004 */
1832#define ADC_SQR2_SQ5_3 (0x08U << ADC_SQR2_SQ5_Pos) /*!< 0x00000008 */
1833#define ADC_SQR2_SQ5_4 (0x10U << ADC_SQR2_SQ5_Pos) /*!< 0x00000010 */
1834
1835#define ADC_SQR2_SQ6_Pos (6U)
1836#define ADC_SQR2_SQ6_Msk (0x1FU << ADC_SQR2_SQ6_Pos) /*!< 0x000007C0 */
1837#define ADC_SQR2_SQ6 ADC_SQR2_SQ6_Msk /*!< ADC group regular sequencer rank 6 */
1838#define ADC_SQR2_SQ6_0 (0x01U << ADC_SQR2_SQ6_Pos) /*!< 0x00000040 */
1839#define ADC_SQR2_SQ6_1 (0x02U << ADC_SQR2_SQ6_Pos) /*!< 0x00000080 */
1840#define ADC_SQR2_SQ6_2 (0x04U << ADC_SQR2_SQ6_Pos) /*!< 0x00000100 */
1841#define ADC_SQR2_SQ6_3 (0x08U << ADC_SQR2_SQ6_Pos) /*!< 0x00000200 */
1842#define ADC_SQR2_SQ6_4 (0x10U << ADC_SQR2_SQ6_Pos) /*!< 0x00000400 */
1843
1844#define ADC_SQR2_SQ7_Pos (12U)
1845#define ADC_SQR2_SQ7_Msk (0x1FU << ADC_SQR2_SQ7_Pos) /*!< 0x0001F000 */
1846#define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC group regular sequencer rank 7 */
1847#define ADC_SQR2_SQ7_0 (0x01U << ADC_SQR2_SQ7_Pos) /*!< 0x00001000 */
1848#define ADC_SQR2_SQ7_1 (0x02U << ADC_SQR2_SQ7_Pos) /*!< 0x00002000 */
1849#define ADC_SQR2_SQ7_2 (0x04U << ADC_SQR2_SQ7_Pos) /*!< 0x00004000 */
1850#define ADC_SQR2_SQ7_3 (0x08U << ADC_SQR2_SQ7_Pos) /*!< 0x00008000 */
1851#define ADC_SQR2_SQ7_4 (0x10U << ADC_SQR2_SQ7_Pos) /*!< 0x00010000 */
1852
1853#define ADC_SQR2_SQ8_Pos (18U)
1854#define ADC_SQR2_SQ8_Msk (0x1FU << ADC_SQR2_SQ8_Pos) /*!< 0x007C0000 */
1855#define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC group regular sequencer rank 8 */
1856#define ADC_SQR2_SQ8_0 (0x01U << ADC_SQR2_SQ8_Pos) /*!< 0x00040000 */
1857#define ADC_SQR2_SQ8_1 (0x02U << ADC_SQR2_SQ8_Pos) /*!< 0x00080000 */
1858#define ADC_SQR2_SQ8_2 (0x04U << ADC_SQR2_SQ8_Pos) /*!< 0x00100000 */
1859#define ADC_SQR2_SQ8_3 (0x08U << ADC_SQR2_SQ8_Pos) /*!< 0x00200000 */
1860#define ADC_SQR2_SQ8_4 (0x10U << ADC_SQR2_SQ8_Pos) /*!< 0x00400000 */
1861
1862#define ADC_SQR2_SQ9_Pos (24U)
1863#define ADC_SQR2_SQ9_Msk (0x1FU << ADC_SQR2_SQ9_Pos) /*!< 0x1F000000 */
1864#define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC group regular sequencer rank 9 */
1865#define ADC_SQR2_SQ9_0 (0x01U << ADC_SQR2_SQ9_Pos) /*!< 0x01000000 */
1866#define ADC_SQR2_SQ9_1 (0x02U << ADC_SQR2_SQ9_Pos) /*!< 0x02000000 */
1867#define ADC_SQR2_SQ9_2 (0x04U << ADC_SQR2_SQ9_Pos) /*!< 0x04000000 */
1868#define ADC_SQR2_SQ9_3 (0x08U << ADC_SQR2_SQ9_Pos) /*!< 0x08000000 */
1869#define ADC_SQR2_SQ9_4 (0x10U << ADC_SQR2_SQ9_Pos) /*!< 0x10000000 */
1870
1871/******************** Bit definition for ADC_SQR3 register ******************/
1872#define ADC_SQR3_SQ10_Pos (0U)
1873#define ADC_SQR3_SQ10_Msk (0x1FU << ADC_SQR3_SQ10_Pos) /*!< 0x0000001F */
1874#define ADC_SQR3_SQ10 ADC_SQR3_SQ10_Msk /*!< ADC group regular sequencer rank 10 */
1875#define ADC_SQR3_SQ10_0 (0x01U << ADC_SQR3_SQ10_Pos) /*!< 0x00000001 */
1876#define ADC_SQR3_SQ10_1 (0x02U << ADC_SQR3_SQ10_Pos) /*!< 0x00000002 */
1877#define ADC_SQR3_SQ10_2 (0x04U << ADC_SQR3_SQ10_Pos) /*!< 0x00000004 */
1878#define ADC_SQR3_SQ10_3 (0x08U << ADC_SQR3_SQ10_Pos) /*!< 0x00000008 */
1879#define ADC_SQR3_SQ10_4 (0x10U << ADC_SQR3_SQ10_Pos) /*!< 0x00000010 */
1880
1881#define ADC_SQR3_SQ11_Pos (6U)
1882#define ADC_SQR3_SQ11_Msk (0x1FU << ADC_SQR3_SQ11_Pos) /*!< 0x000007C0 */
1883#define ADC_SQR3_SQ11 ADC_SQR3_SQ11_Msk /*!< ADC group regular sequencer rank 11 */
1884#define ADC_SQR3_SQ11_0 (0x01U << ADC_SQR3_SQ11_Pos) /*!< 0x00000040 */
1885#define ADC_SQR3_SQ11_1 (0x02U << ADC_SQR3_SQ11_Pos) /*!< 0x00000080 */
1886#define ADC_SQR3_SQ11_2 (0x04U << ADC_SQR3_SQ11_Pos) /*!< 0x00000100 */
1887#define ADC_SQR3_SQ11_3 (0x08U << ADC_SQR3_SQ11_Pos) /*!< 0x00000200 */
1888#define ADC_SQR3_SQ11_4 (0x10U << ADC_SQR3_SQ11_Pos) /*!< 0x00000400 */
1889
1890#define ADC_SQR3_SQ12_Pos (12U)
1891#define ADC_SQR3_SQ12_Msk (0x1FU << ADC_SQR3_SQ12_Pos) /*!< 0x0001F000 */
1892#define ADC_SQR3_SQ12 ADC_SQR3_SQ12_Msk /*!< ADC group regular sequencer rank 12 */
1893#define ADC_SQR3_SQ12_0 (0x01U << ADC_SQR3_SQ12_Pos) /*!< 0x00001000 */
1894#define ADC_SQR3_SQ12_1 (0x02U << ADC_SQR3_SQ12_Pos) /*!< 0x00002000 */
1895#define ADC_SQR3_SQ12_2 (0x04U << ADC_SQR3_SQ12_Pos) /*!< 0x00004000 */
1896#define ADC_SQR3_SQ12_3 (0x08U << ADC_SQR3_SQ12_Pos) /*!< 0x00008000 */
1897#define ADC_SQR3_SQ12_4 (0x10U << ADC_SQR3_SQ12_Pos) /*!< 0x00010000 */
1898
1899#define ADC_SQR3_SQ13_Pos (18U)
1900#define ADC_SQR3_SQ13_Msk (0x1FU << ADC_SQR3_SQ13_Pos) /*!< 0x007C0000 */
1901#define ADC_SQR3_SQ13 ADC_SQR3_SQ13_Msk /*!< ADC group regular sequencer rank 13 */
1902#define ADC_SQR3_SQ13_0 (0x01U << ADC_SQR3_SQ13_Pos) /*!< 0x00040000 */
1903#define ADC_SQR3_SQ13_1 (0x02U << ADC_SQR3_SQ13_Pos) /*!< 0x00080000 */
1904#define ADC_SQR3_SQ13_2 (0x04U << ADC_SQR3_SQ13_Pos) /*!< 0x00100000 */
1905#define ADC_SQR3_SQ13_3 (0x08U << ADC_SQR3_SQ13_Pos) /*!< 0x00200000 */
1906#define ADC_SQR3_SQ13_4 (0x10U << ADC_SQR3_SQ13_Pos) /*!< 0x00400000 */
1907
1908#define ADC_SQR3_SQ14_Pos (24U)
1909#define ADC_SQR3_SQ14_Msk (0x1FU << ADC_SQR3_SQ14_Pos) /*!< 0x1F000000 */
1910#define ADC_SQR3_SQ14 ADC_SQR3_SQ14_Msk /*!< ADC group regular sequencer rank 14 */
1911#define ADC_SQR3_SQ14_0 (0x01U << ADC_SQR3_SQ14_Pos) /*!< 0x01000000 */
1912#define ADC_SQR3_SQ14_1 (0x02U << ADC_SQR3_SQ14_Pos) /*!< 0x02000000 */
1913#define ADC_SQR3_SQ14_2 (0x04U << ADC_SQR3_SQ14_Pos) /*!< 0x04000000 */
1914#define ADC_SQR3_SQ14_3 (0x08U << ADC_SQR3_SQ14_Pos) /*!< 0x08000000 */
1915#define ADC_SQR3_SQ14_4 (0x10U << ADC_SQR3_SQ14_Pos) /*!< 0x10000000 */
1916
1917/******************** Bit definition for ADC_SQR4 register ******************/
1918#define ADC_SQR4_SQ15_Pos (0U)
1919#define ADC_SQR4_SQ15_Msk (0x1FU << ADC_SQR4_SQ15_Pos) /*!< 0x0000001F */
1920#define ADC_SQR4_SQ15 ADC_SQR4_SQ15_Msk /*!< ADC group regular sequencer rank 15 */
1921#define ADC_SQR4_SQ15_0 (0x01U << ADC_SQR4_SQ15_Pos) /*!< 0x00000001 */
1922#define ADC_SQR4_SQ15_1 (0x02U << ADC_SQR4_SQ15_Pos) /*!< 0x00000002 */
1923#define ADC_SQR4_SQ15_2 (0x04U << ADC_SQR4_SQ15_Pos) /*!< 0x00000004 */
1924#define ADC_SQR4_SQ15_3 (0x08U << ADC_SQR4_SQ15_Pos) /*!< 0x00000008 */
1925#define ADC_SQR4_SQ15_4 (0x10U << ADC_SQR4_SQ15_Pos) /*!< 0x00000010 */
1926
1927#define ADC_SQR4_SQ16_Pos (6U)
1928#define ADC_SQR4_SQ16_Msk (0x1FU << ADC_SQR4_SQ16_Pos) /*!< 0x000007C0 */
1929#define ADC_SQR4_SQ16 ADC_SQR4_SQ16_Msk /*!< ADC group regular sequencer rank 16 */
1930#define ADC_SQR4_SQ16_0 (0x01U << ADC_SQR4_SQ16_Pos) /*!< 0x00000040 */
1931#define ADC_SQR4_SQ16_1 (0x02U << ADC_SQR4_SQ16_Pos) /*!< 0x00000080 */
1932#define ADC_SQR4_SQ16_2 (0x04U << ADC_SQR4_SQ16_Pos) /*!< 0x00000100 */
1933#define ADC_SQR4_SQ16_3 (0x08U << ADC_SQR4_SQ16_Pos) /*!< 0x00000200 */
1934#define ADC_SQR4_SQ16_4 (0x10U << ADC_SQR4_SQ16_Pos) /*!< 0x00000400 */
1935
1936/******************** Bit definition for ADC_DR register ********************/
1937#define ADC_DR_RDATA_Pos (0U)
1938#define ADC_DR_RDATA_Msk (0xFFFFU << ADC_DR_RDATA_Pos) /*!< 0x0000FFFF */
1939#define ADC_DR_RDATA ADC_DR_RDATA_Msk /*!< ADC group regular conversion data */
1940#define ADC_DR_RDATA_0 (0x0001U << ADC_DR_RDATA_Pos) /*!< 0x00000001 */
1941#define ADC_DR_RDATA_1 (0x0002U << ADC_DR_RDATA_Pos) /*!< 0x00000002 */
1942#define ADC_DR_RDATA_2 (0x0004U << ADC_DR_RDATA_Pos) /*!< 0x00000004 */
1943#define ADC_DR_RDATA_3 (0x0008U << ADC_DR_RDATA_Pos) /*!< 0x00000008 */
1944#define ADC_DR_RDATA_4 (0x0010U << ADC_DR_RDATA_Pos) /*!< 0x00000010 */
1945#define ADC_DR_RDATA_5 (0x0020U << ADC_DR_RDATA_Pos) /*!< 0x00000020 */
1946#define ADC_DR_RDATA_6 (0x0040U << ADC_DR_RDATA_Pos) /*!< 0x00000040 */
1947#define ADC_DR_RDATA_7 (0x0080U << ADC_DR_RDATA_Pos) /*!< 0x00000080 */
1948#define ADC_DR_RDATA_8 (0x0100U << ADC_DR_RDATA_Pos) /*!< 0x00000100 */
1949#define ADC_DR_RDATA_9 (0x0200U << ADC_DR_RDATA_Pos) /*!< 0x00000200 */
1950#define ADC_DR_RDATA_10 (0x0400U << ADC_DR_RDATA_Pos) /*!< 0x00000400 */
1951#define ADC_DR_RDATA_11 (0x0800U << ADC_DR_RDATA_Pos) /*!< 0x00000800 */
1952#define ADC_DR_RDATA_12 (0x1000U << ADC_DR_RDATA_Pos) /*!< 0x00001000 */
1953#define ADC_DR_RDATA_13 (0x2000U << ADC_DR_RDATA_Pos) /*!< 0x00002000 */
1954#define ADC_DR_RDATA_14 (0x4000U << ADC_DR_RDATA_Pos) /*!< 0x00004000 */
1955#define ADC_DR_RDATA_15 (0x8000U << ADC_DR_RDATA_Pos) /*!< 0x00008000 */
1956
1957/******************** Bit definition for ADC_JSQR register ******************/
1958#define ADC_JSQR_JL_Pos (0U)
1959#define ADC_JSQR_JL_Msk (0x3U << ADC_JSQR_JL_Pos) /*!< 0x00000003 */
1960#define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC group injected sequencer scan length */
1961#define ADC_JSQR_JL_0 (0x1U << ADC_JSQR_JL_Pos) /*!< 0x00000001 */
1962#define ADC_JSQR_JL_1 (0x2U << ADC_JSQR_JL_Pos) /*!< 0x00000002 */
1963
1964#define ADC_JSQR_JEXTSEL_Pos (2U)
1965#define ADC_JSQR_JEXTSEL_Msk (0xFU << ADC_JSQR_JEXTSEL_Pos) /*!< 0x0000003C */
1966#define ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_Msk /*!< ADC group injected external trigger source */
1967#define ADC_JSQR_JEXTSEL_0 (0x1U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000004 */
1968#define ADC_JSQR_JEXTSEL_1 (0x2U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000008 */
1969#define ADC_JSQR_JEXTSEL_2 (0x4U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000010 */
1970#define ADC_JSQR_JEXTSEL_3 (0x8U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000020 */
1971
1972#define ADC_JSQR_JEXTEN_Pos (6U)
1973#define ADC_JSQR_JEXTEN_Msk (0x3U << ADC_JSQR_JEXTEN_Pos) /*!< 0x000000C0 */
1974#define ADC_JSQR_JEXTEN ADC_JSQR_JEXTEN_Msk /*!< ADC group injected external trigger polarity */
1975#define ADC_JSQR_JEXTEN_0 (0x1U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000040 */
1976#define ADC_JSQR_JEXTEN_1 (0x2U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000080 */
1977
1978#define ADC_JSQR_JSQ1_Pos (8U)
1979#define ADC_JSQR_JSQ1_Msk (0x1FU << ADC_JSQR_JSQ1_Pos) /*!< 0x00001F00 */
1980#define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC group injected sequencer rank 1 */
1981#define ADC_JSQR_JSQ1_0 (0x01U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000100 */
1982#define ADC_JSQR_JSQ1_1 (0x02U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000200 */
1983#define ADC_JSQR_JSQ1_2 (0x04U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000400 */
1984#define ADC_JSQR_JSQ1_3 (0x08U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000800 */
1985#define ADC_JSQR_JSQ1_4 (0x10U << ADC_JSQR_JSQ1_Pos) /*!< 0x00001000 */
1986
1987#define ADC_JSQR_JSQ2_Pos (14U)
1988#define ADC_JSQR_JSQ2_Msk (0x1FU << ADC_JSQR_JSQ2_Pos) /*!< 0x0007C000 */
1989#define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC group injected sequencer rank 2 */
1990#define ADC_JSQR_JSQ2_0 (0x01U << ADC_JSQR_JSQ2_Pos) /*!< 0x00004000 */
1991#define ADC_JSQR_JSQ2_1 (0x02U << ADC_JSQR_JSQ2_Pos) /*!< 0x00008000 */
1992#define ADC_JSQR_JSQ2_2 (0x04U << ADC_JSQR_JSQ2_Pos) /*!< 0x00010000 */
1993#define ADC_JSQR_JSQ2_3 (0x08U << ADC_JSQR_JSQ2_Pos) /*!< 0x00020000 */
1994#define ADC_JSQR_JSQ2_4 (0x10U << ADC_JSQR_JSQ2_Pos) /*!< 0x00040000 */
1995
1996#define ADC_JSQR_JSQ3_Pos (20U)
1997#define ADC_JSQR_JSQ3_Msk (0x1FU << ADC_JSQR_JSQ3_Pos) /*!< 0x01F00000 */
1998#define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC group injected sequencer rank 3 */
1999#define ADC_JSQR_JSQ3_0 (0x01U << ADC_JSQR_JSQ3_Pos) /*!< 0x00100000 */
2000#define ADC_JSQR_JSQ3_1 (0x02U << ADC_JSQR_JSQ3_Pos) /*!< 0x00200000 */
2001#define ADC_JSQR_JSQ3_2 (0x04U << ADC_JSQR_JSQ3_Pos) /*!< 0x00400000 */
2002#define ADC_JSQR_JSQ3_3 (0x08U << ADC_JSQR_JSQ3_Pos) /*!< 0x00800000 */
2003#define ADC_JSQR_JSQ3_4 (0x10U << ADC_JSQR_JSQ3_Pos) /*!< 0x01000000 */
2004
2005#define ADC_JSQR_JSQ4_Pos (26U)
2006#define ADC_JSQR_JSQ4_Msk (0x1FU << ADC_JSQR_JSQ4_Pos) /*!< 0x7C000000 */
2007#define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC group injected sequencer rank 4 */
2008#define ADC_JSQR_JSQ4_0 (0x01U << ADC_JSQR_JSQ4_Pos) /*!< 0x04000000 */
2009#define ADC_JSQR_JSQ4_1 (0x02U << ADC_JSQR_JSQ4_Pos) /*!< 0x08000000 */
2010#define ADC_JSQR_JSQ4_2 (0x04U << ADC_JSQR_JSQ4_Pos) /*!< 0x10000000 */
2011#define ADC_JSQR_JSQ4_3 (0x08U << ADC_JSQR_JSQ4_Pos) /*!< 0x20000000 */
2012#define ADC_JSQR_JSQ4_4 (0x10U << ADC_JSQR_JSQ4_Pos) /*!< 0x40000000 */
2013
2014/******************** Bit definition for ADC_OFR1 register ******************/
2015#define ADC_OFR1_OFFSET1_Pos (0U)
2016#define ADC_OFR1_OFFSET1_Msk (0xFFFU << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000FFF */
2017#define ADC_OFR1_OFFSET1 ADC_OFR1_OFFSET1_Msk /*!< ADC offset number 1 offset level */
2018#define ADC_OFR1_OFFSET1_0 (0x001U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000001 */
2019#define ADC_OFR1_OFFSET1_1 (0x002U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000002 */
2020#define ADC_OFR1_OFFSET1_2 (0x004U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000004 */
2021#define ADC_OFR1_OFFSET1_3 (0x008U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000008 */
2022#define ADC_OFR1_OFFSET1_4 (0x010U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000010 */
2023#define ADC_OFR1_OFFSET1_5 (0x020U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000020 */
2024#define ADC_OFR1_OFFSET1_6 (0x040U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000040 */
2025#define ADC_OFR1_OFFSET1_7 (0x080U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000080 */
2026#define ADC_OFR1_OFFSET1_8 (0x100U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000100 */
2027#define ADC_OFR1_OFFSET1_9 (0x200U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000200 */
2028#define ADC_OFR1_OFFSET1_10 (0x400U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000400 */
2029#define ADC_OFR1_OFFSET1_11 (0x800U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000800 */
2030
2031#define ADC_OFR1_OFFSET1_CH_Pos (26U)
2032#define ADC_OFR1_OFFSET1_CH_Msk (0x1FU << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x7C000000 */
2033#define ADC_OFR1_OFFSET1_CH ADC_OFR1_OFFSET1_CH_Msk /*!< ADC offset number 1 channel selection */
2034#define ADC_OFR1_OFFSET1_CH_0 (0x01U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x04000000 */
2035#define ADC_OFR1_OFFSET1_CH_1 (0x02U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x08000000 */
2036#define ADC_OFR1_OFFSET1_CH_2 (0x04U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x10000000 */
2037#define ADC_OFR1_OFFSET1_CH_3 (0x08U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x20000000 */
2038#define ADC_OFR1_OFFSET1_CH_4 (0x10U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x40000000 */
2039
2040#define ADC_OFR1_OFFSET1_EN_Pos (31U)
2041#define ADC_OFR1_OFFSET1_EN_Msk (0x1U << ADC_OFR1_OFFSET1_EN_Pos) /*!< 0x80000000 */
2042#define ADC_OFR1_OFFSET1_EN ADC_OFR1_OFFSET1_EN_Msk /*!< ADC offset number 1 enable */
2043
2044/******************** Bit definition for ADC_OFR2 register ******************/
2045#define ADC_OFR2_OFFSET2_Pos (0U)
2046#define ADC_OFR2_OFFSET2_Msk (0xFFFU << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000FFF */
2047#define ADC_OFR2_OFFSET2 ADC_OFR2_OFFSET2_Msk /*!< ADC offset number 2 offset level */
2048#define ADC_OFR2_OFFSET2_0 (0x001U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000001 */
2049#define ADC_OFR2_OFFSET2_1 (0x002U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000002 */
2050#define ADC_OFR2_OFFSET2_2 (0x004U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000004 */
2051#define ADC_OFR2_OFFSET2_3 (0x008U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000008 */
2052#define ADC_OFR2_OFFSET2_4 (0x010U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000010 */
2053#define ADC_OFR2_OFFSET2_5 (0x020U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000020 */
2054#define ADC_OFR2_OFFSET2_6 (0x040U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000040 */
2055#define ADC_OFR2_OFFSET2_7 (0x080U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000080 */
2056#define ADC_OFR2_OFFSET2_8 (0x100U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000100 */
2057#define ADC_OFR2_OFFSET2_9 (0x200U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000200 */
2058#define ADC_OFR2_OFFSET2_10 (0x400U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000400 */
2059#define ADC_OFR2_OFFSET2_11 (0x800U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000800 */
2060
2061#define ADC_OFR2_OFFSET2_CH_Pos (26U)
2062#define ADC_OFR2_OFFSET2_CH_Msk (0x1FU << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x7C000000 */
2063#define ADC_OFR2_OFFSET2_CH ADC_OFR2_OFFSET2_CH_Msk /*!< ADC offset number 2 channel selection */
2064#define ADC_OFR2_OFFSET2_CH_0 (0x01U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x04000000 */
2065#define ADC_OFR2_OFFSET2_CH_1 (0x02U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x08000000 */
2066#define ADC_OFR2_OFFSET2_CH_2 (0x04U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x10000000 */
2067#define ADC_OFR2_OFFSET2_CH_3 (0x08U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x20000000 */
2068#define ADC_OFR2_OFFSET2_CH_4 (0x10U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x40000000 */
2069
2070#define ADC_OFR2_OFFSET2_EN_Pos (31U)
2071#define ADC_OFR2_OFFSET2_EN_Msk (0x1U << ADC_OFR2_OFFSET2_EN_Pos) /*!< 0x80000000 */
2072#define ADC_OFR2_OFFSET2_EN ADC_OFR2_OFFSET2_EN_Msk /*!< ADC offset number 2 enable */
2073
2074/******************** Bit definition for ADC_OFR3 register ******************/
2075#define ADC_OFR3_OFFSET3_Pos (0U)
2076#define ADC_OFR3_OFFSET3_Msk (0xFFFU << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000FFF */
2077#define ADC_OFR3_OFFSET3 ADC_OFR3_OFFSET3_Msk /*!< ADC offset number 3 offset level */
2078#define ADC_OFR3_OFFSET3_0 (0x001U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000001 */
2079#define ADC_OFR3_OFFSET3_1 (0x002U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000002 */
2080#define ADC_OFR3_OFFSET3_2 (0x004U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000004 */
2081#define ADC_OFR3_OFFSET3_3 (0x008U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000008 */
2082#define ADC_OFR3_OFFSET3_4 (0x010U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000010 */
2083#define ADC_OFR3_OFFSET3_5 (0x020U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000020 */
2084#define ADC_OFR3_OFFSET3_6 (0x040U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000040 */
2085#define ADC_OFR3_OFFSET3_7 (0x080U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000080 */
2086#define ADC_OFR3_OFFSET3_8 (0x100U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000100 */
2087#define ADC_OFR3_OFFSET3_9 (0x200U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000200 */
2088#define ADC_OFR3_OFFSET3_10 (0x400U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000400 */
2089#define ADC_OFR3_OFFSET3_11 (0x800U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000800 */
2090
2091#define ADC_OFR3_OFFSET3_CH_Pos (26U)
2092#define ADC_OFR3_OFFSET3_CH_Msk (0x1FU << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x7C000000 */
2093#define ADC_OFR3_OFFSET3_CH ADC_OFR3_OFFSET3_CH_Msk /*!< ADC offset number 3 channel selection */
2094#define ADC_OFR3_OFFSET3_CH_0 (0x01U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x04000000 */
2095#define ADC_OFR3_OFFSET3_CH_1 (0x02U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x08000000 */
2096#define ADC_OFR3_OFFSET3_CH_2 (0x04U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x10000000 */
2097#define ADC_OFR3_OFFSET3_CH_3 (0x08U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x20000000 */
2098#define ADC_OFR3_OFFSET3_CH_4 (0x10U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x40000000 */
2099
2100#define ADC_OFR3_OFFSET3_EN_Pos (31U)
2101#define ADC_OFR3_OFFSET3_EN_Msk (0x1U << ADC_OFR3_OFFSET3_EN_Pos) /*!< 0x80000000 */
2102#define ADC_OFR3_OFFSET3_EN ADC_OFR3_OFFSET3_EN_Msk /*!< ADC offset number 3 enable */
2103
2104/******************** Bit definition for ADC_OFR4 register ******************/
2105#define ADC_OFR4_OFFSET4_Pos (0U)
2106#define ADC_OFR4_OFFSET4_Msk (0xFFFU << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000FFF */
2107#define ADC_OFR4_OFFSET4 ADC_OFR4_OFFSET4_Msk /*!< ADC offset number 4 offset level */
2108#define ADC_OFR4_OFFSET4_0 (0x001U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000001 */
2109#define ADC_OFR4_OFFSET4_1 (0x002U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000002 */
2110#define ADC_OFR4_OFFSET4_2 (0x004U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000004 */
2111#define ADC_OFR4_OFFSET4_3 (0x008U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000008 */
2112#define ADC_OFR4_OFFSET4_4 (0x010U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000010 */
2113#define ADC_OFR4_OFFSET4_5 (0x020U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000020 */
2114#define ADC_OFR4_OFFSET4_6 (0x040U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000040 */
2115#define ADC_OFR4_OFFSET4_7 (0x080U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000080 */
2116#define ADC_OFR4_OFFSET4_8 (0x100U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000100 */
2117#define ADC_OFR4_OFFSET4_9 (0x200U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000200 */
2118#define ADC_OFR4_OFFSET4_10 (0x400U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000400 */
2119#define ADC_OFR4_OFFSET4_11 (0x800U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000800 */
2120
2121#define ADC_OFR4_OFFSET4_CH_Pos (26U)
2122#define ADC_OFR4_OFFSET4_CH_Msk (0x1FU << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x7C000000 */
2123#define ADC_OFR4_OFFSET4_CH ADC_OFR4_OFFSET4_CH_Msk /*!< ADC offset number 4 channel selection */
2124#define ADC_OFR4_OFFSET4_CH_0 (0x01U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x04000000 */
2125#define ADC_OFR4_OFFSET4_CH_1 (0x02U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x08000000 */
2126#define ADC_OFR4_OFFSET4_CH_2 (0x04U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x10000000 */
2127#define ADC_OFR4_OFFSET4_CH_3 (0x08U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x20000000 */
2128#define ADC_OFR4_OFFSET4_CH_4 (0x10U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x40000000 */
2129
2130#define ADC_OFR4_OFFSET4_EN_Pos (31U)
2131#define ADC_OFR4_OFFSET4_EN_Msk (0x1U << ADC_OFR4_OFFSET4_EN_Pos) /*!< 0x80000000 */
2132#define ADC_OFR4_OFFSET4_EN ADC_OFR4_OFFSET4_EN_Msk /*!< ADC offset number 4 enable */
2133
2134/******************** Bit definition for ADC_JDR1 register ******************/
2135#define ADC_JDR1_JDATA_Pos (0U)
2136#define ADC_JDR1_JDATA_Msk (0xFFFFU << ADC_JDR1_JDATA_Pos) /*!< 0x0000FFFF */
2137#define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC group injected sequencer rank 1 conversion data */
2138#define ADC_JDR1_JDATA_0 (0x0001U << ADC_JDR1_JDATA_Pos) /*!< 0x00000001 */
2139#define ADC_JDR1_JDATA_1 (0x0002U << ADC_JDR1_JDATA_Pos) /*!< 0x00000002 */
2140#define ADC_JDR1_JDATA_2 (0x0004U << ADC_JDR1_JDATA_Pos) /*!< 0x00000004 */
2141#define ADC_JDR1_JDATA_3 (0x0008U << ADC_JDR1_JDATA_Pos) /*!< 0x00000008 */
2142#define ADC_JDR1_JDATA_4 (0x0010U << ADC_JDR1_JDATA_Pos) /*!< 0x00000010 */
2143#define ADC_JDR1_JDATA_5 (0x0020U << ADC_JDR1_JDATA_Pos) /*!< 0x00000020 */
2144#define ADC_JDR1_JDATA_6 (0x0040U << ADC_JDR1_JDATA_Pos) /*!< 0x00000040 */
2145#define ADC_JDR1_JDATA_7 (0x0080U << ADC_JDR1_JDATA_Pos) /*!< 0x00000080 */
2146#define ADC_JDR1_JDATA_8 (0x0100U << ADC_JDR1_JDATA_Pos) /*!< 0x00000100 */
2147#define ADC_JDR1_JDATA_9 (0x0200U << ADC_JDR1_JDATA_Pos) /*!< 0x00000200 */
2148#define ADC_JDR1_JDATA_10 (0x0400U << ADC_JDR1_JDATA_Pos) /*!< 0x00000400 */
2149#define ADC_JDR1_JDATA_11 (0x0800U << ADC_JDR1_JDATA_Pos) /*!< 0x00000800 */
2150#define ADC_JDR1_JDATA_12 (0x1000U << ADC_JDR1_JDATA_Pos) /*!< 0x00001000 */
2151#define ADC_JDR1_JDATA_13 (0x2000U << ADC_JDR1_JDATA_Pos) /*!< 0x00002000 */
2152#define ADC_JDR1_JDATA_14 (0x4000U << ADC_JDR1_JDATA_Pos) /*!< 0x00004000 */
2153#define ADC_JDR1_JDATA_15 (0x8000U << ADC_JDR1_JDATA_Pos) /*!< 0x00008000 */
2154
2155/******************** Bit definition for ADC_JDR2 register ******************/
2156#define ADC_JDR2_JDATA_Pos (0U)
2157#define ADC_JDR2_JDATA_Msk (0xFFFFU << ADC_JDR2_JDATA_Pos) /*!< 0x0000FFFF */
2158#define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC group injected sequencer rank 2 conversion data */
2159#define ADC_JDR2_JDATA_0 (0x0001U << ADC_JDR2_JDATA_Pos) /*!< 0x00000001 */
2160#define ADC_JDR2_JDATA_1 (0x0002U << ADC_JDR2_JDATA_Pos) /*!< 0x00000002 */
2161#define ADC_JDR2_JDATA_2 (0x0004U << ADC_JDR2_JDATA_Pos) /*!< 0x00000004 */
2162#define ADC_JDR2_JDATA_3 (0x0008U << ADC_JDR2_JDATA_Pos) /*!< 0x00000008 */
2163#define ADC_JDR2_JDATA_4 (0x0010U << ADC_JDR2_JDATA_Pos) /*!< 0x00000010 */
2164#define ADC_JDR2_JDATA_5 (0x0020U << ADC_JDR2_JDATA_Pos) /*!< 0x00000020 */
2165#define ADC_JDR2_JDATA_6 (0x0040U << ADC_JDR2_JDATA_Pos) /*!< 0x00000040 */
2166#define ADC_JDR2_JDATA_7 (0x0080U << ADC_JDR2_JDATA_Pos) /*!< 0x00000080 */
2167#define ADC_JDR2_JDATA_8 (0x0100U << ADC_JDR2_JDATA_Pos) /*!< 0x00000100 */
2168#define ADC_JDR2_JDATA_9 (0x0200U << ADC_JDR2_JDATA_Pos) /*!< 0x00000200 */
2169#define ADC_JDR2_JDATA_10 (0x0400U << ADC_JDR2_JDATA_Pos) /*!< 0x00000400 */
2170#define ADC_JDR2_JDATA_11 (0x0800U << ADC_JDR2_JDATA_Pos) /*!< 0x00000800 */
2171#define ADC_JDR2_JDATA_12 (0x1000U << ADC_JDR2_JDATA_Pos) /*!< 0x00001000 */
2172#define ADC_JDR2_JDATA_13 (0x2000U << ADC_JDR2_JDATA_Pos) /*!< 0x00002000 */
2173#define ADC_JDR2_JDATA_14 (0x4000U << ADC_JDR2_JDATA_Pos) /*!< 0x00004000 */
2174#define ADC_JDR2_JDATA_15 (0x8000U << ADC_JDR2_JDATA_Pos) /*!< 0x00008000 */
2175
2176/******************** Bit definition for ADC_JDR3 register ******************/
2177#define ADC_JDR3_JDATA_Pos (0U)
2178#define ADC_JDR3_JDATA_Msk (0xFFFFU << ADC_JDR3_JDATA_Pos) /*!< 0x0000FFFF */
2179#define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC group injected sequencer rank 3 conversion data */
2180#define ADC_JDR3_JDATA_0 (0x0001U << ADC_JDR3_JDATA_Pos) /*!< 0x00000001 */
2181#define ADC_JDR3_JDATA_1 (0x0002U << ADC_JDR3_JDATA_Pos) /*!< 0x00000002 */
2182#define ADC_JDR3_JDATA_2 (0x0004U << ADC_JDR3_JDATA_Pos) /*!< 0x00000004 */
2183#define ADC_JDR3_JDATA_3 (0x0008U << ADC_JDR3_JDATA_Pos) /*!< 0x00000008 */
2184#define ADC_JDR3_JDATA_4 (0x0010U << ADC_JDR3_JDATA_Pos) /*!< 0x00000010 */
2185#define ADC_JDR3_JDATA_5 (0x0020U << ADC_JDR3_JDATA_Pos) /*!< 0x00000020 */
2186#define ADC_JDR3_JDATA_6 (0x0040U << ADC_JDR3_JDATA_Pos) /*!< 0x00000040 */
2187#define ADC_JDR3_JDATA_7 (0x0080U << ADC_JDR3_JDATA_Pos) /*!< 0x00000080 */
2188#define ADC_JDR3_JDATA_8 (0x0100U << ADC_JDR3_JDATA_Pos) /*!< 0x00000100 */
2189#define ADC_JDR3_JDATA_9 (0x0200U << ADC_JDR3_JDATA_Pos) /*!< 0x00000200 */
2190#define ADC_JDR3_JDATA_10 (0x0400U << ADC_JDR3_JDATA_Pos) /*!< 0x00000400 */
2191#define ADC_JDR3_JDATA_11 (0x0800U << ADC_JDR3_JDATA_Pos) /*!< 0x00000800 */
2192#define ADC_JDR3_JDATA_12 (0x1000U << ADC_JDR3_JDATA_Pos) /*!< 0x00001000 */
2193#define ADC_JDR3_JDATA_13 (0x2000U << ADC_JDR3_JDATA_Pos) /*!< 0x00002000 */
2194#define ADC_JDR3_JDATA_14 (0x4000U << ADC_JDR3_JDATA_Pos) /*!< 0x00004000 */
2195#define ADC_JDR3_JDATA_15 (0x8000U << ADC_JDR3_JDATA_Pos) /*!< 0x00008000 */
2196
2197/******************** Bit definition for ADC_JDR4 register ******************/
2198#define ADC_JDR4_JDATA_Pos (0U)
2199#define ADC_JDR4_JDATA_Msk (0xFFFFU << ADC_JDR4_JDATA_Pos) /*!< 0x0000FFFF */
2200#define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC group injected sequencer rank 4 conversion data */
2201#define ADC_JDR4_JDATA_0 (0x0001U << ADC_JDR4_JDATA_Pos) /*!< 0x00000001 */
2202#define ADC_JDR4_JDATA_1 (0x0002U << ADC_JDR4_JDATA_Pos) /*!< 0x00000002 */
2203#define ADC_JDR4_JDATA_2 (0x0004U << ADC_JDR4_JDATA_Pos) /*!< 0x00000004 */
2204#define ADC_JDR4_JDATA_3 (0x0008U << ADC_JDR4_JDATA_Pos) /*!< 0x00000008 */
2205#define ADC_JDR4_JDATA_4 (0x0010U << ADC_JDR4_JDATA_Pos) /*!< 0x00000010 */
2206#define ADC_JDR4_JDATA_5 (0x0020U << ADC_JDR4_JDATA_Pos) /*!< 0x00000020 */
2207#define ADC_JDR4_JDATA_6 (0x0040U << ADC_JDR4_JDATA_Pos) /*!< 0x00000040 */
2208#define ADC_JDR4_JDATA_7 (0x0080U << ADC_JDR4_JDATA_Pos) /*!< 0x00000080 */
2209#define ADC_JDR4_JDATA_8 (0x0100U << ADC_JDR4_JDATA_Pos) /*!< 0x00000100 */
2210#define ADC_JDR4_JDATA_9 (0x0200U << ADC_JDR4_JDATA_Pos) /*!< 0x00000200 */
2211#define ADC_JDR4_JDATA_10 (0x0400U << ADC_JDR4_JDATA_Pos) /*!< 0x00000400 */
2212#define ADC_JDR4_JDATA_11 (0x0800U << ADC_JDR4_JDATA_Pos) /*!< 0x00000800 */
2213#define ADC_JDR4_JDATA_12 (0x1000U << ADC_JDR4_JDATA_Pos) /*!< 0x00001000 */
2214#define ADC_JDR4_JDATA_13 (0x2000U << ADC_JDR4_JDATA_Pos) /*!< 0x00002000 */
2215#define ADC_JDR4_JDATA_14 (0x4000U << ADC_JDR4_JDATA_Pos) /*!< 0x00004000 */
2216#define ADC_JDR4_JDATA_15 (0x8000U << ADC_JDR4_JDATA_Pos) /*!< 0x00008000 */
2217
2218/******************** Bit definition for ADC_AWD2CR register ****************/
2219#define ADC_AWD2CR_AWD2CH_Pos (0U)
2220#define ADC_AWD2CR_AWD2CH_Msk (0x7FFFFU << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x0007FFFF */
2221#define ADC_AWD2CR_AWD2CH ADC_AWD2CR_AWD2CH_Msk /*!< ADC analog watchdog 2 monitored channel selection */
2222#define ADC_AWD2CR_AWD2CH_0 (0x00001U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000001 */
2223#define ADC_AWD2CR_AWD2CH_1 (0x00002U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000002 */
2224#define ADC_AWD2CR_AWD2CH_2 (0x00004U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000004 */
2225#define ADC_AWD2CR_AWD2CH_3 (0x00008U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000008 */
2226#define ADC_AWD2CR_AWD2CH_4 (0x00010U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000010 */
2227#define ADC_AWD2CR_AWD2CH_5 (0x00020U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000020 */
2228#define ADC_AWD2CR_AWD2CH_6 (0x00040U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000040 */
2229#define ADC_AWD2CR_AWD2CH_7 (0x00080U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000080 */
2230#define ADC_AWD2CR_AWD2CH_8 (0x00100U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000100 */
2231#define ADC_AWD2CR_AWD2CH_9 (0x00200U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000200 */
2232#define ADC_AWD2CR_AWD2CH_10 (0x00400U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000400 */
2233#define ADC_AWD2CR_AWD2CH_11 (0x00800U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000800 */
2234#define ADC_AWD2CR_AWD2CH_12 (0x01000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00001000 */
2235#define ADC_AWD2CR_AWD2CH_13 (0x02000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00002000 */
2236#define ADC_AWD2CR_AWD2CH_14 (0x04000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00004000 */
2237#define ADC_AWD2CR_AWD2CH_15 (0x08000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00008000 */
2238#define ADC_AWD2CR_AWD2CH_16 (0x10000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00010000 */
2239#define ADC_AWD2CR_AWD2CH_17 (0x20000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00020000 */
2240#define ADC_AWD2CR_AWD2CH_18 (0x40000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00040000 */
2241
2242/******************** Bit definition for ADC_AWD3CR register ****************/
2243#define ADC_AWD3CR_AWD3CH_Pos (0U)
2244#define ADC_AWD3CR_AWD3CH_Msk (0x7FFFFU << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x0007FFFF */
2245#define ADC_AWD3CR_AWD3CH ADC_AWD3CR_AWD3CH_Msk /*!< ADC analog watchdog 3 monitored channel selection */
2246#define ADC_AWD3CR_AWD3CH_0 (0x00001U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000001 */
2247#define ADC_AWD3CR_AWD3CH_1 (0x00002U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000002 */
2248#define ADC_AWD3CR_AWD3CH_2 (0x00004U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000004 */
2249#define ADC_AWD3CR_AWD3CH_3 (0x00008U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000008 */
2250#define ADC_AWD3CR_AWD3CH_4 (0x00010U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000010 */
2251#define ADC_AWD3CR_AWD3CH_5 (0x00020U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000020 */
2252#define ADC_AWD3CR_AWD3CH_6 (0x00040U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000040 */
2253#define ADC_AWD3CR_AWD3CH_7 (0x00080U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000080 */
2254#define ADC_AWD3CR_AWD3CH_8 (0x00100U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000100 */
2255#define ADC_AWD3CR_AWD3CH_9 (0x00200U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000200 */
2256#define ADC_AWD3CR_AWD3CH_10 (0x00400U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000400 */
2257#define ADC_AWD3CR_AWD3CH_11 (0x00800U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000800 */
2258#define ADC_AWD3CR_AWD3CH_12 (0x01000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00001000 */
2259#define ADC_AWD3CR_AWD3CH_13 (0x02000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00002000 */
2260#define ADC_AWD3CR_AWD3CH_14 (0x04000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00004000 */
2261#define ADC_AWD3CR_AWD3CH_15 (0x08000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00008000 */
2262#define ADC_AWD3CR_AWD3CH_16 (0x10000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00010000 */
2263#define ADC_AWD3CR_AWD3CH_17 (0x20000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00020000 */
2264#define ADC_AWD3CR_AWD3CH_18 (0x40000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00040000 */
2265
2266/******************** Bit definition for ADC_DIFSEL register ****************/
2267#define ADC_DIFSEL_DIFSEL_Pos (0U)
2268#define ADC_DIFSEL_DIFSEL_Msk (0x7FFFFU << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x0007FFFF */
2269#define ADC_DIFSEL_DIFSEL ADC_DIFSEL_DIFSEL_Msk /*!< ADC channel differential or single-ended mode */
2270#define ADC_DIFSEL_DIFSEL_0 (0x00001U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000001 */
2271#define ADC_DIFSEL_DIFSEL_1 (0x00002U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000002 */
2272#define ADC_DIFSEL_DIFSEL_2 (0x00004U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000004 */
2273#define ADC_DIFSEL_DIFSEL_3 (0x00008U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000008 */
2274#define ADC_DIFSEL_DIFSEL_4 (0x00010U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000010 */
2275#define ADC_DIFSEL_DIFSEL_5 (0x00020U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000020 */
2276#define ADC_DIFSEL_DIFSEL_6 (0x00040U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000040 */
2277#define ADC_DIFSEL_DIFSEL_7 (0x00080U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000080 */
2278#define ADC_DIFSEL_DIFSEL_8 (0x00100U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000100 */
2279#define ADC_DIFSEL_DIFSEL_9 (0x00200U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000200 */
2280#define ADC_DIFSEL_DIFSEL_10 (0x00400U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000400 */
2281#define ADC_DIFSEL_DIFSEL_11 (0x00800U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000800 */
2282#define ADC_DIFSEL_DIFSEL_12 (0x01000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00001000 */
2283#define ADC_DIFSEL_DIFSEL_13 (0x02000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00002000 */
2284#define ADC_DIFSEL_DIFSEL_14 (0x04000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00004000 */
2285#define ADC_DIFSEL_DIFSEL_15 (0x08000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00008000 */
2286#define ADC_DIFSEL_DIFSEL_16 (0x10000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00010000 */
2287#define ADC_DIFSEL_DIFSEL_17 (0x20000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00020000 */
2288#define ADC_DIFSEL_DIFSEL_18 (0x40000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00040000 */
2289
2290/******************** Bit definition for ADC_CALFACT register ***************/
2291#define ADC_CALFACT_CALFACT_S_Pos (0U)
2292#define ADC_CALFACT_CALFACT_S_Msk (0x7FU << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x0000007F */
2293#define ADC_CALFACT_CALFACT_S ADC_CALFACT_CALFACT_S_Msk /*!< ADC calibration factor in single-ended mode */
2294#define ADC_CALFACT_CALFACT_S_0 (0x01U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000001 */
2295#define ADC_CALFACT_CALFACT_S_1 (0x02U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000002 */
2296#define ADC_CALFACT_CALFACT_S_2 (0x04U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000004 */
2297#define ADC_CALFACT_CALFACT_S_3 (0x08U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000008 */
2298#define ADC_CALFACT_CALFACT_S_4 (0x10U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000010 */
2299#define ADC_CALFACT_CALFACT_S_5 (0x20U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000020 */
2300#define ADC_CALFACT_CALFACT_S_6 (0x40U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000040 */
2301
2302#define ADC_CALFACT_CALFACT_D_Pos (16U)
2303#define ADC_CALFACT_CALFACT_D_Msk (0x7FU << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x007F0000 */
2304#define ADC_CALFACT_CALFACT_D ADC_CALFACT_CALFACT_D_Msk /*!< ADC calibration factor in differential mode */
2305#define ADC_CALFACT_CALFACT_D_0 (0x01U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00010000 */
2306#define ADC_CALFACT_CALFACT_D_1 (0x02U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00020000 */
2307#define ADC_CALFACT_CALFACT_D_2 (0x04U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00040000 */
2308#define ADC_CALFACT_CALFACT_D_3 (0x08U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00080000 */
2309#define ADC_CALFACT_CALFACT_D_4 (0x10U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00100000 */
2310#define ADC_CALFACT_CALFACT_D_5 (0x20U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00200000 */
2311#define ADC_CALFACT_CALFACT_D_6 (0x40U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00400000 */
2312
2313/************************* ADC Common registers *****************************/
2314/******************** Bit definition for ADC_CSR register *******************/
2315#define ADC_CSR_ADRDY_MST_Pos (0U)
2316#define ADC_CSR_ADRDY_MST_Msk (0x1U << ADC_CSR_ADRDY_MST_Pos) /*!< 0x00000001 */
2317#define ADC_CSR_ADRDY_MST ADC_CSR_ADRDY_MST_Msk /*!< ADC multimode master ready flag */
2318#define ADC_CSR_EOSMP_MST_Pos (1U)
2319#define ADC_CSR_EOSMP_MST_Msk (0x1U << ADC_CSR_EOSMP_MST_Pos) /*!< 0x00000002 */
2320#define ADC_CSR_EOSMP_MST ADC_CSR_EOSMP_MST_Msk /*!< ADC multimode master group regular end of sampling flag */
2321#define ADC_CSR_EOC_MST_Pos (2U)
2322#define ADC_CSR_EOC_MST_Msk (0x1U << ADC_CSR_EOC_MST_Pos) /*!< 0x00000004 */
2323#define ADC_CSR_EOC_MST ADC_CSR_EOC_MST_Msk /*!< ADC multimode master group regular end of unitary conversion flag */
2324#define ADC_CSR_EOS_MST_Pos (3U)
2325#define ADC_CSR_EOS_MST_Msk (0x1U << ADC_CSR_EOS_MST_Pos) /*!< 0x00000008 */
2326#define ADC_CSR_EOS_MST ADC_CSR_EOS_MST_Msk /*!< ADC multimode master group regular end of sequence conversions flag */
2327#define ADC_CSR_OVR_MST_Pos (4U)
2328#define ADC_CSR_OVR_MST_Msk (0x1U << ADC_CSR_OVR_MST_Pos) /*!< 0x00000010 */
2329#define ADC_CSR_OVR_MST ADC_CSR_OVR_MST_Msk /*!< ADC multimode master group regular overrun flag */
2330#define ADC_CSR_JEOC_MST_Pos (5U)
2331#define ADC_CSR_JEOC_MST_Msk (0x1U << ADC_CSR_JEOC_MST_Pos) /*!< 0x00000020 */
2332#define ADC_CSR_JEOC_MST ADC_CSR_JEOC_MST_Msk /*!< ADC multimode master group injected end of unitary conversion flag */
2333#define ADC_CSR_JEOS_MST_Pos (6U)
2334#define ADC_CSR_JEOS_MST_Msk (0x1U << ADC_CSR_JEOS_MST_Pos) /*!< 0x00000040 */
2335#define ADC_CSR_JEOS_MST ADC_CSR_JEOS_MST_Msk /*!< ADC multimode master group injected end of sequence conversions flag */
2336#define ADC_CSR_AWD1_MST_Pos (7U)
2337#define ADC_CSR_AWD1_MST_Msk (0x1U << ADC_CSR_AWD1_MST_Pos) /*!< 0x00000080 */
2338#define ADC_CSR_AWD1_MST ADC_CSR_AWD1_MST_Msk /*!< ADC multimode master analog watchdog 1 flag */
2339#define ADC_CSR_AWD2_MST_Pos (8U)
2340#define ADC_CSR_AWD2_MST_Msk (0x1U << ADC_CSR_AWD2_MST_Pos) /*!< 0x00000100 */
2341#define ADC_CSR_AWD2_MST ADC_CSR_AWD2_MST_Msk /*!< ADC multimode master analog watchdog 2 flag */
2342#define ADC_CSR_AWD3_MST_Pos (9U)
2343#define ADC_CSR_AWD3_MST_Msk (0x1U << ADC_CSR_AWD3_MST_Pos) /*!< 0x00000200 */
2344#define ADC_CSR_AWD3_MST ADC_CSR_AWD3_MST_Msk /*!< ADC multimode master analog watchdog 3 flag */
2345#define ADC_CSR_JQOVF_MST_Pos (10U)
2346#define ADC_CSR_JQOVF_MST_Msk (0x1U << ADC_CSR_JQOVF_MST_Pos) /*!< 0x00000400 */
2347#define ADC_CSR_JQOVF_MST ADC_CSR_JQOVF_MST_Msk /*!< ADC multimode master group injected contexts queue overflow flag */
2348
2349#define ADC_CSR_ADRDY_SLV_Pos (16U)
2350#define ADC_CSR_ADRDY_SLV_Msk (0x1U << ADC_CSR_ADRDY_SLV_Pos) /*!< 0x00010000 */
2351#define ADC_CSR_ADRDY_SLV ADC_CSR_ADRDY_SLV_Msk /*!< ADC multimode slave ready flag */
2352#define ADC_CSR_EOSMP_SLV_Pos (17U)
2353#define ADC_CSR_EOSMP_SLV_Msk (0x1U << ADC_CSR_EOSMP_SLV_Pos) /*!< 0x00020000 */
2354#define ADC_CSR_EOSMP_SLV ADC_CSR_EOSMP_SLV_Msk /*!< ADC multimode slave group regular end of sampling flag */
2355#define ADC_CSR_EOC_SLV_Pos (18U)
2356#define ADC_CSR_EOC_SLV_Msk (0x1U << ADC_CSR_EOC_SLV_Pos) /*!< 0x00040000 */
2357#define ADC_CSR_EOC_SLV ADC_CSR_EOC_SLV_Msk /*!< ADC multimode slave group regular end of unitary conversion flag */
2358#define ADC_CSR_EOS_SLV_Pos (19U)
2359#define ADC_CSR_EOS_SLV_Msk (0x1U << ADC_CSR_EOS_SLV_Pos) /*!< 0x00080000 */
2360#define ADC_CSR_EOS_SLV ADC_CSR_EOS_SLV_Msk /*!< ADC multimode slave group regular end of sequence conversions flag */
2361#define ADC_CSR_OVR_SLV_Pos (20U)
2362#define ADC_CSR_OVR_SLV_Msk (0x1U << ADC_CSR_OVR_SLV_Pos) /*!< 0x00100000 */
2363#define ADC_CSR_OVR_SLV ADC_CSR_OVR_SLV_Msk /*!< ADC multimode slave group regular overrun flag */
2364#define ADC_CSR_JEOC_SLV_Pos (21U)
2365#define ADC_CSR_JEOC_SLV_Msk (0x1U << ADC_CSR_JEOC_SLV_Pos) /*!< 0x00200000 */
2366#define ADC_CSR_JEOC_SLV ADC_CSR_JEOC_SLV_Msk /*!< ADC multimode slave group injected end of unitary conversion flag */
2367#define ADC_CSR_JEOS_SLV_Pos (22U)
2368#define ADC_CSR_JEOS_SLV_Msk (0x1U << ADC_CSR_JEOS_SLV_Pos) /*!< 0x00400000 */
2369#define ADC_CSR_JEOS_SLV ADC_CSR_JEOS_SLV_Msk /*!< ADC multimode slave group injected end of sequence conversions flag */
2370#define ADC_CSR_AWD1_SLV_Pos (23U)
2371#define ADC_CSR_AWD1_SLV_Msk (0x1U << ADC_CSR_AWD1_SLV_Pos) /*!< 0x00800000 */
2372#define ADC_CSR_AWD1_SLV ADC_CSR_AWD1_SLV_Msk /*!< ADC multimode slave analog watchdog 1 flag */
2373#define ADC_CSR_AWD2_SLV_Pos (24U)
2374#define ADC_CSR_AWD2_SLV_Msk (0x1U << ADC_CSR_AWD2_SLV_Pos) /*!< 0x01000000 */
2375#define ADC_CSR_AWD2_SLV ADC_CSR_AWD2_SLV_Msk /*!< ADC multimode slave analog watchdog 2 flag */
2376#define ADC_CSR_AWD3_SLV_Pos (25U)
2377#define ADC_CSR_AWD3_SLV_Msk (0x1U << ADC_CSR_AWD3_SLV_Pos) /*!< 0x02000000 */
2378#define ADC_CSR_AWD3_SLV ADC_CSR_AWD3_SLV_Msk /*!< ADC multimode slave analog watchdog 3 flag */
2379#define ADC_CSR_JQOVF_SLV_Pos (26U)
2380#define ADC_CSR_JQOVF_SLV_Msk (0x1U << ADC_CSR_JQOVF_SLV_Pos) /*!< 0x04000000 */
2381#define ADC_CSR_JQOVF_SLV ADC_CSR_JQOVF_SLV_Msk /*!< ADC multimode slave group injected contexts queue overflow flag */
2382
2383/******************** Bit definition for ADC_CCR register *******************/
2384#define ADC_CCR_DUAL_Pos (0U)
2385#define ADC_CCR_DUAL_Msk (0x1FU << ADC_CCR_DUAL_Pos) /*!< 0x0000001F */
2386#define ADC_CCR_DUAL ADC_CCR_DUAL_Msk /*!< ADC multimode mode selection */
2387#define ADC_CCR_DUAL_0 (0x01U << ADC_CCR_DUAL_Pos) /*!< 0x00000001 */
2388#define ADC_CCR_DUAL_1 (0x02U << ADC_CCR_DUAL_Pos) /*!< 0x00000002 */
2389#define ADC_CCR_DUAL_2 (0x04U << ADC_CCR_DUAL_Pos) /*!< 0x00000004 */
2390#define ADC_CCR_DUAL_3 (0x08U << ADC_CCR_DUAL_Pos) /*!< 0x00000008 */
2391#define ADC_CCR_DUAL_4 (0x10U << ADC_CCR_DUAL_Pos) /*!< 0x00000010 */
2392
2393#define ADC_CCR_DELAY_Pos (8U)
2394#define ADC_CCR_DELAY_Msk (0xFU << ADC_CCR_DELAY_Pos) /*!< 0x00000F00 */
2395#define ADC_CCR_DELAY ADC_CCR_DELAY_Msk /*!< ADC multimode delay between 2 sampling phases */
2396#define ADC_CCR_DELAY_0 (0x1U << ADC_CCR_DELAY_Pos) /*!< 0x00000100 */
2397#define ADC_CCR_DELAY_1 (0x2U << ADC_CCR_DELAY_Pos) /*!< 0x00000200 */
2398#define ADC_CCR_DELAY_2 (0x4U << ADC_CCR_DELAY_Pos) /*!< 0x00000400 */
2399#define ADC_CCR_DELAY_3 (0x8U << ADC_CCR_DELAY_Pos) /*!< 0x00000800 */
2400
2401#define ADC_CCR_DMACFG_Pos (13U)
2402#define ADC_CCR_DMACFG_Msk (0x1U << ADC_CCR_DMACFG_Pos) /*!< 0x00002000 */
2403#define ADC_CCR_DMACFG ADC_CCR_DMACFG_Msk /*!< ADC multimode DMA transfer configuration */
2404
2405#define ADC_CCR_MDMA_Pos (14U)
2406#define ADC_CCR_MDMA_Msk (0x3U << ADC_CCR_MDMA_Pos) /*!< 0x0000C000 */
2407#define ADC_CCR_MDMA ADC_CCR_MDMA_Msk /*!< ADC multimode DMA transfer enable */
2408#define ADC_CCR_MDMA_0 (0x1U << ADC_CCR_MDMA_Pos) /*!< 0x00004000 */
2409#define ADC_CCR_MDMA_1 (0x2U << ADC_CCR_MDMA_Pos) /*!< 0x00008000 */
2410
2411#define ADC_CCR_CKMODE_Pos (16U)
2412#define ADC_CCR_CKMODE_Msk (0x3U << ADC_CCR_CKMODE_Pos) /*!< 0x00030000 */
2413#define ADC_CCR_CKMODE ADC_CCR_CKMODE_Msk /*!< ADC common clock source and prescaler (prescaler only for clock source synchronous) */
2414#define ADC_CCR_CKMODE_0 (0x1U << ADC_CCR_CKMODE_Pos) /*!< 0x00010000 */
2415#define ADC_CCR_CKMODE_1 (0x2U << ADC_CCR_CKMODE_Pos) /*!< 0x00020000 */
2416
2417#define ADC_CCR_PRESC_Pos (18U)
2418#define ADC_CCR_PRESC_Msk (0xFU << ADC_CCR_PRESC_Pos) /*!< 0x003C0000 */
2419#define ADC_CCR_PRESC ADC_CCR_PRESC_Msk /*!< ADC common clock prescaler, only for clock source asynchronous */
2420#define ADC_CCR_PRESC_0 (0x1U << ADC_CCR_PRESC_Pos) /*!< 0x00040000 */
2421#define ADC_CCR_PRESC_1 (0x2U << ADC_CCR_PRESC_Pos) /*!< 0x00080000 */
2422#define ADC_CCR_PRESC_2 (0x4U << ADC_CCR_PRESC_Pos) /*!< 0x00100000 */
2423#define ADC_CCR_PRESC_3 (0x8U << ADC_CCR_PRESC_Pos) /*!< 0x00200000 */
2424
2425#define ADC_CCR_VREFEN_Pos (22U)
2426#define ADC_CCR_VREFEN_Msk (0x1U << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */
2427#define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< ADC internal path to VrefInt enable */
2428#define ADC_CCR_TSEN_Pos (23U)
2429#define ADC_CCR_TSEN_Msk (0x1U << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */
2430#define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< ADC internal path to temperature sensor enable */
2431#define ADC_CCR_VBATEN_Pos (24U)
2432#define ADC_CCR_VBATEN_Msk (0x1U << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */
2433#define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */
2434
2435/******************** Bit definition for ADC_CDR register *******************/
2436#define ADC_CDR_RDATA_MST_Pos (0U)
2437#define ADC_CDR_RDATA_MST_Msk (0xFFFFU << ADC_CDR_RDATA_MST_Pos) /*!< 0x0000FFFF */
2438#define ADC_CDR_RDATA_MST ADC_CDR_RDATA_MST_Msk /*!< ADC multimode master group regular conversion data */
2439#define ADC_CDR_RDATA_MST_0 (0x0001U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000001 */
2440#define ADC_CDR_RDATA_MST_1 (0x0002U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000002 */
2441#define ADC_CDR_RDATA_MST_2 (0x0004U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000004 */
2442#define ADC_CDR_RDATA_MST_3 (0x0008U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000008 */
2443#define ADC_CDR_RDATA_MST_4 (0x0010U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000010 */
2444#define ADC_CDR_RDATA_MST_5 (0x0020U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000020 */
2445#define ADC_CDR_RDATA_MST_6 (0x0040U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000040 */
2446#define ADC_CDR_RDATA_MST_7 (0x0080U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000080 */
2447#define ADC_CDR_RDATA_MST_8 (0x0100U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000100 */
2448#define ADC_CDR_RDATA_MST_9 (0x0200U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000200 */
2449#define ADC_CDR_RDATA_MST_10 (0x0400U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000400 */
2450#define ADC_CDR_RDATA_MST_11 (0x0800U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00000800 */
2451#define ADC_CDR_RDATA_MST_12 (0x1000U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00001000 */
2452#define ADC_CDR_RDATA_MST_13 (0x2000U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00002000 */
2453#define ADC_CDR_RDATA_MST_14 (0x4000U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00004000 */
2454#define ADC_CDR_RDATA_MST_15 (0x8000U << ADC_CDR_RDATA_MST_Pos) /*!< 0x00008000 */
2455
2456#define ADC_CDR_RDATA_SLV_Pos (16U)
2457#define ADC_CDR_RDATA_SLV_Msk (0xFFFFU << ADC_CDR_RDATA_SLV_Pos) /*!< 0xFFFF0000 */
2458#define ADC_CDR_RDATA_SLV ADC_CDR_RDATA_SLV_Msk /*!< ADC multimode slave group regular conversion data */
2459#define ADC_CDR_RDATA_SLV_0 (0x0001U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00010000 */
2460#define ADC_CDR_RDATA_SLV_1 (0x0002U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00020000 */
2461#define ADC_CDR_RDATA_SLV_2 (0x0004U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00040000 */
2462#define ADC_CDR_RDATA_SLV_3 (0x0008U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00080000 */
2463#define ADC_CDR_RDATA_SLV_4 (0x0010U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00100000 */
2464#define ADC_CDR_RDATA_SLV_5 (0x0020U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00200000 */
2465#define ADC_CDR_RDATA_SLV_6 (0x0040U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00400000 */
2466#define ADC_CDR_RDATA_SLV_7 (0x0080U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x00800000 */
2467#define ADC_CDR_RDATA_SLV_8 (0x0100U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x01000000 */
2468#define ADC_CDR_RDATA_SLV_9 (0x0200U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x02000000 */
2469#define ADC_CDR_RDATA_SLV_10 (0x0400U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x04000000 */
2470#define ADC_CDR_RDATA_SLV_11 (0x0800U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x08000000 */
2471#define ADC_CDR_RDATA_SLV_12 (0x1000U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x10000000 */
2472#define ADC_CDR_RDATA_SLV_13 (0x2000U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x20000000 */
2473#define ADC_CDR_RDATA_SLV_14 (0x4000U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x40000000 */
2474#define ADC_CDR_RDATA_SLV_15 (0x8000U << ADC_CDR_RDATA_SLV_Pos) /*!< 0x80000000 */
2475
2476/******************************************************************************/
2477/* */
2478/* Controller Area Network */
2479/* */
2480/******************************************************************************/
2481/*!<CAN control and status registers */
2482/******************* Bit definition for CAN_MCR register ********************/
2483#define CAN_MCR_INRQ_Pos (0U)
2484#define CAN_MCR_INRQ_Msk (0x1U << CAN_MCR_INRQ_Pos) /*!< 0x00000001 */
2485#define CAN_MCR_INRQ CAN_MCR_INRQ_Msk /*!<Initialization Request */
2486#define CAN_MCR_SLEEP_Pos (1U)
2487#define CAN_MCR_SLEEP_Msk (0x1U << CAN_MCR_SLEEP_Pos) /*!< 0x00000002 */
2488#define CAN_MCR_SLEEP CAN_MCR_SLEEP_Msk /*!<Sleep Mode Request */
2489#define CAN_MCR_TXFP_Pos (2U)
2490#define CAN_MCR_TXFP_Msk (0x1U << CAN_MCR_TXFP_Pos) /*!< 0x00000004 */
2491#define CAN_MCR_TXFP CAN_MCR_TXFP_Msk /*!<Transmit FIFO Priority */
2492#define CAN_MCR_RFLM_Pos (3U)
2493#define CAN_MCR_RFLM_Msk (0x1U << CAN_MCR_RFLM_Pos) /*!< 0x00000008 */
2494#define CAN_MCR_RFLM CAN_MCR_RFLM_Msk /*!<Receive FIFO Locked Mode */
2495#define CAN_MCR_NART_Pos (4U)
2496#define CAN_MCR_NART_Msk (0x1U << CAN_MCR_NART_Pos) /*!< 0x00000010 */
2497#define CAN_MCR_NART CAN_MCR_NART_Msk /*!<No Automatic Retransmission */
2498#define CAN_MCR_AWUM_Pos (5U)
2499#define CAN_MCR_AWUM_Msk (0x1U << CAN_MCR_AWUM_Pos) /*!< 0x00000020 */
2500#define CAN_MCR_AWUM CAN_MCR_AWUM_Msk /*!<Automatic Wakeup Mode */
2501#define CAN_MCR_ABOM_Pos (6U)
2502#define CAN_MCR_ABOM_Msk (0x1U << CAN_MCR_ABOM_Pos) /*!< 0x00000040 */
2503#define CAN_MCR_ABOM CAN_MCR_ABOM_Msk /*!<Automatic Bus-Off Management */
2504#define CAN_MCR_TTCM_Pos (7U)
2505#define CAN_MCR_TTCM_Msk (0x1U << CAN_MCR_TTCM_Pos) /*!< 0x00000080 */
2506#define CAN_MCR_TTCM CAN_MCR_TTCM_Msk /*!<Time Triggered Communication Mode */
2507#define CAN_MCR_RESET_Pos (15U)
2508#define CAN_MCR_RESET_Msk (0x1U << CAN_MCR_RESET_Pos) /*!< 0x00008000 */
2509#define CAN_MCR_RESET CAN_MCR_RESET_Msk /*!<bxCAN software master reset */
2510
2511/******************* Bit definition for CAN_MSR register ********************/
2512#define CAN_MSR_INAK_Pos (0U)
2513#define CAN_MSR_INAK_Msk (0x1U << CAN_MSR_INAK_Pos) /*!< 0x00000001 */
2514#define CAN_MSR_INAK CAN_MSR_INAK_Msk /*!<Initialization Acknowledge */
2515#define CAN_MSR_SLAK_Pos (1U)
2516#define CAN_MSR_SLAK_Msk (0x1U << CAN_MSR_SLAK_Pos) /*!< 0x00000002 */
2517#define CAN_MSR_SLAK CAN_MSR_SLAK_Msk /*!<Sleep Acknowledge */
2518#define CAN_MSR_ERRI_Pos (2U)
2519#define CAN_MSR_ERRI_Msk (0x1U << CAN_MSR_ERRI_Pos) /*!< 0x00000004 */
2520#define CAN_MSR_ERRI CAN_MSR_ERRI_Msk /*!<Error Interrupt */
2521#define CAN_MSR_WKUI_Pos (3U)
2522#define CAN_MSR_WKUI_Msk (0x1U << CAN_MSR_WKUI_Pos) /*!< 0x00000008 */
2523#define CAN_MSR_WKUI CAN_MSR_WKUI_Msk /*!<Wakeup Interrupt */
2524#define CAN_MSR_SLAKI_Pos (4U)
2525#define CAN_MSR_SLAKI_Msk (0x1U << CAN_MSR_SLAKI_Pos) /*!< 0x00000010 */
2526#define CAN_MSR_SLAKI CAN_MSR_SLAKI_Msk /*!<Sleep Acknowledge Interrupt */
2527#define CAN_MSR_TXM_Pos (8U)
2528#define CAN_MSR_TXM_Msk (0x1U << CAN_MSR_TXM_Pos) /*!< 0x00000100 */
2529#define CAN_MSR_TXM CAN_MSR_TXM_Msk /*!<Transmit Mode */
2530#define CAN_MSR_RXM_Pos (9U)
2531#define CAN_MSR_RXM_Msk (0x1U << CAN_MSR_RXM_Pos) /*!< 0x00000200 */
2532#define CAN_MSR_RXM CAN_MSR_RXM_Msk /*!<Receive Mode */
2533#define CAN_MSR_SAMP_Pos (10U)
2534#define CAN_MSR_SAMP_Msk (0x1U << CAN_MSR_SAMP_Pos) /*!< 0x00000400 */
2535#define CAN_MSR_SAMP CAN_MSR_SAMP_Msk /*!<Last Sample Point */
2536#define CAN_MSR_RX_Pos (11U)
2537#define CAN_MSR_RX_Msk (0x1U << CAN_MSR_RX_Pos) /*!< 0x00000800 */
2538#define CAN_MSR_RX CAN_MSR_RX_Msk /*!<CAN Rx Signal */
2539
2540/******************* Bit definition for CAN_TSR register ********************/
2541#define CAN_TSR_RQCP0_Pos (0U)
2542#define CAN_TSR_RQCP0_Msk (0x1U << CAN_TSR_RQCP0_Pos) /*!< 0x00000001 */
2543#define CAN_TSR_RQCP0 CAN_TSR_RQCP0_Msk /*!<Request Completed Mailbox0 */
2544#define CAN_TSR_TXOK0_Pos (1U)
2545#define CAN_TSR_TXOK0_Msk (0x1U << CAN_TSR_TXOK0_Pos) /*!< 0x00000002 */
2546#define CAN_TSR_TXOK0 CAN_TSR_TXOK0_Msk /*!<Transmission OK of Mailbox0 */
2547#define CAN_TSR_ALST0_Pos (2U)
2548#define CAN_TSR_ALST0_Msk (0x1U << CAN_TSR_ALST0_Pos) /*!< 0x00000004 */
2549#define CAN_TSR_ALST0 CAN_TSR_ALST0_Msk /*!<Arbitration Lost for Mailbox0 */
2550#define CAN_TSR_TERR0_Pos (3U)
2551#define CAN_TSR_TERR0_Msk (0x1U << CAN_TSR_TERR0_Pos) /*!< 0x00000008 */
2552#define CAN_TSR_TERR0 CAN_TSR_TERR0_Msk /*!<Transmission Error of Mailbox0 */
2553#define CAN_TSR_ABRQ0_Pos (7U)
2554#define CAN_TSR_ABRQ0_Msk (0x1U << CAN_TSR_ABRQ0_Pos) /*!< 0x00000080 */
2555#define CAN_TSR_ABRQ0 CAN_TSR_ABRQ0_Msk /*!<Abort Request for Mailbox0 */
2556#define CAN_TSR_RQCP1_Pos (8U)
2557#define CAN_TSR_RQCP1_Msk (0x1U << CAN_TSR_RQCP1_Pos) /*!< 0x00000100 */
2558#define CAN_TSR_RQCP1 CAN_TSR_RQCP1_Msk /*!<Request Completed Mailbox1 */
2559#define CAN_TSR_TXOK1_Pos (9U)
2560#define CAN_TSR_TXOK1_Msk (0x1U << CAN_TSR_TXOK1_Pos) /*!< 0x00000200 */
2561#define CAN_TSR_TXOK1 CAN_TSR_TXOK1_Msk /*!<Transmission OK of Mailbox1 */
2562#define CAN_TSR_ALST1_Pos (10U)
2563#define CAN_TSR_ALST1_Msk (0x1U << CAN_TSR_ALST1_Pos) /*!< 0x00000400 */
2564#define CAN_TSR_ALST1 CAN_TSR_ALST1_Msk /*!<Arbitration Lost for Mailbox1 */
2565#define CAN_TSR_TERR1_Pos (11U)
2566#define CAN_TSR_TERR1_Msk (0x1U << CAN_TSR_TERR1_Pos) /*!< 0x00000800 */
2567#define CAN_TSR_TERR1 CAN_TSR_TERR1_Msk /*!<Transmission Error of Mailbox1 */
2568#define CAN_TSR_ABRQ1_Pos (15U)
2569#define CAN_TSR_ABRQ1_Msk (0x1U << CAN_TSR_ABRQ1_Pos) /*!< 0x00008000 */
2570#define CAN_TSR_ABRQ1 CAN_TSR_ABRQ1_Msk /*!<Abort Request for Mailbox 1 */
2571#define CAN_TSR_RQCP2_Pos (16U)
2572#define CAN_TSR_RQCP2_Msk (0x1U << CAN_TSR_RQCP2_Pos) /*!< 0x00010000 */
2573#define CAN_TSR_RQCP2 CAN_TSR_RQCP2_Msk /*!<Request Completed Mailbox2 */
2574#define CAN_TSR_TXOK2_Pos (17U)
2575#define CAN_TSR_TXOK2_Msk (0x1U << CAN_TSR_TXOK2_Pos) /*!< 0x00020000 */
2576#define CAN_TSR_TXOK2 CAN_TSR_TXOK2_Msk /*!<Transmission OK of Mailbox 2 */
2577#define CAN_TSR_ALST2_Pos (18U)
2578#define CAN_TSR_ALST2_Msk (0x1U << CAN_TSR_ALST2_Pos) /*!< 0x00040000 */
2579#define CAN_TSR_ALST2 CAN_TSR_ALST2_Msk /*!<Arbitration Lost for mailbox 2 */
2580#define CAN_TSR_TERR2_Pos (19U)
2581#define CAN_TSR_TERR2_Msk (0x1U << CAN_TSR_TERR2_Pos) /*!< 0x00080000 */
2582#define CAN_TSR_TERR2 CAN_TSR_TERR2_Msk /*!<Transmission Error of Mailbox 2 */
2583#define CAN_TSR_ABRQ2_Pos (23U)
2584#define CAN_TSR_ABRQ2_Msk (0x1U << CAN_TSR_ABRQ2_Pos) /*!< 0x00800000 */
2585#define CAN_TSR_ABRQ2 CAN_TSR_ABRQ2_Msk /*!<Abort Request for Mailbox 2 */
2586#define CAN_TSR_CODE_Pos (24U)
2587#define CAN_TSR_CODE_Msk (0x3U << CAN_TSR_CODE_Pos) /*!< 0x03000000 */
2588#define CAN_TSR_CODE CAN_TSR_CODE_Msk /*!<Mailbox Code */
2589
2590#define CAN_TSR_TME_Pos (26U)
2591#define CAN_TSR_TME_Msk (0x7U << CAN_TSR_TME_Pos) /*!< 0x1C000000 */
2592#define CAN_TSR_TME CAN_TSR_TME_Msk /*!<TME[2:0] bits */
2593#define CAN_TSR_TME0_Pos (26U)
2594#define CAN_TSR_TME0_Msk (0x1U << CAN_TSR_TME0_Pos) /*!< 0x04000000 */
2595#define CAN_TSR_TME0 CAN_TSR_TME0_Msk /*!<Transmit Mailbox 0 Empty */
2596#define CAN_TSR_TME1_Pos (27U)
2597#define CAN_TSR_TME1_Msk (0x1U << CAN_TSR_TME1_Pos) /*!< 0x08000000 */
2598#define CAN_TSR_TME1 CAN_TSR_TME1_Msk /*!<Transmit Mailbox 1 Empty */
2599#define CAN_TSR_TME2_Pos (28U)
2600#define CAN_TSR_TME2_Msk (0x1U << CAN_TSR_TME2_Pos) /*!< 0x10000000 */
2601#define CAN_TSR_TME2 CAN_TSR_TME2_Msk /*!<Transmit Mailbox 2 Empty */
2602
2603#define CAN_TSR_LOW_Pos (29U)
2604#define CAN_TSR_LOW_Msk (0x7U << CAN_TSR_LOW_Pos) /*!< 0xE0000000 */
2605#define CAN_TSR_LOW CAN_TSR_LOW_Msk /*!<LOW[2:0] bits */
2606#define CAN_TSR_LOW0_Pos (29U)
2607#define CAN_TSR_LOW0_Msk (0x1U << CAN_TSR_LOW0_Pos) /*!< 0x20000000 */
2608#define CAN_TSR_LOW0 CAN_TSR_LOW0_Msk /*!<Lowest Priority Flag for Mailbox 0 */
2609#define CAN_TSR_LOW1_Pos (30U)
2610#define CAN_TSR_LOW1_Msk (0x1U << CAN_TSR_LOW1_Pos) /*!< 0x40000000 */
2611#define CAN_TSR_LOW1 CAN_TSR_LOW1_Msk /*!<Lowest Priority Flag for Mailbox 1 */
2612#define CAN_TSR_LOW2_Pos (31U)
2613#define CAN_TSR_LOW2_Msk (0x1U << CAN_TSR_LOW2_Pos) /*!< 0x80000000 */
2614#define CAN_TSR_LOW2 CAN_TSR_LOW2_Msk /*!<Lowest Priority Flag for Mailbox 2 */
2615
2616/******************* Bit definition for CAN_RF0R register *******************/
2617#define CAN_RF0R_FMP0_Pos (0U)
2618#define CAN_RF0R_FMP0_Msk (0x3U << CAN_RF0R_FMP0_Pos) /*!< 0x00000003 */
2619#define CAN_RF0R_FMP0 CAN_RF0R_FMP0_Msk /*!<FIFO 0 Message Pending */
2620#define CAN_RF0R_FULL0_Pos (3U)
2621#define CAN_RF0R_FULL0_Msk (0x1U << CAN_RF0R_FULL0_Pos) /*!< 0x00000008 */
2622#define CAN_RF0R_FULL0 CAN_RF0R_FULL0_Msk /*!<FIFO 0 Full */
2623#define CAN_RF0R_FOVR0_Pos (4U)
2624#define CAN_RF0R_FOVR0_Msk (0x1U << CAN_RF0R_FOVR0_Pos) /*!< 0x00000010 */
2625#define CAN_RF0R_FOVR0 CAN_RF0R_FOVR0_Msk /*!<FIFO 0 Overrun */
2626#define CAN_RF0R_RFOM0_Pos (5U)
2627#define CAN_RF0R_RFOM0_Msk (0x1U << CAN_RF0R_RFOM0_Pos) /*!< 0x00000020 */
2628#define CAN_RF0R_RFOM0 CAN_RF0R_RFOM0_Msk /*!<Release FIFO 0 Output Mailbox */
2629
2630/******************* Bit definition for CAN_RF1R register *******************/
2631#define CAN_RF1R_FMP1_Pos (0U)
2632#define CAN_RF1R_FMP1_Msk (0x3U << CAN_RF1R_FMP1_Pos) /*!< 0x00000003 */
2633#define CAN_RF1R_FMP1 CAN_RF1R_FMP1_Msk /*!<FIFO 1 Message Pending */
2634#define CAN_RF1R_FULL1_Pos (3U)
2635#define CAN_RF1R_FULL1_Msk (0x1U << CAN_RF1R_FULL1_Pos) /*!< 0x00000008 */
2636#define CAN_RF1R_FULL1 CAN_RF1R_FULL1_Msk /*!<FIFO 1 Full */
2637#define CAN_RF1R_FOVR1_Pos (4U)
2638#define CAN_RF1R_FOVR1_Msk (0x1U << CAN_RF1R_FOVR1_Pos) /*!< 0x00000010 */
2639#define CAN_RF1R_FOVR1 CAN_RF1R_FOVR1_Msk /*!<FIFO 1 Overrun */
2640#define CAN_RF1R_RFOM1_Pos (5U)
2641#define CAN_RF1R_RFOM1_Msk (0x1U << CAN_RF1R_RFOM1_Pos) /*!< 0x00000020 */
2642#define CAN_RF1R_RFOM1 CAN_RF1R_RFOM1_Msk /*!<Release FIFO 1 Output Mailbox */
2643
2644/******************** Bit definition for CAN_IER register *******************/
2645#define CAN_IER_TMEIE_Pos (0U)
2646#define CAN_IER_TMEIE_Msk (0x1U << CAN_IER_TMEIE_Pos) /*!< 0x00000001 */
2647#define CAN_IER_TMEIE CAN_IER_TMEIE_Msk /*!<Transmit Mailbox Empty Interrupt Enable */
2648#define CAN_IER_FMPIE0_Pos (1U)
2649#define CAN_IER_FMPIE0_Msk (0x1U << CAN_IER_FMPIE0_Pos) /*!< 0x00000002 */
2650#define CAN_IER_FMPIE0 CAN_IER_FMPIE0_Msk /*!<FIFO Message Pending Interrupt Enable */
2651#define CAN_IER_FFIE0_Pos (2U)
2652#define CAN_IER_FFIE0_Msk (0x1U << CAN_IER_FFIE0_Pos) /*!< 0x00000004 */
2653#define CAN_IER_FFIE0 CAN_IER_FFIE0_Msk /*!<FIFO Full Interrupt Enable */
2654#define CAN_IER_FOVIE0_Pos (3U)
2655#define CAN_IER_FOVIE0_Msk (0x1U << CAN_IER_FOVIE0_Pos) /*!< 0x00000008 */
2656#define CAN_IER_FOVIE0 CAN_IER_FOVIE0_Msk /*!<FIFO Overrun Interrupt Enable */
2657#define CAN_IER_FMPIE1_Pos (4U)
2658#define CAN_IER_FMPIE1_Msk (0x1U << CAN_IER_FMPIE1_Pos) /*!< 0x00000010 */
2659#define CAN_IER_FMPIE1 CAN_IER_FMPIE1_Msk /*!<FIFO Message Pending Interrupt Enable */
2660#define CAN_IER_FFIE1_Pos (5U)
2661#define CAN_IER_FFIE1_Msk (0x1U << CAN_IER_FFIE1_Pos) /*!< 0x00000020 */
2662#define CAN_IER_FFIE1 CAN_IER_FFIE1_Msk /*!<FIFO Full Interrupt Enable */
2663#define CAN_IER_FOVIE1_Pos (6U)
2664#define CAN_IER_FOVIE1_Msk (0x1U << CAN_IER_FOVIE1_Pos) /*!< 0x00000040 */
2665#define CAN_IER_FOVIE1 CAN_IER_FOVIE1_Msk /*!<FIFO Overrun Interrupt Enable */
2666#define CAN_IER_EWGIE_Pos (8U)
2667#define CAN_IER_EWGIE_Msk (0x1U << CAN_IER_EWGIE_Pos) /*!< 0x00000100 */
2668#define CAN_IER_EWGIE CAN_IER_EWGIE_Msk /*!<Error Warning Interrupt Enable */
2669#define CAN_IER_EPVIE_Pos (9U)
2670#define CAN_IER_EPVIE_Msk (0x1U << CAN_IER_EPVIE_Pos) /*!< 0x00000200 */
2671#define CAN_IER_EPVIE CAN_IER_EPVIE_Msk /*!<Error Passive Interrupt Enable */
2672#define CAN_IER_BOFIE_Pos (10U)
2673#define CAN_IER_BOFIE_Msk (0x1U << CAN_IER_BOFIE_Pos) /*!< 0x00000400 */
2674#define CAN_IER_BOFIE CAN_IER_BOFIE_Msk /*!<Bus-Off Interrupt Enable */
2675#define CAN_IER_LECIE_Pos (11U)
2676#define CAN_IER_LECIE_Msk (0x1U << CAN_IER_LECIE_Pos) /*!< 0x00000800 */
2677#define CAN_IER_LECIE CAN_IER_LECIE_Msk /*!<Last Error Code Interrupt Enable */
2678#define CAN_IER_ERRIE_Pos (15U)
2679#define CAN_IER_ERRIE_Msk (0x1U << CAN_IER_ERRIE_Pos) /*!< 0x00008000 */
2680#define CAN_IER_ERRIE CAN_IER_ERRIE_Msk /*!<Error Interrupt Enable */
2681#define CAN_IER_WKUIE_Pos (16U)
2682#define CAN_IER_WKUIE_Msk (0x1U << CAN_IER_WKUIE_Pos) /*!< 0x00010000 */
2683#define CAN_IER_WKUIE CAN_IER_WKUIE_Msk /*!<Wakeup Interrupt Enable */
2684#define CAN_IER_SLKIE_Pos (17U)
2685#define CAN_IER_SLKIE_Msk (0x1U << CAN_IER_SLKIE_Pos) /*!< 0x00020000 */
2686#define CAN_IER_SLKIE CAN_IER_SLKIE_Msk /*!<Sleep Interrupt Enable */
2687
2688/******************** Bit definition for CAN_ESR register *******************/
2689#define CAN_ESR_EWGF_Pos (0U)
2690#define CAN_ESR_EWGF_Msk (0x1U << CAN_ESR_EWGF_Pos) /*!< 0x00000001 */
2691#define CAN_ESR_EWGF CAN_ESR_EWGF_Msk /*!<Error Warning Flag */
2692#define CAN_ESR_EPVF_Pos (1U)
2693#define CAN_ESR_EPVF_Msk (0x1U << CAN_ESR_EPVF_Pos) /*!< 0x00000002 */
2694#define CAN_ESR_EPVF CAN_ESR_EPVF_Msk /*!<Error Passive Flag */
2695#define CAN_ESR_BOFF_Pos (2U)
2696#define CAN_ESR_BOFF_Msk (0x1U << CAN_ESR_BOFF_Pos) /*!< 0x00000004 */
2697#define CAN_ESR_BOFF CAN_ESR_BOFF_Msk /*!<Bus-Off Flag */
2698
2699#define CAN_ESR_LEC_Pos (4U)
2700#define CAN_ESR_LEC_Msk (0x7U << CAN_ESR_LEC_Pos) /*!< 0x00000070 */
2701#define CAN_ESR_LEC CAN_ESR_LEC_Msk /*!<LEC[2:0] bits (Last Error Code) */
2702#define CAN_ESR_LEC_0 (0x1U << CAN_ESR_LEC_Pos) /*!< 0x00000010 */
2703#define CAN_ESR_LEC_1 (0x2U << CAN_ESR_LEC_Pos) /*!< 0x00000020 */
2704#define CAN_ESR_LEC_2 (0x4U << CAN_ESR_LEC_Pos) /*!< 0x00000040 */
2705
2706#define CAN_ESR_TEC_Pos (16U)
2707#define CAN_ESR_TEC_Msk (0xFFU << CAN_ESR_TEC_Pos) /*!< 0x00FF0000 */
2708#define CAN_ESR_TEC CAN_ESR_TEC_Msk /*!<Least significant byte of the 9-bit Transmit Error Counter */
2709#define CAN_ESR_REC_Pos (24U)
2710#define CAN_ESR_REC_Msk (0xFFU << CAN_ESR_REC_Pos) /*!< 0xFF000000 */
2711#define CAN_ESR_REC CAN_ESR_REC_Msk /*!<Receive Error Counter */
2712
2713/******************* Bit definition for CAN_BTR register ********************/
2714#define CAN_BTR_BRP_Pos (0U)
2715#define CAN_BTR_BRP_Msk (0x3FFU << CAN_BTR_BRP_Pos) /*!< 0x000003FF */
2716#define CAN_BTR_BRP CAN_BTR_BRP_Msk /*!<Baud Rate Prescaler */
2717#define CAN_BTR_TS1_Pos (16U)
2718#define CAN_BTR_TS1_Msk (0xFU << CAN_BTR_TS1_Pos) /*!< 0x000F0000 */
2719#define CAN_BTR_TS1 CAN_BTR_TS1_Msk /*!<Time Segment 1 */
2720#define CAN_BTR_TS1_0 (0x1U << CAN_BTR_TS1_Pos) /*!< 0x00010000 */
2721#define CAN_BTR_TS1_1 (0x2U << CAN_BTR_TS1_Pos) /*!< 0x00020000 */
2722#define CAN_BTR_TS1_2 (0x4U << CAN_BTR_TS1_Pos) /*!< 0x00040000 */
2723#define CAN_BTR_TS1_3 (0x8U << CAN_BTR_TS1_Pos) /*!< 0x00080000 */
2724#define CAN_BTR_TS2_Pos (20U)
2725#define CAN_BTR_TS2_Msk (0x7U << CAN_BTR_TS2_Pos) /*!< 0x00700000 */
2726#define CAN_BTR_TS2 CAN_BTR_TS2_Msk /*!<Time Segment 2 */
2727#define CAN_BTR_TS2_0 (0x1U << CAN_BTR_TS2_Pos) /*!< 0x00100000 */
2728#define CAN_BTR_TS2_1 (0x2U << CAN_BTR_TS2_Pos) /*!< 0x00200000 */
2729#define CAN_BTR_TS2_2 (0x4U << CAN_BTR_TS2_Pos) /*!< 0x00400000 */
2730#define CAN_BTR_SJW_Pos (24U)
2731#define CAN_BTR_SJW_Msk (0x3U << CAN_BTR_SJW_Pos) /*!< 0x03000000 */
2732#define CAN_BTR_SJW CAN_BTR_SJW_Msk /*!<Resynchronization Jump Width */
2733#define CAN_BTR_SJW_0 (0x1U << CAN_BTR_SJW_Pos) /*!< 0x01000000 */
2734#define CAN_BTR_SJW_1 (0x2U << CAN_BTR_SJW_Pos) /*!< 0x02000000 */
2735#define CAN_BTR_LBKM_Pos (30U)
2736#define CAN_BTR_LBKM_Msk (0x1U << CAN_BTR_LBKM_Pos) /*!< 0x40000000 */
2737#define CAN_BTR_LBKM CAN_BTR_LBKM_Msk /*!<Loop Back Mode (Debug) */
2738#define CAN_BTR_SILM_Pos (31U)
2739#define CAN_BTR_SILM_Msk (0x1U << CAN_BTR_SILM_Pos) /*!< 0x80000000 */
2740#define CAN_BTR_SILM CAN_BTR_SILM_Msk /*!<Silent Mode */
2741
2742/*!<Mailbox registers */
2743/****************** Bit definition for CAN_TI0R register ********************/
2744#define CAN_TI0R_TXRQ_Pos (0U)
2745#define CAN_TI0R_TXRQ_Msk (0x1U << CAN_TI0R_TXRQ_Pos) /*!< 0x00000001 */
2746#define CAN_TI0R_TXRQ CAN_TI0R_TXRQ_Msk /*!<Transmit Mailbox Request */
2747#define CAN_TI0R_RTR_Pos (1U)
2748#define CAN_TI0R_RTR_Msk (0x1U << CAN_TI0R_RTR_Pos) /*!< 0x00000002 */
2749#define CAN_TI0R_RTR CAN_TI0R_RTR_Msk /*!<Remote Transmission Request */
2750#define CAN_TI0R_IDE_Pos (2U)
2751#define CAN_TI0R_IDE_Msk (0x1U << CAN_TI0R_IDE_Pos) /*!< 0x00000004 */
2752#define CAN_TI0R_IDE CAN_TI0R_IDE_Msk /*!<Identifier Extension */
2753#define CAN_TI0R_EXID_Pos (3U)
2754#define CAN_TI0R_EXID_Msk (0x3FFFFU << CAN_TI0R_EXID_Pos) /*!< 0x001FFFF8 */
2755#define CAN_TI0R_EXID CAN_TI0R_EXID_Msk /*!<Extended Identifier */
2756#define CAN_TI0R_STID_Pos (21U)
2757#define CAN_TI0R_STID_Msk (0x7FFU << CAN_TI0R_STID_Pos) /*!< 0xFFE00000 */
2758#define CAN_TI0R_STID CAN_TI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */
2759
2760/****************** Bit definition for CAN_TDT0R register *******************/
2761#define CAN_TDT0R_DLC_Pos (0U)
2762#define CAN_TDT0R_DLC_Msk (0xFU << CAN_TDT0R_DLC_Pos) /*!< 0x0000000F */
2763#define CAN_TDT0R_DLC CAN_TDT0R_DLC_Msk /*!<Data Length Code */
2764#define CAN_TDT0R_TGT_Pos (8U)
2765#define CAN_TDT0R_TGT_Msk (0x1U << CAN_TDT0R_TGT_Pos) /*!< 0x00000100 */
2766#define CAN_TDT0R_TGT CAN_TDT0R_TGT_Msk /*!<Transmit Global Time */
2767#define CAN_TDT0R_TIME_Pos (16U)
2768#define CAN_TDT0R_TIME_Msk (0xFFFFU << CAN_TDT0R_TIME_Pos) /*!< 0xFFFF0000 */
2769#define CAN_TDT0R_TIME CAN_TDT0R_TIME_Msk /*!<Message Time Stamp */
2770
2771/****************** Bit definition for CAN_TDL0R register *******************/
2772#define CAN_TDL0R_DATA0_Pos (0U)
2773#define CAN_TDL0R_DATA0_Msk (0xFFU << CAN_TDL0R_DATA0_Pos) /*!< 0x000000FF */
2774#define CAN_TDL0R_DATA0 CAN_TDL0R_DATA0_Msk /*!<Data byte 0 */
2775#define CAN_TDL0R_DATA1_Pos (8U)
2776#define CAN_TDL0R_DATA1_Msk (0xFFU << CAN_TDL0R_DATA1_Pos) /*!< 0x0000FF00 */
2777#define CAN_TDL0R_DATA1 CAN_TDL0R_DATA1_Msk /*!<Data byte 1 */
2778#define CAN_TDL0R_DATA2_Pos (16U)
2779#define CAN_TDL0R_DATA2_Msk (0xFFU << CAN_TDL0R_DATA2_Pos) /*!< 0x00FF0000 */
2780#define CAN_TDL0R_DATA2 CAN_TDL0R_DATA2_Msk /*!<Data byte 2 */
2781#define CAN_TDL0R_DATA3_Pos (24U)
2782#define CAN_TDL0R_DATA3_Msk (0xFFU << CAN_TDL0R_DATA3_Pos) /*!< 0xFF000000 */
2783#define CAN_TDL0R_DATA3 CAN_TDL0R_DATA3_Msk /*!<Data byte 3 */
2784
2785/****************** Bit definition for CAN_TDH0R register *******************/
2786#define CAN_TDH0R_DATA4_Pos (0U)
2787#define CAN_TDH0R_DATA4_Msk (0xFFU << CAN_TDH0R_DATA4_Pos) /*!< 0x000000FF */
2788#define CAN_TDH0R_DATA4 CAN_TDH0R_DATA4_Msk /*!<Data byte 4 */
2789#define CAN_TDH0R_DATA5_Pos (8U)
2790#define CAN_TDH0R_DATA5_Msk (0xFFU << CAN_TDH0R_DATA5_Pos) /*!< 0x0000FF00 */
2791#define CAN_TDH0R_DATA5 CAN_TDH0R_DATA5_Msk /*!<Data byte 5 */
2792#define CAN_TDH0R_DATA6_Pos (16U)
2793#define CAN_TDH0R_DATA6_Msk (0xFFU << CAN_TDH0R_DATA6_Pos) /*!< 0x00FF0000 */
2794#define CAN_TDH0R_DATA6 CAN_TDH0R_DATA6_Msk /*!<Data byte 6 */
2795#define CAN_TDH0R_DATA7_Pos (24U)
2796#define CAN_TDH0R_DATA7_Msk (0xFFU << CAN_TDH0R_DATA7_Pos) /*!< 0xFF000000 */
2797#define CAN_TDH0R_DATA7 CAN_TDH0R_DATA7_Msk /*!<Data byte 7 */
2798
2799/******************* Bit definition for CAN_TI1R register *******************/
2800#define CAN_TI1R_TXRQ_Pos (0U)
2801#define CAN_TI1R_TXRQ_Msk (0x1U << CAN_TI1R_TXRQ_Pos) /*!< 0x00000001 */
2802#define CAN_TI1R_TXRQ CAN_TI1R_TXRQ_Msk /*!<Transmit Mailbox Request */
2803#define CAN_TI1R_RTR_Pos (1U)
2804#define CAN_TI1R_RTR_Msk (0x1U << CAN_TI1R_RTR_Pos) /*!< 0x00000002 */
2805#define CAN_TI1R_RTR CAN_TI1R_RTR_Msk /*!<Remote Transmission Request */
2806#define CAN_TI1R_IDE_Pos (2U)
2807#define CAN_TI1R_IDE_Msk (0x1U << CAN_TI1R_IDE_Pos) /*!< 0x00000004 */
2808#define CAN_TI1R_IDE CAN_TI1R_IDE_Msk /*!<Identifier Extension */
2809#define CAN_TI1R_EXID_Pos (3U)
2810#define CAN_TI1R_EXID_Msk (0x3FFFFU << CAN_TI1R_EXID_Pos) /*!< 0x001FFFF8 */
2811#define CAN_TI1R_EXID CAN_TI1R_EXID_Msk /*!<Extended Identifier */
2812#define CAN_TI1R_STID_Pos (21U)
2813#define CAN_TI1R_STID_Msk (0x7FFU << CAN_TI1R_STID_Pos) /*!< 0xFFE00000 */
2814#define CAN_TI1R_STID CAN_TI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */
2815
2816/******************* Bit definition for CAN_TDT1R register ******************/
2817#define CAN_TDT1R_DLC_Pos (0U)
2818#define CAN_TDT1R_DLC_Msk (0xFU << CAN_TDT1R_DLC_Pos) /*!< 0x0000000F */
2819#define CAN_TDT1R_DLC CAN_TDT1R_DLC_Msk /*!<Data Length Code */
2820#define CAN_TDT1R_TGT_Pos (8U)
2821#define CAN_TDT1R_TGT_Msk (0x1U << CAN_TDT1R_TGT_Pos) /*!< 0x00000100 */
2822#define CAN_TDT1R_TGT CAN_TDT1R_TGT_Msk /*!<Transmit Global Time */
2823#define CAN_TDT1R_TIME_Pos (16U)
2824#define CAN_TDT1R_TIME_Msk (0xFFFFU << CAN_TDT1R_TIME_Pos) /*!< 0xFFFF0000 */
2825#define CAN_TDT1R_TIME CAN_TDT1R_TIME_Msk /*!<Message Time Stamp */
2826
2827/******************* Bit definition for CAN_TDL1R register ******************/
2828#define CAN_TDL1R_DATA0_Pos (0U)
2829#define CAN_TDL1R_DATA0_Msk (0xFFU << CAN_TDL1R_DATA0_Pos) /*!< 0x000000FF */
2830#define CAN_TDL1R_DATA0 CAN_TDL1R_DATA0_Msk /*!<Data byte 0 */
2831#define CAN_TDL1R_DATA1_Pos (8U)
2832#define CAN_TDL1R_DATA1_Msk (0xFFU << CAN_TDL1R_DATA1_Pos) /*!< 0x0000FF00 */
2833#define CAN_TDL1R_DATA1 CAN_TDL1R_DATA1_Msk /*!<Data byte 1 */
2834#define CAN_TDL1R_DATA2_Pos (16U)
2835#define CAN_TDL1R_DATA2_Msk (0xFFU << CAN_TDL1R_DATA2_Pos) /*!< 0x00FF0000 */
2836#define CAN_TDL1R_DATA2 CAN_TDL1R_DATA2_Msk /*!<Data byte 2 */
2837#define CAN_TDL1R_DATA3_Pos (24U)
2838#define CAN_TDL1R_DATA3_Msk (0xFFU << CAN_TDL1R_DATA3_Pos) /*!< 0xFF000000 */
2839#define CAN_TDL1R_DATA3 CAN_TDL1R_DATA3_Msk /*!<Data byte 3 */
2840
2841/******************* Bit definition for CAN_TDH1R register ******************/
2842#define CAN_TDH1R_DATA4_Pos (0U)
2843#define CAN_TDH1R_DATA4_Msk (0xFFU << CAN_TDH1R_DATA4_Pos) /*!< 0x000000FF */
2844#define CAN_TDH1R_DATA4 CAN_TDH1R_DATA4_Msk /*!<Data byte 4 */
2845#define CAN_TDH1R_DATA5_Pos (8U)
2846#define CAN_TDH1R_DATA5_Msk (0xFFU << CAN_TDH1R_DATA5_Pos) /*!< 0x0000FF00 */
2847#define CAN_TDH1R_DATA5 CAN_TDH1R_DATA5_Msk /*!<Data byte 5 */
2848#define CAN_TDH1R_DATA6_Pos (16U)
2849#define CAN_TDH1R_DATA6_Msk (0xFFU << CAN_TDH1R_DATA6_Pos) /*!< 0x00FF0000 */
2850#define CAN_TDH1R_DATA6 CAN_TDH1R_DATA6_Msk /*!<Data byte 6 */
2851#define CAN_TDH1R_DATA7_Pos (24U)
2852#define CAN_TDH1R_DATA7_Msk (0xFFU << CAN_TDH1R_DATA7_Pos) /*!< 0xFF000000 */
2853#define CAN_TDH1R_DATA7 CAN_TDH1R_DATA7_Msk /*!<Data byte 7 */
2854
2855/******************* Bit definition for CAN_TI2R register *******************/
2856#define CAN_TI2R_TXRQ_Pos (0U)
2857#define CAN_TI2R_TXRQ_Msk (0x1U << CAN_TI2R_TXRQ_Pos) /*!< 0x00000001 */
2858#define CAN_TI2R_TXRQ CAN_TI2R_TXRQ_Msk /*!<Transmit Mailbox Request */
2859#define CAN_TI2R_RTR_Pos (1U)
2860#define CAN_TI2R_RTR_Msk (0x1U << CAN_TI2R_RTR_Pos) /*!< 0x00000002 */
2861#define CAN_TI2R_RTR CAN_TI2R_RTR_Msk /*!<Remote Transmission Request */
2862#define CAN_TI2R_IDE_Pos (2U)
2863#define CAN_TI2R_IDE_Msk (0x1U << CAN_TI2R_IDE_Pos) /*!< 0x00000004 */
2864#define CAN_TI2R_IDE CAN_TI2R_IDE_Msk /*!<Identifier Extension */
2865#define CAN_TI2R_EXID_Pos (3U)
2866#define CAN_TI2R_EXID_Msk (0x3FFFFU << CAN_TI2R_EXID_Pos) /*!< 0x001FFFF8 */
2867#define CAN_TI2R_EXID CAN_TI2R_EXID_Msk /*!<Extended identifier */
2868#define CAN_TI2R_STID_Pos (21U)
2869#define CAN_TI2R_STID_Msk (0x7FFU << CAN_TI2R_STID_Pos) /*!< 0xFFE00000 */
2870#define CAN_TI2R_STID CAN_TI2R_STID_Msk /*!<Standard Identifier or Extended Identifier */
2871
2872/******************* Bit definition for CAN_TDT2R register ******************/
2873#define CAN_TDT2R_DLC_Pos (0U)
2874#define CAN_TDT2R_DLC_Msk (0xFU << CAN_TDT2R_DLC_Pos) /*!< 0x0000000F */
2875#define CAN_TDT2R_DLC CAN_TDT2R_DLC_Msk /*!<Data Length Code */
2876#define CAN_TDT2R_TGT_Pos (8U)
2877#define CAN_TDT2R_TGT_Msk (0x1U << CAN_TDT2R_TGT_Pos) /*!< 0x00000100 */
2878#define CAN_TDT2R_TGT CAN_TDT2R_TGT_Msk /*!<Transmit Global Time */
2879#define CAN_TDT2R_TIME_Pos (16U)
2880#define CAN_TDT2R_TIME_Msk (0xFFFFU << CAN_TDT2R_TIME_Pos) /*!< 0xFFFF0000 */
2881#define CAN_TDT2R_TIME CAN_TDT2R_TIME_Msk /*!<Message Time Stamp */
2882
2883/******************* Bit definition for CAN_TDL2R register ******************/
2884#define CAN_TDL2R_DATA0_Pos (0U)
2885#define CAN_TDL2R_DATA0_Msk (0xFFU << CAN_TDL2R_DATA0_Pos) /*!< 0x000000FF */
2886#define CAN_TDL2R_DATA0 CAN_TDL2R_DATA0_Msk /*!<Data byte 0 */
2887#define CAN_TDL2R_DATA1_Pos (8U)
2888#define CAN_TDL2R_DATA1_Msk (0xFFU << CAN_TDL2R_DATA1_Pos) /*!< 0x0000FF00 */
2889#define CAN_TDL2R_DATA1 CAN_TDL2R_DATA1_Msk /*!<Data byte 1 */
2890#define CAN_TDL2R_DATA2_Pos (16U)
2891#define CAN_TDL2R_DATA2_Msk (0xFFU << CAN_TDL2R_DATA2_Pos) /*!< 0x00FF0000 */
2892#define CAN_TDL2R_DATA2 CAN_TDL2R_DATA2_Msk /*!<Data byte 2 */
2893#define CAN_TDL2R_DATA3_Pos (24U)
2894#define CAN_TDL2R_DATA3_Msk (0xFFU << CAN_TDL2R_DATA3_Pos) /*!< 0xFF000000 */
2895#define CAN_TDL2R_DATA3 CAN_TDL2R_DATA3_Msk /*!<Data byte 3 */
2896
2897/******************* Bit definition for CAN_TDH2R register ******************/
2898#define CAN_TDH2R_DATA4_Pos (0U)
2899#define CAN_TDH2R_DATA4_Msk (0xFFU << CAN_TDH2R_DATA4_Pos) /*!< 0x000000FF */
2900#define CAN_TDH2R_DATA4 CAN_TDH2R_DATA4_Msk /*!<Data byte 4 */
2901#define CAN_TDH2R_DATA5_Pos (8U)
2902#define CAN_TDH2R_DATA5_Msk (0xFFU << CAN_TDH2R_DATA5_Pos) /*!< 0x0000FF00 */
2903#define CAN_TDH2R_DATA5 CAN_TDH2R_DATA5_Msk /*!<Data byte 5 */
2904#define CAN_TDH2R_DATA6_Pos (16U)
2905#define CAN_TDH2R_DATA6_Msk (0xFFU << CAN_TDH2R_DATA6_Pos) /*!< 0x00FF0000 */
2906#define CAN_TDH2R_DATA6 CAN_TDH2R_DATA6_Msk /*!<Data byte 6 */
2907#define CAN_TDH2R_DATA7_Pos (24U)
2908#define CAN_TDH2R_DATA7_Msk (0xFFU << CAN_TDH2R_DATA7_Pos) /*!< 0xFF000000 */
2909#define CAN_TDH2R_DATA7 CAN_TDH2R_DATA7_Msk /*!<Data byte 7 */
2910
2911/******************* Bit definition for CAN_RI0R register *******************/
2912#define CAN_RI0R_RTR_Pos (1U)
2913#define CAN_RI0R_RTR_Msk (0x1U << CAN_RI0R_RTR_Pos) /*!< 0x00000002 */
2914#define CAN_RI0R_RTR CAN_RI0R_RTR_Msk /*!<Remote Transmission Request */
2915#define CAN_RI0R_IDE_Pos (2U)
2916#define CAN_RI0R_IDE_Msk (0x1U << CAN_RI0R_IDE_Pos) /*!< 0x00000004 */
2917#define CAN_RI0R_IDE CAN_RI0R_IDE_Msk /*!<Identifier Extension */
2918#define CAN_RI0R_EXID_Pos (3U)
2919#define CAN_RI0R_EXID_Msk (0x3FFFFU << CAN_RI0R_EXID_Pos) /*!< 0x001FFFF8 */
2920#define CAN_RI0R_EXID CAN_RI0R_EXID_Msk /*!<Extended Identifier */
2921#define CAN_RI0R_STID_Pos (21U)
2922#define CAN_RI0R_STID_Msk (0x7FFU << CAN_RI0R_STID_Pos) /*!< 0xFFE00000 */
2923#define CAN_RI0R_STID CAN_RI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */
2924
2925/******************* Bit definition for CAN_RDT0R register ******************/
2926#define CAN_RDT0R_DLC_Pos (0U)
2927#define CAN_RDT0R_DLC_Msk (0xFU << CAN_RDT0R_DLC_Pos) /*!< 0x0000000F */
2928#define CAN_RDT0R_DLC CAN_RDT0R_DLC_Msk /*!<Data Length Code */
2929#define CAN_RDT0R_FMI_Pos (8U)
2930#define CAN_RDT0R_FMI_Msk (0xFFU << CAN_RDT0R_FMI_Pos) /*!< 0x0000FF00 */
2931#define CAN_RDT0R_FMI CAN_RDT0R_FMI_Msk /*!<Filter Match Index */
2932#define CAN_RDT0R_TIME_Pos (16U)
2933#define CAN_RDT0R_TIME_Msk (0xFFFFU << CAN_RDT0R_TIME_Pos) /*!< 0xFFFF0000 */
2934#define CAN_RDT0R_TIME CAN_RDT0R_TIME_Msk /*!<Message Time Stamp */
2935
2936/******************* Bit definition for CAN_RDL0R register ******************/
2937#define CAN_RDL0R_DATA0_Pos (0U)
2938#define CAN_RDL0R_DATA0_Msk (0xFFU << CAN_RDL0R_DATA0_Pos) /*!< 0x000000FF */
2939#define CAN_RDL0R_DATA0 CAN_RDL0R_DATA0_Msk /*!<Data byte 0 */
2940#define CAN_RDL0R_DATA1_Pos (8U)
2941#define CAN_RDL0R_DATA1_Msk (0xFFU << CAN_RDL0R_DATA1_Pos) /*!< 0x0000FF00 */
2942#define CAN_RDL0R_DATA1 CAN_RDL0R_DATA1_Msk /*!<Data byte 1 */
2943#define CAN_RDL0R_DATA2_Pos (16U)
2944#define CAN_RDL0R_DATA2_Msk (0xFFU << CAN_RDL0R_DATA2_Pos) /*!< 0x00FF0000 */
2945#define CAN_RDL0R_DATA2 CAN_RDL0R_DATA2_Msk /*!<Data byte 2 */
2946#define CAN_RDL0R_DATA3_Pos (24U)
2947#define CAN_RDL0R_DATA3_Msk (0xFFU << CAN_RDL0R_DATA3_Pos) /*!< 0xFF000000 */
2948#define CAN_RDL0R_DATA3 CAN_RDL0R_DATA3_Msk /*!<Data byte 3 */
2949
2950/******************* Bit definition for CAN_RDH0R register ******************/
2951#define CAN_RDH0R_DATA4_Pos (0U)
2952#define CAN_RDH0R_DATA4_Msk (0xFFU << CAN_RDH0R_DATA4_Pos) /*!< 0x000000FF */
2953#define CAN_RDH0R_DATA4 CAN_RDH0R_DATA4_Msk /*!<Data byte 4 */
2954#define CAN_RDH0R_DATA5_Pos (8U)
2955#define CAN_RDH0R_DATA5_Msk (0xFFU << CAN_RDH0R_DATA5_Pos) /*!< 0x0000FF00 */
2956#define CAN_RDH0R_DATA5 CAN_RDH0R_DATA5_Msk /*!<Data byte 5 */
2957#define CAN_RDH0R_DATA6_Pos (16U)
2958#define CAN_RDH0R_DATA6_Msk (0xFFU << CAN_RDH0R_DATA6_Pos) /*!< 0x00FF0000 */
2959#define CAN_RDH0R_DATA6 CAN_RDH0R_DATA6_Msk /*!<Data byte 6 */
2960#define CAN_RDH0R_DATA7_Pos (24U)
2961#define CAN_RDH0R_DATA7_Msk (0xFFU << CAN_RDH0R_DATA7_Pos) /*!< 0xFF000000 */
2962#define CAN_RDH0R_DATA7 CAN_RDH0R_DATA7_Msk /*!<Data byte 7 */
2963
2964/******************* Bit definition for CAN_RI1R register *******************/
2965#define CAN_RI1R_RTR_Pos (1U)
2966#define CAN_RI1R_RTR_Msk (0x1U << CAN_RI1R_RTR_Pos) /*!< 0x00000002 */
2967#define CAN_RI1R_RTR CAN_RI1R_RTR_Msk /*!<Remote Transmission Request */
2968#define CAN_RI1R_IDE_Pos (2U)
2969#define CAN_RI1R_IDE_Msk (0x1U << CAN_RI1R_IDE_Pos) /*!< 0x00000004 */
2970#define CAN_RI1R_IDE CAN_RI1R_IDE_Msk /*!<Identifier Extension */
2971#define CAN_RI1R_EXID_Pos (3U)
2972#define CAN_RI1R_EXID_Msk (0x3FFFFU << CAN_RI1R_EXID_Pos) /*!< 0x001FFFF8 */
2973#define CAN_RI1R_EXID CAN_RI1R_EXID_Msk /*!<Extended identifier */
2974#define CAN_RI1R_STID_Pos (21U)
2975#define CAN_RI1R_STID_Msk (0x7FFU << CAN_RI1R_STID_Pos) /*!< 0xFFE00000 */
2976#define CAN_RI1R_STID CAN_RI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */
2977
2978/******************* Bit definition for CAN_RDT1R register ******************/
2979#define CAN_RDT1R_DLC_Pos (0U)
2980#define CAN_RDT1R_DLC_Msk (0xFU << CAN_RDT1R_DLC_Pos) /*!< 0x0000000F */
2981#define CAN_RDT1R_DLC CAN_RDT1R_DLC_Msk /*!<Data Length Code */
2982#define CAN_RDT1R_FMI_Pos (8U)
2983#define CAN_RDT1R_FMI_Msk (0xFFU << CAN_RDT1R_FMI_Pos) /*!< 0x0000FF00 */
2984#define CAN_RDT1R_FMI CAN_RDT1R_FMI_Msk /*!<Filter Match Index */
2985#define CAN_RDT1R_TIME_Pos (16U)
2986#define CAN_RDT1R_TIME_Msk (0xFFFFU << CAN_RDT1R_TIME_Pos) /*!< 0xFFFF0000 */
2987#define CAN_RDT1R_TIME CAN_RDT1R_TIME_Msk /*!<Message Time Stamp */
2988
2989/******************* Bit definition for CAN_RDL1R register ******************/
2990#define CAN_RDL1R_DATA0_Pos (0U)
2991#define CAN_RDL1R_DATA0_Msk (0xFFU << CAN_RDL1R_DATA0_Pos) /*!< 0x000000FF */
2992#define CAN_RDL1R_DATA0 CAN_RDL1R_DATA0_Msk /*!<Data byte 0 */
2993#define CAN_RDL1R_DATA1_Pos (8U)
2994#define CAN_RDL1R_DATA1_Msk (0xFFU << CAN_RDL1R_DATA1_Pos) /*!< 0x0000FF00 */
2995#define CAN_RDL1R_DATA1 CAN_RDL1R_DATA1_Msk /*!<Data byte 1 */
2996#define CAN_RDL1R_DATA2_Pos (16U)
2997#define CAN_RDL1R_DATA2_Msk (0xFFU << CAN_RDL1R_DATA2_Pos) /*!< 0x00FF0000 */
2998#define CAN_RDL1R_DATA2 CAN_RDL1R_DATA2_Msk /*!<Data byte 2 */
2999#define CAN_RDL1R_DATA3_Pos (24U)
3000#define CAN_RDL1R_DATA3_Msk (0xFFU << CAN_RDL1R_DATA3_Pos) /*!< 0xFF000000 */
3001#define CAN_RDL1R_DATA3 CAN_RDL1R_DATA3_Msk /*!<Data byte 3 */
3002
3003/******************* Bit definition for CAN_RDH1R register ******************/
3004#define CAN_RDH1R_DATA4_Pos (0U)
3005#define CAN_RDH1R_DATA4_Msk (0xFFU << CAN_RDH1R_DATA4_Pos) /*!< 0x000000FF */
3006#define CAN_RDH1R_DATA4 CAN_RDH1R_DATA4_Msk /*!<Data byte 4 */
3007#define CAN_RDH1R_DATA5_Pos (8U)
3008#define CAN_RDH1R_DATA5_Msk (0xFFU << CAN_RDH1R_DATA5_Pos) /*!< 0x0000FF00 */
3009#define CAN_RDH1R_DATA5 CAN_RDH1R_DATA5_Msk /*!<Data byte 5 */
3010#define CAN_RDH1R_DATA6_Pos (16U)
3011#define CAN_RDH1R_DATA6_Msk (0xFFU << CAN_RDH1R_DATA6_Pos) /*!< 0x00FF0000 */
3012#define CAN_RDH1R_DATA6 CAN_RDH1R_DATA6_Msk /*!<Data byte 6 */
3013#define CAN_RDH1R_DATA7_Pos (24U)
3014#define CAN_RDH1R_DATA7_Msk (0xFFU << CAN_RDH1R_DATA7_Pos) /*!< 0xFF000000 */
3015#define CAN_RDH1R_DATA7 CAN_RDH1R_DATA7_Msk /*!<Data byte 7 */
3016
3017/*!<CAN filter registers */
3018/******************* Bit definition for CAN_FMR register ********************/
3019#define CAN_FMR_FINIT_Pos (0U)
3020#define CAN_FMR_FINIT_Msk (0x1U << CAN_FMR_FINIT_Pos) /*!< 0x00000001 */
3021#define CAN_FMR_FINIT CAN_FMR_FINIT_Msk /*!<Filter Init Mode */
3022
3023/******************* Bit definition for CAN_FM1R register *******************/
3024#define CAN_FM1R_FBM_Pos (0U)
3025#define CAN_FM1R_FBM_Msk (0x3FFFU << CAN_FM1R_FBM_Pos) /*!< 0x00003FFF */
3026#define CAN_FM1R_FBM CAN_FM1R_FBM_Msk /*!<Filter Mode */
3027#define CAN_FM1R_FBM0_Pos (0U)
3028#define CAN_FM1R_FBM0_Msk (0x1U << CAN_FM1R_FBM0_Pos) /*!< 0x00000001 */
3029#define CAN_FM1R_FBM0 CAN_FM1R_FBM0_Msk /*!<Filter Init Mode bit 0 */
3030#define CAN_FM1R_FBM1_Pos (1U)
3031#define CAN_FM1R_FBM1_Msk (0x1U << CAN_FM1R_FBM1_Pos) /*!< 0x00000002 */
3032#define CAN_FM1R_FBM1 CAN_FM1R_FBM1_Msk /*!<Filter Init Mode bit 1 */
3033#define CAN_FM1R_FBM2_Pos (2U)
3034#define CAN_FM1R_FBM2_Msk (0x1U << CAN_FM1R_FBM2_Pos) /*!< 0x00000004 */
3035#define CAN_FM1R_FBM2 CAN_FM1R_FBM2_Msk /*!<Filter Init Mode bit 2 */
3036#define CAN_FM1R_FBM3_Pos (3U)
3037#define CAN_FM1R_FBM3_Msk (0x1U << CAN_FM1R_FBM3_Pos) /*!< 0x00000008 */
3038#define CAN_FM1R_FBM3 CAN_FM1R_FBM3_Msk /*!<Filter Init Mode bit 3 */
3039#define CAN_FM1R_FBM4_Pos (4U)
3040#define CAN_FM1R_FBM4_Msk (0x1U << CAN_FM1R_FBM4_Pos) /*!< 0x00000010 */
3041#define CAN_FM1R_FBM4 CAN_FM1R_FBM4_Msk /*!<Filter Init Mode bit 4 */
3042#define CAN_FM1R_FBM5_Pos (5U)
3043#define CAN_FM1R_FBM5_Msk (0x1U << CAN_FM1R_FBM5_Pos) /*!< 0x00000020 */
3044#define CAN_FM1R_FBM5 CAN_FM1R_FBM5_Msk /*!<Filter Init Mode bit 5 */
3045#define CAN_FM1R_FBM6_Pos (6U)
3046#define CAN_FM1R_FBM6_Msk (0x1U << CAN_FM1R_FBM6_Pos) /*!< 0x00000040 */
3047#define CAN_FM1R_FBM6 CAN_FM1R_FBM6_Msk /*!<Filter Init Mode bit 6 */
3048#define CAN_FM1R_FBM7_Pos (7U)
3049#define CAN_FM1R_FBM7_Msk (0x1U << CAN_FM1R_FBM7_Pos) /*!< 0x00000080 */
3050#define CAN_FM1R_FBM7 CAN_FM1R_FBM7_Msk /*!<Filter Init Mode bit 7 */
3051#define CAN_FM1R_FBM8_Pos (8U)
3052#define CAN_FM1R_FBM8_Msk (0x1U << CAN_FM1R_FBM8_Pos) /*!< 0x00000100 */
3053#define CAN_FM1R_FBM8 CAN_FM1R_FBM8_Msk /*!<Filter Init Mode bit 8 */
3054#define CAN_FM1R_FBM9_Pos (9U)
3055#define CAN_FM1R_FBM9_Msk (0x1U << CAN_FM1R_FBM9_Pos) /*!< 0x00000200 */
3056#define CAN_FM1R_FBM9 CAN_FM1R_FBM9_Msk /*!<Filter Init Mode bit 9 */
3057#define CAN_FM1R_FBM10_Pos (10U)
3058#define CAN_FM1R_FBM10_Msk (0x1U << CAN_FM1R_FBM10_Pos) /*!< 0x00000400 */
3059#define CAN_FM1R_FBM10 CAN_FM1R_FBM10_Msk /*!<Filter Init Mode bit 10 */
3060#define CAN_FM1R_FBM11_Pos (11U)
3061#define CAN_FM1R_FBM11_Msk (0x1U << CAN_FM1R_FBM11_Pos) /*!< 0x00000800 */
3062#define CAN_FM1R_FBM11 CAN_FM1R_FBM11_Msk /*!<Filter Init Mode bit 11 */
3063#define CAN_FM1R_FBM12_Pos (12U)
3064#define CAN_FM1R_FBM12_Msk (0x1U << CAN_FM1R_FBM12_Pos) /*!< 0x00001000 */
3065#define CAN_FM1R_FBM12 CAN_FM1R_FBM12_Msk /*!<Filter Init Mode bit 12 */
3066#define CAN_FM1R_FBM13_Pos (13U)
3067#define CAN_FM1R_FBM13_Msk (0x1U << CAN_FM1R_FBM13_Pos) /*!< 0x00002000 */
3068#define CAN_FM1R_FBM13 CAN_FM1R_FBM13_Msk /*!<Filter Init Mode bit 13 */
3069
3070/******************* Bit definition for CAN_FS1R register *******************/
3071#define CAN_FS1R_FSC_Pos (0U)
3072#define CAN_FS1R_FSC_Msk (0x3FFFU << CAN_FS1R_FSC_Pos) /*!< 0x00003FFF */
3073#define CAN_FS1R_FSC CAN_FS1R_FSC_Msk /*!<Filter Scale Configuration */
3074#define CAN_FS1R_FSC0_Pos (0U)
3075#define CAN_FS1R_FSC0_Msk (0x1U << CAN_FS1R_FSC0_Pos) /*!< 0x00000001 */
3076#define CAN_FS1R_FSC0 CAN_FS1R_FSC0_Msk /*!<Filter Scale Configuration bit 0 */
3077#define CAN_FS1R_FSC1_Pos (1U)
3078#define CAN_FS1R_FSC1_Msk (0x1U << CAN_FS1R_FSC1_Pos) /*!< 0x00000002 */
3079#define CAN_FS1R_FSC1 CAN_FS1R_FSC1_Msk /*!<Filter Scale Configuration bit 1 */
3080#define CAN_FS1R_FSC2_Pos (2U)
3081#define CAN_FS1R_FSC2_Msk (0x1U << CAN_FS1R_FSC2_Pos) /*!< 0x00000004 */
3082#define CAN_FS1R_FSC2 CAN_FS1R_FSC2_Msk /*!<Filter Scale Configuration bit 2 */
3083#define CAN_FS1R_FSC3_Pos (3U)
3084#define CAN_FS1R_FSC3_Msk (0x1U << CAN_FS1R_FSC3_Pos) /*!< 0x00000008 */
3085#define CAN_FS1R_FSC3 CAN_FS1R_FSC3_Msk /*!<Filter Scale Configuration bit 3 */
3086#define CAN_FS1R_FSC4_Pos (4U)
3087#define CAN_FS1R_FSC4_Msk (0x1U << CAN_FS1R_FSC4_Pos) /*!< 0x00000010 */
3088#define CAN_FS1R_FSC4 CAN_FS1R_FSC4_Msk /*!<Filter Scale Configuration bit 4 */
3089#define CAN_FS1R_FSC5_Pos (5U)
3090#define CAN_FS1R_FSC5_Msk (0x1U << CAN_FS1R_FSC5_Pos) /*!< 0x00000020 */
3091#define CAN_FS1R_FSC5 CAN_FS1R_FSC5_Msk /*!<Filter Scale Configuration bit 5 */
3092#define CAN_FS1R_FSC6_Pos (6U)
3093#define CAN_FS1R_FSC6_Msk (0x1U << CAN_FS1R_FSC6_Pos) /*!< 0x00000040 */
3094#define CAN_FS1R_FSC6 CAN_FS1R_FSC6_Msk /*!<Filter Scale Configuration bit 6 */
3095#define CAN_FS1R_FSC7_Pos (7U)
3096#define CAN_FS1R_FSC7_Msk (0x1U << CAN_FS1R_FSC7_Pos) /*!< 0x00000080 */
3097#define CAN_FS1R_FSC7 CAN_FS1R_FSC7_Msk /*!<Filter Scale Configuration bit 7 */
3098#define CAN_FS1R_FSC8_Pos (8U)
3099#define CAN_FS1R_FSC8_Msk (0x1U << CAN_FS1R_FSC8_Pos) /*!< 0x00000100 */
3100#define CAN_FS1R_FSC8 CAN_FS1R_FSC8_Msk /*!<Filter Scale Configuration bit 8 */
3101#define CAN_FS1R_FSC9_Pos (9U)
3102#define CAN_FS1R_FSC9_Msk (0x1U << CAN_FS1R_FSC9_Pos) /*!< 0x00000200 */
3103#define CAN_FS1R_FSC9 CAN_FS1R_FSC9_Msk /*!<Filter Scale Configuration bit 9 */
3104#define CAN_FS1R_FSC10_Pos (10U)
3105#define CAN_FS1R_FSC10_Msk (0x1U << CAN_FS1R_FSC10_Pos) /*!< 0x00000400 */
3106#define CAN_FS1R_FSC10 CAN_FS1R_FSC10_Msk /*!<Filter Scale Configuration bit 10 */
3107#define CAN_FS1R_FSC11_Pos (11U)
3108#define CAN_FS1R_FSC11_Msk (0x1U << CAN_FS1R_FSC11_Pos) /*!< 0x00000800 */
3109#define CAN_FS1R_FSC11 CAN_FS1R_FSC11_Msk /*!<Filter Scale Configuration bit 11 */
3110#define CAN_FS1R_FSC12_Pos (12U)
3111#define CAN_FS1R_FSC12_Msk (0x1U << CAN_FS1R_FSC12_Pos) /*!< 0x00001000 */
3112#define CAN_FS1R_FSC12 CAN_FS1R_FSC12_Msk /*!<Filter Scale Configuration bit 12 */
3113#define CAN_FS1R_FSC13_Pos (13U)
3114#define CAN_FS1R_FSC13_Msk (0x1U << CAN_FS1R_FSC13_Pos) /*!< 0x00002000 */
3115#define CAN_FS1R_FSC13 CAN_FS1R_FSC13_Msk /*!<Filter Scale Configuration bit 13 */
3116
3117/****************** Bit definition for CAN_FFA1R register *******************/
3118#define CAN_FFA1R_FFA_Pos (0U)
3119#define CAN_FFA1R_FFA_Msk (0x3FFFU << CAN_FFA1R_FFA_Pos) /*!< 0x00003FFF */
3120#define CAN_FFA1R_FFA CAN_FFA1R_FFA_Msk /*!<Filter FIFO Assignment */
3121#define CAN_FFA1R_FFA0_Pos (0U)
3122#define CAN_FFA1R_FFA0_Msk (0x1U << CAN_FFA1R_FFA0_Pos) /*!< 0x00000001 */
3123#define CAN_FFA1R_FFA0 CAN_FFA1R_FFA0_Msk /*!<Filter FIFO Assignment for Filter 0 */
3124#define CAN_FFA1R_FFA1_Pos (1U)
3125#define CAN_FFA1R_FFA1_Msk (0x1U << CAN_FFA1R_FFA1_Pos) /*!< 0x00000002 */
3126#define CAN_FFA1R_FFA1 CAN_FFA1R_FFA1_Msk /*!<Filter FIFO Assignment for Filter 1 */
3127#define CAN_FFA1R_FFA2_Pos (2U)
3128#define CAN_FFA1R_FFA2_Msk (0x1U << CAN_FFA1R_FFA2_Pos) /*!< 0x00000004 */
3129#define CAN_FFA1R_FFA2 CAN_FFA1R_FFA2_Msk /*!<Filter FIFO Assignment for Filter 2 */
3130#define CAN_FFA1R_FFA3_Pos (3U)
3131#define CAN_FFA1R_FFA3_Msk (0x1U << CAN_FFA1R_FFA3_Pos) /*!< 0x00000008 */
3132#define CAN_FFA1R_FFA3 CAN_FFA1R_FFA3_Msk /*!<Filter FIFO Assignment for Filter 3 */
3133#define CAN_FFA1R_FFA4_Pos (4U)
3134#define CAN_FFA1R_FFA4_Msk (0x1U << CAN_FFA1R_FFA4_Pos) /*!< 0x00000010 */
3135#define CAN_FFA1R_FFA4 CAN_FFA1R_FFA4_Msk /*!<Filter FIFO Assignment for Filter 4 */
3136#define CAN_FFA1R_FFA5_Pos (5U)
3137#define CAN_FFA1R_FFA5_Msk (0x1U << CAN_FFA1R_FFA5_Pos) /*!< 0x00000020 */
3138#define CAN_FFA1R_FFA5 CAN_FFA1R_FFA5_Msk /*!<Filter FIFO Assignment for Filter 5 */
3139#define CAN_FFA1R_FFA6_Pos (6U)
3140#define CAN_FFA1R_FFA6_Msk (0x1U << CAN_FFA1R_FFA6_Pos) /*!< 0x00000040 */
3141#define CAN_FFA1R_FFA6 CAN_FFA1R_FFA6_Msk /*!<Filter FIFO Assignment for Filter 6 */
3142#define CAN_FFA1R_FFA7_Pos (7U)
3143#define CAN_FFA1R_FFA7_Msk (0x1U << CAN_FFA1R_FFA7_Pos) /*!< 0x00000080 */
3144#define CAN_FFA1R_FFA7 CAN_FFA1R_FFA7_Msk /*!<Filter FIFO Assignment for Filter 7 */
3145#define CAN_FFA1R_FFA8_Pos (8U)
3146#define CAN_FFA1R_FFA8_Msk (0x1U << CAN_FFA1R_FFA8_Pos) /*!< 0x00000100 */
3147#define CAN_FFA1R_FFA8 CAN_FFA1R_FFA8_Msk /*!<Filter FIFO Assignment for Filter 8 */
3148#define CAN_FFA1R_FFA9_Pos (9U)
3149#define CAN_FFA1R_FFA9_Msk (0x1U << CAN_FFA1R_FFA9_Pos) /*!< 0x00000200 */
3150#define CAN_FFA1R_FFA9 CAN_FFA1R_FFA9_Msk /*!<Filter FIFO Assignment for Filter 9 */
3151#define CAN_FFA1R_FFA10_Pos (10U)
3152#define CAN_FFA1R_FFA10_Msk (0x1U << CAN_FFA1R_FFA10_Pos) /*!< 0x00000400 */
3153#define CAN_FFA1R_FFA10 CAN_FFA1R_FFA10_Msk /*!<Filter FIFO Assignment for Filter 10 */
3154#define CAN_FFA1R_FFA11_Pos (11U)
3155#define CAN_FFA1R_FFA11_Msk (0x1U << CAN_FFA1R_FFA11_Pos) /*!< 0x00000800 */
3156#define CAN_FFA1R_FFA11 CAN_FFA1R_FFA11_Msk /*!<Filter FIFO Assignment for Filter 11 */
3157#define CAN_FFA1R_FFA12_Pos (12U)
3158#define CAN_FFA1R_FFA12_Msk (0x1U << CAN_FFA1R_FFA12_Pos) /*!< 0x00001000 */
3159#define CAN_FFA1R_FFA12 CAN_FFA1R_FFA12_Msk /*!<Filter FIFO Assignment for Filter 12 */
3160#define CAN_FFA1R_FFA13_Pos (13U)
3161#define CAN_FFA1R_FFA13_Msk (0x1U << CAN_FFA1R_FFA13_Pos) /*!< 0x00002000 */
3162#define CAN_FFA1R_FFA13 CAN_FFA1R_FFA13_Msk /*!<Filter FIFO Assignment for Filter 13 */
3163
3164/******************* Bit definition for CAN_FA1R register *******************/
3165#define CAN_FA1R_FACT_Pos (0U)
3166#define CAN_FA1R_FACT_Msk (0x3FFFU << CAN_FA1R_FACT_Pos) /*!< 0x00003FFF */
3167#define CAN_FA1R_FACT CAN_FA1R_FACT_Msk /*!<Filter Active */
3168#define CAN_FA1R_FACT0_Pos (0U)
3169#define CAN_FA1R_FACT0_Msk (0x1U << CAN_FA1R_FACT0_Pos) /*!< 0x00000001 */
3170#define CAN_FA1R_FACT0 CAN_FA1R_FACT0_Msk /*!<Filter 0 Active */
3171#define CAN_FA1R_FACT1_Pos (1U)
3172#define CAN_FA1R_FACT1_Msk (0x1U << CAN_FA1R_FACT1_Pos) /*!< 0x00000002 */
3173#define CAN_FA1R_FACT1 CAN_FA1R_FACT1_Msk /*!<Filter 1 Active */
3174#define CAN_FA1R_FACT2_Pos (2U)
3175#define CAN_FA1R_FACT2_Msk (0x1U << CAN_FA1R_FACT2_Pos) /*!< 0x00000004 */
3176#define CAN_FA1R_FACT2 CAN_FA1R_FACT2_Msk /*!<Filter 2 Active */
3177#define CAN_FA1R_FACT3_Pos (3U)
3178#define CAN_FA1R_FACT3_Msk (0x1U << CAN_FA1R_FACT3_Pos) /*!< 0x00000008 */
3179#define CAN_FA1R_FACT3 CAN_FA1R_FACT3_Msk /*!<Filter 3 Active */
3180#define CAN_FA1R_FACT4_Pos (4U)
3181#define CAN_FA1R_FACT4_Msk (0x1U << CAN_FA1R_FACT4_Pos) /*!< 0x00000010 */
3182#define CAN_FA1R_FACT4 CAN_FA1R_FACT4_Msk /*!<Filter 4 Active */
3183#define CAN_FA1R_FACT5_Pos (5U)
3184#define CAN_FA1R_FACT5_Msk (0x1U << CAN_FA1R_FACT5_Pos) /*!< 0x00000020 */
3185#define CAN_FA1R_FACT5 CAN_FA1R_FACT5_Msk /*!<Filter 5 Active */
3186#define CAN_FA1R_FACT6_Pos (6U)
3187#define CAN_FA1R_FACT6_Msk (0x1U << CAN_FA1R_FACT6_Pos) /*!< 0x00000040 */
3188#define CAN_FA1R_FACT6 CAN_FA1R_FACT6_Msk /*!<Filter 6 Active */
3189#define CAN_FA1R_FACT7_Pos (7U)
3190#define CAN_FA1R_FACT7_Msk (0x1U << CAN_FA1R_FACT7_Pos) /*!< 0x00000080 */
3191#define CAN_FA1R_FACT7 CAN_FA1R_FACT7_Msk /*!<Filter 7 Active */
3192#define CAN_FA1R_FACT8_Pos (8U)
3193#define CAN_FA1R_FACT8_Msk (0x1U << CAN_FA1R_FACT8_Pos) /*!< 0x00000100 */
3194#define CAN_FA1R_FACT8 CAN_FA1R_FACT8_Msk /*!<Filter 8 Active */
3195#define CAN_FA1R_FACT9_Pos (9U)
3196#define CAN_FA1R_FACT9_Msk (0x1U << CAN_FA1R_FACT9_Pos) /*!< 0x00000200 */
3197#define CAN_FA1R_FACT9 CAN_FA1R_FACT9_Msk /*!<Filter 9 Active */
3198#define CAN_FA1R_FACT10_Pos (10U)
3199#define CAN_FA1R_FACT10_Msk (0x1U << CAN_FA1R_FACT10_Pos) /*!< 0x00000400 */
3200#define CAN_FA1R_FACT10 CAN_FA1R_FACT10_Msk /*!<Filter 10 Active */
3201#define CAN_FA1R_FACT11_Pos (11U)
3202#define CAN_FA1R_FACT11_Msk (0x1U << CAN_FA1R_FACT11_Pos) /*!< 0x00000800 */
3203#define CAN_FA1R_FACT11 CAN_FA1R_FACT11_Msk /*!<Filter 11 Active */
3204#define CAN_FA1R_FACT12_Pos (12U)
3205#define CAN_FA1R_FACT12_Msk (0x1U << CAN_FA1R_FACT12_Pos) /*!< 0x00001000 */
3206#define CAN_FA1R_FACT12 CAN_FA1R_FACT12_Msk /*!<Filter 12 Active */
3207#define CAN_FA1R_FACT13_Pos (13U)
3208#define CAN_FA1R_FACT13_Msk (0x1U << CAN_FA1R_FACT13_Pos) /*!< 0x00002000 */
3209#define CAN_FA1R_FACT13 CAN_FA1R_FACT13_Msk /*!<Filter 13 Active */
3210
3211/******************* Bit definition for CAN_F0R1 register *******************/
3212#define CAN_F0R1_FB0_Pos (0U)
3213#define CAN_F0R1_FB0_Msk (0x1U << CAN_F0R1_FB0_Pos) /*!< 0x00000001 */
3214#define CAN_F0R1_FB0 CAN_F0R1_FB0_Msk /*!<Filter bit 0 */
3215#define CAN_F0R1_FB1_Pos (1U)
3216#define CAN_F0R1_FB1_Msk (0x1U << CAN_F0R1_FB1_Pos) /*!< 0x00000002 */
3217#define CAN_F0R1_FB1 CAN_F0R1_FB1_Msk /*!<Filter bit 1 */
3218#define CAN_F0R1_FB2_Pos (2U)
3219#define CAN_F0R1_FB2_Msk (0x1U << CAN_F0R1_FB2_Pos) /*!< 0x00000004 */
3220#define CAN_F0R1_FB2 CAN_F0R1_FB2_Msk /*!<Filter bit 2 */
3221#define CAN_F0R1_FB3_Pos (3U)
3222#define CAN_F0R1_FB3_Msk (0x1U << CAN_F0R1_FB3_Pos) /*!< 0x00000008 */
3223#define CAN_F0R1_FB3 CAN_F0R1_FB3_Msk /*!<Filter bit 3 */
3224#define CAN_F0R1_FB4_Pos (4U)
3225#define CAN_F0R1_FB4_Msk (0x1U << CAN_F0R1_FB4_Pos) /*!< 0x00000010 */
3226#define CAN_F0R1_FB4 CAN_F0R1_FB4_Msk /*!<Filter bit 4 */
3227#define CAN_F0R1_FB5_Pos (5U)
3228#define CAN_F0R1_FB5_Msk (0x1U << CAN_F0R1_FB5_Pos) /*!< 0x00000020 */
3229#define CAN_F0R1_FB5 CAN_F0R1_FB5_Msk /*!<Filter bit 5 */
3230#define CAN_F0R1_FB6_Pos (6U)
3231#define CAN_F0R1_FB6_Msk (0x1U << CAN_F0R1_FB6_Pos) /*!< 0x00000040 */
3232#define CAN_F0R1_FB6 CAN_F0R1_FB6_Msk /*!<Filter bit 6 */
3233#define CAN_F0R1_FB7_Pos (7U)
3234#define CAN_F0R1_FB7_Msk (0x1U << CAN_F0R1_FB7_Pos) /*!< 0x00000080 */
3235#define CAN_F0R1_FB7 CAN_F0R1_FB7_Msk /*!<Filter bit 7 */
3236#define CAN_F0R1_FB8_Pos (8U)
3237#define CAN_F0R1_FB8_Msk (0x1U << CAN_F0R1_FB8_Pos) /*!< 0x00000100 */
3238#define CAN_F0R1_FB8 CAN_F0R1_FB8_Msk /*!<Filter bit 8 */
3239#define CAN_F0R1_FB9_Pos (9U)
3240#define CAN_F0R1_FB9_Msk (0x1U << CAN_F0R1_FB9_Pos) /*!< 0x00000200 */
3241#define CAN_F0R1_FB9 CAN_F0R1_FB9_Msk /*!<Filter bit 9 */
3242#define CAN_F0R1_FB10_Pos (10U)
3243#define CAN_F0R1_FB10_Msk (0x1U << CAN_F0R1_FB10_Pos) /*!< 0x00000400 */
3244#define CAN_F0R1_FB10 CAN_F0R1_FB10_Msk /*!<Filter bit 10 */
3245#define CAN_F0R1_FB11_Pos (11U)
3246#define CAN_F0R1_FB11_Msk (0x1U << CAN_F0R1_FB11_Pos) /*!< 0x00000800 */
3247#define CAN_F0R1_FB11 CAN_F0R1_FB11_Msk /*!<Filter bit 11 */
3248#define CAN_F0R1_FB12_Pos (12U)
3249#define CAN_F0R1_FB12_Msk (0x1U << CAN_F0R1_FB12_Pos) /*!< 0x00001000 */
3250#define CAN_F0R1_FB12 CAN_F0R1_FB12_Msk /*!<Filter bit 12 */
3251#define CAN_F0R1_FB13_Pos (13U)
3252#define CAN_F0R1_FB13_Msk (0x1U << CAN_F0R1_FB13_Pos) /*!< 0x00002000 */
3253#define CAN_F0R1_FB13 CAN_F0R1_FB13_Msk /*!<Filter bit 13 */
3254#define CAN_F0R1_FB14_Pos (14U)
3255#define CAN_F0R1_FB14_Msk (0x1U << CAN_F0R1_FB14_Pos) /*!< 0x00004000 */
3256#define CAN_F0R1_FB14 CAN_F0R1_FB14_Msk /*!<Filter bit 14 */
3257#define CAN_F0R1_FB15_Pos (15U)
3258#define CAN_F0R1_FB15_Msk (0x1U << CAN_F0R1_FB15_Pos) /*!< 0x00008000 */
3259#define CAN_F0R1_FB15 CAN_F0R1_FB15_Msk /*!<Filter bit 15 */
3260#define CAN_F0R1_FB16_Pos (16U)
3261#define CAN_F0R1_FB16_Msk (0x1U << CAN_F0R1_FB16_Pos) /*!< 0x00010000 */
3262#define CAN_F0R1_FB16 CAN_F0R1_FB16_Msk /*!<Filter bit 16 */
3263#define CAN_F0R1_FB17_Pos (17U)
3264#define CAN_F0R1_FB17_Msk (0x1U << CAN_F0R1_FB17_Pos) /*!< 0x00020000 */
3265#define CAN_F0R1_FB17 CAN_F0R1_FB17_Msk /*!<Filter bit 17 */
3266#define CAN_F0R1_FB18_Pos (18U)
3267#define CAN_F0R1_FB18_Msk (0x1U << CAN_F0R1_FB18_Pos) /*!< 0x00040000 */
3268#define CAN_F0R1_FB18 CAN_F0R1_FB18_Msk /*!<Filter bit 18 */
3269#define CAN_F0R1_FB19_Pos (19U)
3270#define CAN_F0R1_FB19_Msk (0x1U << CAN_F0R1_FB19_Pos) /*!< 0x00080000 */
3271#define CAN_F0R1_FB19 CAN_F0R1_FB19_Msk /*!<Filter bit 19 */
3272#define CAN_F0R1_FB20_Pos (20U)
3273#define CAN_F0R1_FB20_Msk (0x1U << CAN_F0R1_FB20_Pos) /*!< 0x00100000 */
3274#define CAN_F0R1_FB20 CAN_F0R1_FB20_Msk /*!<Filter bit 20 */
3275#define CAN_F0R1_FB21_Pos (21U)
3276#define CAN_F0R1_FB21_Msk (0x1U << CAN_F0R1_FB21_Pos) /*!< 0x00200000 */
3277#define CAN_F0R1_FB21 CAN_F0R1_FB21_Msk /*!<Filter bit 21 */
3278#define CAN_F0R1_FB22_Pos (22U)
3279#define CAN_F0R1_FB22_Msk (0x1U << CAN_F0R1_FB22_Pos) /*!< 0x00400000 */
3280#define CAN_F0R1_FB22 CAN_F0R1_FB22_Msk /*!<Filter bit 22 */
3281#define CAN_F0R1_FB23_Pos (23U)
3282#define CAN_F0R1_FB23_Msk (0x1U << CAN_F0R1_FB23_Pos) /*!< 0x00800000 */
3283#define CAN_F0R1_FB23 CAN_F0R1_FB23_Msk /*!<Filter bit 23 */
3284#define CAN_F0R1_FB24_Pos (24U)
3285#define CAN_F0R1_FB24_Msk (0x1U << CAN_F0R1_FB24_Pos) /*!< 0x01000000 */
3286#define CAN_F0R1_FB24 CAN_F0R1_FB24_Msk /*!<Filter bit 24 */
3287#define CAN_F0R1_FB25_Pos (25U)
3288#define CAN_F0R1_FB25_Msk (0x1U << CAN_F0R1_FB25_Pos) /*!< 0x02000000 */
3289#define CAN_F0R1_FB25 CAN_F0R1_FB25_Msk /*!<Filter bit 25 */
3290#define CAN_F0R1_FB26_Pos (26U)
3291#define CAN_F0R1_FB26_Msk (0x1U << CAN_F0R1_FB26_Pos) /*!< 0x04000000 */
3292#define CAN_F0R1_FB26 CAN_F0R1_FB26_Msk /*!<Filter bit 26 */
3293#define CAN_F0R1_FB27_Pos (27U)
3294#define CAN_F0R1_FB27_Msk (0x1U << CAN_F0R1_FB27_Pos) /*!< 0x08000000 */
3295#define CAN_F0R1_FB27 CAN_F0R1_FB27_Msk /*!<Filter bit 27 */
3296#define CAN_F0R1_FB28_Pos (28U)
3297#define CAN_F0R1_FB28_Msk (0x1U << CAN_F0R1_FB28_Pos) /*!< 0x10000000 */
3298#define CAN_F0R1_FB28 CAN_F0R1_FB28_Msk /*!<Filter bit 28 */
3299#define CAN_F0R1_FB29_Pos (29U)
3300#define CAN_F0R1_FB29_Msk (0x1U << CAN_F0R1_FB29_Pos) /*!< 0x20000000 */
3301#define CAN_F0R1_FB29 CAN_F0R1_FB29_Msk /*!<Filter bit 29 */
3302#define CAN_F0R1_FB30_Pos (30U)
3303#define CAN_F0R1_FB30_Msk (0x1U << CAN_F0R1_FB30_Pos) /*!< 0x40000000 */
3304#define CAN_F0R1_FB30 CAN_F0R1_FB30_Msk /*!<Filter bit 30 */
3305#define CAN_F0R1_FB31_Pos (31U)
3306#define CAN_F0R1_FB31_Msk (0x1U << CAN_F0R1_FB31_Pos) /*!< 0x80000000 */
3307#define CAN_F0R1_FB31 CAN_F0R1_FB31_Msk /*!<Filter bit 31 */
3308
3309/******************* Bit definition for CAN_F1R1 register *******************/
3310#define CAN_F1R1_FB0_Pos (0U)
3311#define CAN_F1R1_FB0_Msk (0x1U << CAN_F1R1_FB0_Pos) /*!< 0x00000001 */
3312#define CAN_F1R1_FB0 CAN_F1R1_FB0_Msk /*!<Filter bit 0 */
3313#define CAN_F1R1_FB1_Pos (1U)
3314#define CAN_F1R1_FB1_Msk (0x1U << CAN_F1R1_FB1_Pos) /*!< 0x00000002 */
3315#define CAN_F1R1_FB1 CAN_F1R1_FB1_Msk /*!<Filter bit 1 */
3316#define CAN_F1R1_FB2_Pos (2U)
3317#define CAN_F1R1_FB2_Msk (0x1U << CAN_F1R1_FB2_Pos) /*!< 0x00000004 */
3318#define CAN_F1R1_FB2 CAN_F1R1_FB2_Msk /*!<Filter bit 2 */
3319#define CAN_F1R1_FB3_Pos (3U)
3320#define CAN_F1R1_FB3_Msk (0x1U << CAN_F1R1_FB3_Pos) /*!< 0x00000008 */
3321#define CAN_F1R1_FB3 CAN_F1R1_FB3_Msk /*!<Filter bit 3 */
3322#define CAN_F1R1_FB4_Pos (4U)
3323#define CAN_F1R1_FB4_Msk (0x1U << CAN_F1R1_FB4_Pos) /*!< 0x00000010 */
3324#define CAN_F1R1_FB4 CAN_F1R1_FB4_Msk /*!<Filter bit 4 */
3325#define CAN_F1R1_FB5_Pos (5U)
3326#define CAN_F1R1_FB5_Msk (0x1U << CAN_F1R1_FB5_Pos) /*!< 0x00000020 */
3327#define CAN_F1R1_FB5 CAN_F1R1_FB5_Msk /*!<Filter bit 5 */
3328#define CAN_F1R1_FB6_Pos (6U)
3329#define CAN_F1R1_FB6_Msk (0x1U << CAN_F1R1_FB6_Pos) /*!< 0x00000040 */
3330#define CAN_F1R1_FB6 CAN_F1R1_FB6_Msk /*!<Filter bit 6 */
3331#define CAN_F1R1_FB7_Pos (7U)
3332#define CAN_F1R1_FB7_Msk (0x1U << CAN_F1R1_FB7_Pos) /*!< 0x00000080 */
3333#define CAN_F1R1_FB7 CAN_F1R1_FB7_Msk /*!<Filter bit 7 */
3334#define CAN_F1R1_FB8_Pos (8U)
3335#define CAN_F1R1_FB8_Msk (0x1U << CAN_F1R1_FB8_Pos) /*!< 0x00000100 */
3336#define CAN_F1R1_FB8 CAN_F1R1_FB8_Msk /*!<Filter bit 8 */
3337#define CAN_F1R1_FB9_Pos (9U)
3338#define CAN_F1R1_FB9_Msk (0x1U << CAN_F1R1_FB9_Pos) /*!< 0x00000200 */
3339#define CAN_F1R1_FB9 CAN_F1R1_FB9_Msk /*!<Filter bit 9 */
3340#define CAN_F1R1_FB10_Pos (10U)
3341#define CAN_F1R1_FB10_Msk (0x1U << CAN_F1R1_FB10_Pos) /*!< 0x00000400 */
3342#define CAN_F1R1_FB10 CAN_F1R1_FB10_Msk /*!<Filter bit 10 */
3343#define CAN_F1R1_FB11_Pos (11U)
3344#define CAN_F1R1_FB11_Msk (0x1U << CAN_F1R1_FB11_Pos) /*!< 0x00000800 */
3345#define CAN_F1R1_FB11 CAN_F1R1_FB11_Msk /*!<Filter bit 11 */
3346#define CAN_F1R1_FB12_Pos (12U)
3347#define CAN_F1R1_FB12_Msk (0x1U << CAN_F1R1_FB12_Pos) /*!< 0x00001000 */
3348#define CAN_F1R1_FB12 CAN_F1R1_FB12_Msk /*!<Filter bit 12 */
3349#define CAN_F1R1_FB13_Pos (13U)
3350#define CAN_F1R1_FB13_Msk (0x1U << CAN_F1R1_FB13_Pos) /*!< 0x00002000 */
3351#define CAN_F1R1_FB13 CAN_F1R1_FB13_Msk /*!<Filter bit 13 */
3352#define CAN_F1R1_FB14_Pos (14U)
3353#define CAN_F1R1_FB14_Msk (0x1U << CAN_F1R1_FB14_Pos) /*!< 0x00004000 */
3354#define CAN_F1R1_FB14 CAN_F1R1_FB14_Msk /*!<Filter bit 14 */
3355#define CAN_F1R1_FB15_Pos (15U)
3356#define CAN_F1R1_FB15_Msk (0x1U << CAN_F1R1_FB15_Pos) /*!< 0x00008000 */
3357#define CAN_F1R1_FB15 CAN_F1R1_FB15_Msk /*!<Filter bit 15 */
3358#define CAN_F1R1_FB16_Pos (16U)
3359#define CAN_F1R1_FB16_Msk (0x1U << CAN_F1R1_FB16_Pos) /*!< 0x00010000 */
3360#define CAN_F1R1_FB16 CAN_F1R1_FB16_Msk /*!<Filter bit 16 */
3361#define CAN_F1R1_FB17_Pos (17U)
3362#define CAN_F1R1_FB17_Msk (0x1U << CAN_F1R1_FB17_Pos) /*!< 0x00020000 */
3363#define CAN_F1R1_FB17 CAN_F1R1_FB17_Msk /*!<Filter bit 17 */
3364#define CAN_F1R1_FB18_Pos (18U)
3365#define CAN_F1R1_FB18_Msk (0x1U << CAN_F1R1_FB18_Pos) /*!< 0x00040000 */
3366#define CAN_F1R1_FB18 CAN_F1R1_FB18_Msk /*!<Filter bit 18 */
3367#define CAN_F1R1_FB19_Pos (19U)
3368#define CAN_F1R1_FB19_Msk (0x1U << CAN_F1R1_FB19_Pos) /*!< 0x00080000 */
3369#define CAN_F1R1_FB19 CAN_F1R1_FB19_Msk /*!<Filter bit 19 */
3370#define CAN_F1R1_FB20_Pos (20U)
3371#define CAN_F1R1_FB20_Msk (0x1U << CAN_F1R1_FB20_Pos) /*!< 0x00100000 */
3372#define CAN_F1R1_FB20 CAN_F1R1_FB20_Msk /*!<Filter bit 20 */
3373#define CAN_F1R1_FB21_Pos (21U)
3374#define CAN_F1R1_FB21_Msk (0x1U << CAN_F1R1_FB21_Pos) /*!< 0x00200000 */
3375#define CAN_F1R1_FB21 CAN_F1R1_FB21_Msk /*!<Filter bit 21 */
3376#define CAN_F1R1_FB22_Pos (22U)
3377#define CAN_F1R1_FB22_Msk (0x1U << CAN_F1R1_FB22_Pos) /*!< 0x00400000 */
3378#define CAN_F1R1_FB22 CAN_F1R1_FB22_Msk /*!<Filter bit 22 */
3379#define CAN_F1R1_FB23_Pos (23U)
3380#define CAN_F1R1_FB23_Msk (0x1U << CAN_F1R1_FB23_Pos) /*!< 0x00800000 */
3381#define CAN_F1R1_FB23 CAN_F1R1_FB23_Msk /*!<Filter bit 23 */
3382#define CAN_F1R1_FB24_Pos (24U)
3383#define CAN_F1R1_FB24_Msk (0x1U << CAN_F1R1_FB24_Pos) /*!< 0x01000000 */
3384#define CAN_F1R1_FB24 CAN_F1R1_FB24_Msk /*!<Filter bit 24 */
3385#define CAN_F1R1_FB25_Pos (25U)
3386#define CAN_F1R1_FB25_Msk (0x1U << CAN_F1R1_FB25_Pos) /*!< 0x02000000 */
3387#define CAN_F1R1_FB25 CAN_F1R1_FB25_Msk /*!<Filter bit 25 */
3388#define CAN_F1R1_FB26_Pos (26U)
3389#define CAN_F1R1_FB26_Msk (0x1U << CAN_F1R1_FB26_Pos) /*!< 0x04000000 */
3390#define CAN_F1R1_FB26 CAN_F1R1_FB26_Msk /*!<Filter bit 26 */
3391#define CAN_F1R1_FB27_Pos (27U)
3392#define CAN_F1R1_FB27_Msk (0x1U << CAN_F1R1_FB27_Pos) /*!< 0x08000000 */
3393#define CAN_F1R1_FB27 CAN_F1R1_FB27_Msk /*!<Filter bit 27 */
3394#define CAN_F1R1_FB28_Pos (28U)
3395#define CAN_F1R1_FB28_Msk (0x1U << CAN_F1R1_FB28_Pos) /*!< 0x10000000 */
3396#define CAN_F1R1_FB28 CAN_F1R1_FB28_Msk /*!<Filter bit 28 */
3397#define CAN_F1R1_FB29_Pos (29U)
3398#define CAN_F1R1_FB29_Msk (0x1U << CAN_F1R1_FB29_Pos) /*!< 0x20000000 */
3399#define CAN_F1R1_FB29 CAN_F1R1_FB29_Msk /*!<Filter bit 29 */
3400#define CAN_F1R1_FB30_Pos (30U)
3401#define CAN_F1R1_FB30_Msk (0x1U << CAN_F1R1_FB30_Pos) /*!< 0x40000000 */
3402#define CAN_F1R1_FB30 CAN_F1R1_FB30_Msk /*!<Filter bit 30 */
3403#define CAN_F1R1_FB31_Pos (31U)
3404#define CAN_F1R1_FB31_Msk (0x1U << CAN_F1R1_FB31_Pos) /*!< 0x80000000 */
3405#define CAN_F1R1_FB31 CAN_F1R1_FB31_Msk /*!<Filter bit 31 */
3406
3407/******************* Bit definition for CAN_F2R1 register *******************/
3408#define CAN_F2R1_FB0_Pos (0U)
3409#define CAN_F2R1_FB0_Msk (0x1U << CAN_F2R1_FB0_Pos) /*!< 0x00000001 */
3410#define CAN_F2R1_FB0 CAN_F2R1_FB0_Msk /*!<Filter bit 0 */
3411#define CAN_F2R1_FB1_Pos (1U)
3412#define CAN_F2R1_FB1_Msk (0x1U << CAN_F2R1_FB1_Pos) /*!< 0x00000002 */
3413#define CAN_F2R1_FB1 CAN_F2R1_FB1_Msk /*!<Filter bit 1 */
3414#define CAN_F2R1_FB2_Pos (2U)
3415#define CAN_F2R1_FB2_Msk (0x1U << CAN_F2R1_FB2_Pos) /*!< 0x00000004 */
3416#define CAN_F2R1_FB2 CAN_F2R1_FB2_Msk /*!<Filter bit 2 */
3417#define CAN_F2R1_FB3_Pos (3U)
3418#define CAN_F2R1_FB3_Msk (0x1U << CAN_F2R1_FB3_Pos) /*!< 0x00000008 */
3419#define CAN_F2R1_FB3 CAN_F2R1_FB3_Msk /*!<Filter bit 3 */
3420#define CAN_F2R1_FB4_Pos (4U)
3421#define CAN_F2R1_FB4_Msk (0x1U << CAN_F2R1_FB4_Pos) /*!< 0x00000010 */
3422#define CAN_F2R1_FB4 CAN_F2R1_FB4_Msk /*!<Filter bit 4 */
3423#define CAN_F2R1_FB5_Pos (5U)
3424#define CAN_F2R1_FB5_Msk (0x1U << CAN_F2R1_FB5_Pos) /*!< 0x00000020 */
3425#define CAN_F2R1_FB5 CAN_F2R1_FB5_Msk /*!<Filter bit 5 */
3426#define CAN_F2R1_FB6_Pos (6U)
3427#define CAN_F2R1_FB6_Msk (0x1U << CAN_F2R1_FB6_Pos) /*!< 0x00000040 */
3428#define CAN_F2R1_FB6 CAN_F2R1_FB6_Msk /*!<Filter bit 6 */
3429#define CAN_F2R1_FB7_Pos (7U)
3430#define CAN_F2R1_FB7_Msk (0x1U << CAN_F2R1_FB7_Pos) /*!< 0x00000080 */
3431#define CAN_F2R1_FB7 CAN_F2R1_FB7_Msk /*!<Filter bit 7 */
3432#define CAN_F2R1_FB8_Pos (8U)
3433#define CAN_F2R1_FB8_Msk (0x1U << CAN_F2R1_FB8_Pos) /*!< 0x00000100 */
3434#define CAN_F2R1_FB8 CAN_F2R1_FB8_Msk /*!<Filter bit 8 */
3435#define CAN_F2R1_FB9_Pos (9U)
3436#define CAN_F2R1_FB9_Msk (0x1U << CAN_F2R1_FB9_Pos) /*!< 0x00000200 */
3437#define CAN_F2R1_FB9 CAN_F2R1_FB9_Msk /*!<Filter bit 9 */
3438#define CAN_F2R1_FB10_Pos (10U)
3439#define CAN_F2R1_FB10_Msk (0x1U << CAN_F2R1_FB10_Pos) /*!< 0x00000400 */
3440#define CAN_F2R1_FB10 CAN_F2R1_FB10_Msk /*!<Filter bit 10 */
3441#define CAN_F2R1_FB11_Pos (11U)
3442#define CAN_F2R1_FB11_Msk (0x1U << CAN_F2R1_FB11_Pos) /*!< 0x00000800 */
3443#define CAN_F2R1_FB11 CAN_F2R1_FB11_Msk /*!<Filter bit 11 */
3444#define CAN_F2R1_FB12_Pos (12U)
3445#define CAN_F2R1_FB12_Msk (0x1U << CAN_F2R1_FB12_Pos) /*!< 0x00001000 */
3446#define CAN_F2R1_FB12 CAN_F2R1_FB12_Msk /*!<Filter bit 12 */
3447#define CAN_F2R1_FB13_Pos (13U)
3448#define CAN_F2R1_FB13_Msk (0x1U << CAN_F2R1_FB13_Pos) /*!< 0x00002000 */
3449#define CAN_F2R1_FB13 CAN_F2R1_FB13_Msk /*!<Filter bit 13 */
3450#define CAN_F2R1_FB14_Pos (14U)
3451#define CAN_F2R1_FB14_Msk (0x1U << CAN_F2R1_FB14_Pos) /*!< 0x00004000 */
3452#define CAN_F2R1_FB14 CAN_F2R1_FB14_Msk /*!<Filter bit 14 */
3453#define CAN_F2R1_FB15_Pos (15U)
3454#define CAN_F2R1_FB15_Msk (0x1U << CAN_F2R1_FB15_Pos) /*!< 0x00008000 */
3455#define CAN_F2R1_FB15 CAN_F2R1_FB15_Msk /*!<Filter bit 15 */
3456#define CAN_F2R1_FB16_Pos (16U)
3457#define CAN_F2R1_FB16_Msk (0x1U << CAN_F2R1_FB16_Pos) /*!< 0x00010000 */
3458#define CAN_F2R1_FB16 CAN_F2R1_FB16_Msk /*!<Filter bit 16 */
3459#define CAN_F2R1_FB17_Pos (17U)
3460#define CAN_F2R1_FB17_Msk (0x1U << CAN_F2R1_FB17_Pos) /*!< 0x00020000 */
3461#define CAN_F2R1_FB17 CAN_F2R1_FB17_Msk /*!<Filter bit 17 */
3462#define CAN_F2R1_FB18_Pos (18U)
3463#define CAN_F2R1_FB18_Msk (0x1U << CAN_F2R1_FB18_Pos) /*!< 0x00040000 */
3464#define CAN_F2R1_FB18 CAN_F2R1_FB18_Msk /*!<Filter bit 18 */
3465#define CAN_F2R1_FB19_Pos (19U)
3466#define CAN_F2R1_FB19_Msk (0x1U << CAN_F2R1_FB19_Pos) /*!< 0x00080000 */
3467#define CAN_F2R1_FB19 CAN_F2R1_FB19_Msk /*!<Filter bit 19 */
3468#define CAN_F2R1_FB20_Pos (20U)
3469#define CAN_F2R1_FB20_Msk (0x1U << CAN_F2R1_FB20_Pos) /*!< 0x00100000 */
3470#define CAN_F2R1_FB20 CAN_F2R1_FB20_Msk /*!<Filter bit 20 */
3471#define CAN_F2R1_FB21_Pos (21U)
3472#define CAN_F2R1_FB21_Msk (0x1U << CAN_F2R1_FB21_Pos) /*!< 0x00200000 */
3473#define CAN_F2R1_FB21 CAN_F2R1_FB21_Msk /*!<Filter bit 21 */
3474#define CAN_F2R1_FB22_Pos (22U)
3475#define CAN_F2R1_FB22_Msk (0x1U << CAN_F2R1_FB22_Pos) /*!< 0x00400000 */
3476#define CAN_F2R1_FB22 CAN_F2R1_FB22_Msk /*!<Filter bit 22 */
3477#define CAN_F2R1_FB23_Pos (23U)
3478#define CAN_F2R1_FB23_Msk (0x1U << CAN_F2R1_FB23_Pos) /*!< 0x00800000 */
3479#define CAN_F2R1_FB23 CAN_F2R1_FB23_Msk /*!<Filter bit 23 */
3480#define CAN_F2R1_FB24_Pos (24U)
3481#define CAN_F2R1_FB24_Msk (0x1U << CAN_F2R1_FB24_Pos) /*!< 0x01000000 */
3482#define CAN_F2R1_FB24 CAN_F2R1_FB24_Msk /*!<Filter bit 24 */
3483#define CAN_F2R1_FB25_Pos (25U)
3484#define CAN_F2R1_FB25_Msk (0x1U << CAN_F2R1_FB25_Pos) /*!< 0x02000000 */
3485#define CAN_F2R1_FB25 CAN_F2R1_FB25_Msk /*!<Filter bit 25 */
3486#define CAN_F2R1_FB26_Pos (26U)
3487#define CAN_F2R1_FB26_Msk (0x1U << CAN_F2R1_FB26_Pos) /*!< 0x04000000 */
3488#define CAN_F2R1_FB26 CAN_F2R1_FB26_Msk /*!<Filter bit 26 */
3489#define CAN_F2R1_FB27_Pos (27U)
3490#define CAN_F2R1_FB27_Msk (0x1U << CAN_F2R1_FB27_Pos) /*!< 0x08000000 */
3491#define CAN_F2R1_FB27 CAN_F2R1_FB27_Msk /*!<Filter bit 27 */
3492#define CAN_F2R1_FB28_Pos (28U)
3493#define CAN_F2R1_FB28_Msk (0x1U << CAN_F2R1_FB28_Pos) /*!< 0x10000000 */
3494#define CAN_F2R1_FB28 CAN_F2R1_FB28_Msk /*!<Filter bit 28 */
3495#define CAN_F2R1_FB29_Pos (29U)
3496#define CAN_F2R1_FB29_Msk (0x1U << CAN_F2R1_FB29_Pos) /*!< 0x20000000 */
3497#define CAN_F2R1_FB29 CAN_F2R1_FB29_Msk /*!<Filter bit 29 */
3498#define CAN_F2R1_FB30_Pos (30U)
3499#define CAN_F2R1_FB30_Msk (0x1U << CAN_F2R1_FB30_Pos) /*!< 0x40000000 */
3500#define CAN_F2R1_FB30 CAN_F2R1_FB30_Msk /*!<Filter bit 30 */
3501#define CAN_F2R1_FB31_Pos (31U)
3502#define CAN_F2R1_FB31_Msk (0x1U << CAN_F2R1_FB31_Pos) /*!< 0x80000000 */
3503#define CAN_F2R1_FB31 CAN_F2R1_FB31_Msk /*!<Filter bit 31 */
3504
3505/******************* Bit definition for CAN_F3R1 register *******************/
3506#define CAN_F3R1_FB0_Pos (0U)
3507#define CAN_F3R1_FB0_Msk (0x1U << CAN_F3R1_FB0_Pos) /*!< 0x00000001 */
3508#define CAN_F3R1_FB0 CAN_F3R1_FB0_Msk /*!<Filter bit 0 */
3509#define CAN_F3R1_FB1_Pos (1U)
3510#define CAN_F3R1_FB1_Msk (0x1U << CAN_F3R1_FB1_Pos) /*!< 0x00000002 */
3511#define CAN_F3R1_FB1 CAN_F3R1_FB1_Msk /*!<Filter bit 1 */
3512#define CAN_F3R1_FB2_Pos (2U)
3513#define CAN_F3R1_FB2_Msk (0x1U << CAN_F3R1_FB2_Pos) /*!< 0x00000004 */
3514#define CAN_F3R1_FB2 CAN_F3R1_FB2_Msk /*!<Filter bit 2 */
3515#define CAN_F3R1_FB3_Pos (3U)
3516#define CAN_F3R1_FB3_Msk (0x1U << CAN_F3R1_FB3_Pos) /*!< 0x00000008 */
3517#define CAN_F3R1_FB3 CAN_F3R1_FB3_Msk /*!<Filter bit 3 */
3518#define CAN_F3R1_FB4_Pos (4U)
3519#define CAN_F3R1_FB4_Msk (0x1U << CAN_F3R1_FB4_Pos) /*!< 0x00000010 */
3520#define CAN_F3R1_FB4 CAN_F3R1_FB4_Msk /*!<Filter bit 4 */
3521#define CAN_F3R1_FB5_Pos (5U)
3522#define CAN_F3R1_FB5_Msk (0x1U << CAN_F3R1_FB5_Pos) /*!< 0x00000020 */
3523#define CAN_F3R1_FB5 CAN_F3R1_FB5_Msk /*!<Filter bit 5 */
3524#define CAN_F3R1_FB6_Pos (6U)
3525#define CAN_F3R1_FB6_Msk (0x1U << CAN_F3R1_FB6_Pos) /*!< 0x00000040 */
3526#define CAN_F3R1_FB6 CAN_F3R1_FB6_Msk /*!<Filter bit 6 */
3527#define CAN_F3R1_FB7_Pos (7U)
3528#define CAN_F3R1_FB7_Msk (0x1U << CAN_F3R1_FB7_Pos) /*!< 0x00000080 */
3529#define CAN_F3R1_FB7 CAN_F3R1_FB7_Msk /*!<Filter bit 7 */
3530#define CAN_F3R1_FB8_Pos (8U)
3531#define CAN_F3R1_FB8_Msk (0x1U << CAN_F3R1_FB8_Pos) /*!< 0x00000100 */
3532#define CAN_F3R1_FB8 CAN_F3R1_FB8_Msk /*!<Filter bit 8 */
3533#define CAN_F3R1_FB9_Pos (9U)
3534#define CAN_F3R1_FB9_Msk (0x1U << CAN_F3R1_FB9_Pos) /*!< 0x00000200 */
3535#define CAN_F3R1_FB9 CAN_F3R1_FB9_Msk /*!<Filter bit 9 */
3536#define CAN_F3R1_FB10_Pos (10U)
3537#define CAN_F3R1_FB10_Msk (0x1U << CAN_F3R1_FB10_Pos) /*!< 0x00000400 */
3538#define CAN_F3R1_FB10 CAN_F3R1_FB10_Msk /*!<Filter bit 10 */
3539#define CAN_F3R1_FB11_Pos (11U)
3540#define CAN_F3R1_FB11_Msk (0x1U << CAN_F3R1_FB11_Pos) /*!< 0x00000800 */
3541#define CAN_F3R1_FB11 CAN_F3R1_FB11_Msk /*!<Filter bit 11 */
3542#define CAN_F3R1_FB12_Pos (12U)
3543#define CAN_F3R1_FB12_Msk (0x1U << CAN_F3R1_FB12_Pos) /*!< 0x00001000 */
3544#define CAN_F3R1_FB12 CAN_F3R1_FB12_Msk /*!<Filter bit 12 */
3545#define CAN_F3R1_FB13_Pos (13U)
3546#define CAN_F3R1_FB13_Msk (0x1U << CAN_F3R1_FB13_Pos) /*!< 0x00002000 */
3547#define CAN_F3R1_FB13 CAN_F3R1_FB13_Msk /*!<Filter bit 13 */
3548#define CAN_F3R1_FB14_Pos (14U)
3549#define CAN_F3R1_FB14_Msk (0x1U << CAN_F3R1_FB14_Pos) /*!< 0x00004000 */
3550#define CAN_F3R1_FB14 CAN_F3R1_FB14_Msk /*!<Filter bit 14 */
3551#define CAN_F3R1_FB15_Pos (15U)
3552#define CAN_F3R1_FB15_Msk (0x1U << CAN_F3R1_FB15_Pos) /*!< 0x00008000 */
3553#define CAN_F3R1_FB15 CAN_F3R1_FB15_Msk /*!<Filter bit 15 */
3554#define CAN_F3R1_FB16_Pos (16U)
3555#define CAN_F3R1_FB16_Msk (0x1U << CAN_F3R1_FB16_Pos) /*!< 0x00010000 */
3556#define CAN_F3R1_FB16 CAN_F3R1_FB16_Msk /*!<Filter bit 16 */
3557#define CAN_F3R1_FB17_Pos (17U)
3558#define CAN_F3R1_FB17_Msk (0x1U << CAN_F3R1_FB17_Pos) /*!< 0x00020000 */
3559#define CAN_F3R1_FB17 CAN_F3R1_FB17_Msk /*!<Filter bit 17 */
3560#define CAN_F3R1_FB18_Pos (18U)
3561#define CAN_F3R1_FB18_Msk (0x1U << CAN_F3R1_FB18_Pos) /*!< 0x00040000 */
3562#define CAN_F3R1_FB18 CAN_F3R1_FB18_Msk /*!<Filter bit 18 */
3563#define CAN_F3R1_FB19_Pos (19U)
3564#define CAN_F3R1_FB19_Msk (0x1U << CAN_F3R1_FB19_Pos) /*!< 0x00080000 */
3565#define CAN_F3R1_FB19 CAN_F3R1_FB19_Msk /*!<Filter bit 19 */
3566#define CAN_F3R1_FB20_Pos (20U)
3567#define CAN_F3R1_FB20_Msk (0x1U << CAN_F3R1_FB20_Pos) /*!< 0x00100000 */
3568#define CAN_F3R1_FB20 CAN_F3R1_FB20_Msk /*!<Filter bit 20 */
3569#define CAN_F3R1_FB21_Pos (21U)
3570#define CAN_F3R1_FB21_Msk (0x1U << CAN_F3R1_FB21_Pos) /*!< 0x00200000 */
3571#define CAN_F3R1_FB21 CAN_F3R1_FB21_Msk /*!<Filter bit 21 */
3572#define CAN_F3R1_FB22_Pos (22U)
3573#define CAN_F3R1_FB22_Msk (0x1U << CAN_F3R1_FB22_Pos) /*!< 0x00400000 */
3574#define CAN_F3R1_FB22 CAN_F3R1_FB22_Msk /*!<Filter bit 22 */
3575#define CAN_F3R1_FB23_Pos (23U)
3576#define CAN_F3R1_FB23_Msk (0x1U << CAN_F3R1_FB23_Pos) /*!< 0x00800000 */
3577#define CAN_F3R1_FB23 CAN_F3R1_FB23_Msk /*!<Filter bit 23 */
3578#define CAN_F3R1_FB24_Pos (24U)
3579#define CAN_F3R1_FB24_Msk (0x1U << CAN_F3R1_FB24_Pos) /*!< 0x01000000 */
3580#define CAN_F3R1_FB24 CAN_F3R1_FB24_Msk /*!<Filter bit 24 */
3581#define CAN_F3R1_FB25_Pos (25U)
3582#define CAN_F3R1_FB25_Msk (0x1U << CAN_F3R1_FB25_Pos) /*!< 0x02000000 */
3583#define CAN_F3R1_FB25 CAN_F3R1_FB25_Msk /*!<Filter bit 25 */
3584#define CAN_F3R1_FB26_Pos (26U)
3585#define CAN_F3R1_FB26_Msk (0x1U << CAN_F3R1_FB26_Pos) /*!< 0x04000000 */
3586#define CAN_F3R1_FB26 CAN_F3R1_FB26_Msk /*!<Filter bit 26 */
3587#define CAN_F3R1_FB27_Pos (27U)
3588#define CAN_F3R1_FB27_Msk (0x1U << CAN_F3R1_FB27_Pos) /*!< 0x08000000 */
3589#define CAN_F3R1_FB27 CAN_F3R1_FB27_Msk /*!<Filter bit 27 */
3590#define CAN_F3R1_FB28_Pos (28U)
3591#define CAN_F3R1_FB28_Msk (0x1U << CAN_F3R1_FB28_Pos) /*!< 0x10000000 */
3592#define CAN_F3R1_FB28 CAN_F3R1_FB28_Msk /*!<Filter bit 28 */
3593#define CAN_F3R1_FB29_Pos (29U)
3594#define CAN_F3R1_FB29_Msk (0x1U << CAN_F3R1_FB29_Pos) /*!< 0x20000000 */
3595#define CAN_F3R1_FB29 CAN_F3R1_FB29_Msk /*!<Filter bit 29 */
3596#define CAN_F3R1_FB30_Pos (30U)
3597#define CAN_F3R1_FB30_Msk (0x1U << CAN_F3R1_FB30_Pos) /*!< 0x40000000 */
3598#define CAN_F3R1_FB30 CAN_F3R1_FB30_Msk /*!<Filter bit 30 */
3599#define CAN_F3R1_FB31_Pos (31U)
3600#define CAN_F3R1_FB31_Msk (0x1U << CAN_F3R1_FB31_Pos) /*!< 0x80000000 */
3601#define CAN_F3R1_FB31 CAN_F3R1_FB31_Msk /*!<Filter bit 31 */
3602
3603/******************* Bit definition for CAN_F4R1 register *******************/
3604#define CAN_F4R1_FB0_Pos (0U)
3605#define CAN_F4R1_FB0_Msk (0x1U << CAN_F4R1_FB0_Pos) /*!< 0x00000001 */
3606#define CAN_F4R1_FB0 CAN_F4R1_FB0_Msk /*!<Filter bit 0 */
3607#define CAN_F4R1_FB1_Pos (1U)
3608#define CAN_F4R1_FB1_Msk (0x1U << CAN_F4R1_FB1_Pos) /*!< 0x00000002 */
3609#define CAN_F4R1_FB1 CAN_F4R1_FB1_Msk /*!<Filter bit 1 */
3610#define CAN_F4R1_FB2_Pos (2U)
3611#define CAN_F4R1_FB2_Msk (0x1U << CAN_F4R1_FB2_Pos) /*!< 0x00000004 */
3612#define CAN_F4R1_FB2 CAN_F4R1_FB2_Msk /*!<Filter bit 2 */
3613#define CAN_F4R1_FB3_Pos (3U)
3614#define CAN_F4R1_FB3_Msk (0x1U << CAN_F4R1_FB3_Pos) /*!< 0x00000008 */
3615#define CAN_F4R1_FB3 CAN_F4R1_FB3_Msk /*!<Filter bit 3 */
3616#define CAN_F4R1_FB4_Pos (4U)
3617#define CAN_F4R1_FB4_Msk (0x1U << CAN_F4R1_FB4_Pos) /*!< 0x00000010 */
3618#define CAN_F4R1_FB4 CAN_F4R1_FB4_Msk /*!<Filter bit 4 */
3619#define CAN_F4R1_FB5_Pos (5U)
3620#define CAN_F4R1_FB5_Msk (0x1U << CAN_F4R1_FB5_Pos) /*!< 0x00000020 */
3621#define CAN_F4R1_FB5 CAN_F4R1_FB5_Msk /*!<Filter bit 5 */
3622#define CAN_F4R1_FB6_Pos (6U)
3623#define CAN_F4R1_FB6_Msk (0x1U << CAN_F4R1_FB6_Pos) /*!< 0x00000040 */
3624#define CAN_F4R1_FB6 CAN_F4R1_FB6_Msk /*!<Filter bit 6 */
3625#define CAN_F4R1_FB7_Pos (7U)
3626#define CAN_F4R1_FB7_Msk (0x1U << CAN_F4R1_FB7_Pos) /*!< 0x00000080 */
3627#define CAN_F4R1_FB7 CAN_F4R1_FB7_Msk /*!<Filter bit 7 */
3628#define CAN_F4R1_FB8_Pos (8U)
3629#define CAN_F4R1_FB8_Msk (0x1U << CAN_F4R1_FB8_Pos) /*!< 0x00000100 */
3630#define CAN_F4R1_FB8 CAN_F4R1_FB8_Msk /*!<Filter bit 8 */
3631#define CAN_F4R1_FB9_Pos (9U)
3632#define CAN_F4R1_FB9_Msk (0x1U << CAN_F4R1_FB9_Pos) /*!< 0x00000200 */
3633#define CAN_F4R1_FB9 CAN_F4R1_FB9_Msk /*!<Filter bit 9 */
3634#define CAN_F4R1_FB10_Pos (10U)
3635#define CAN_F4R1_FB10_Msk (0x1U << CAN_F4R1_FB10_Pos) /*!< 0x00000400 */
3636#define CAN_F4R1_FB10 CAN_F4R1_FB10_Msk /*!<Filter bit 10 */
3637#define CAN_F4R1_FB11_Pos (11U)
3638#define CAN_F4R1_FB11_Msk (0x1U << CAN_F4R1_FB11_Pos) /*!< 0x00000800 */
3639#define CAN_F4R1_FB11 CAN_F4R1_FB11_Msk /*!<Filter bit 11 */
3640#define CAN_F4R1_FB12_Pos (12U)
3641#define CAN_F4R1_FB12_Msk (0x1U << CAN_F4R1_FB12_Pos) /*!< 0x00001000 */
3642#define CAN_F4R1_FB12 CAN_F4R1_FB12_Msk /*!<Filter bit 12 */
3643#define CAN_F4R1_FB13_Pos (13U)
3644#define CAN_F4R1_FB13_Msk (0x1U << CAN_F4R1_FB13_Pos) /*!< 0x00002000 */
3645#define CAN_F4R1_FB13 CAN_F4R1_FB13_Msk /*!<Filter bit 13 */
3646#define CAN_F4R1_FB14_Pos (14U)
3647#define CAN_F4R1_FB14_Msk (0x1U << CAN_F4R1_FB14_Pos) /*!< 0x00004000 */
3648#define CAN_F4R1_FB14 CAN_F4R1_FB14_Msk /*!<Filter bit 14 */
3649#define CAN_F4R1_FB15_Pos (15U)
3650#define CAN_F4R1_FB15_Msk (0x1U << CAN_F4R1_FB15_Pos) /*!< 0x00008000 */
3651#define CAN_F4R1_FB15 CAN_F4R1_FB15_Msk /*!<Filter bit 15 */
3652#define CAN_F4R1_FB16_Pos (16U)
3653#define CAN_F4R1_FB16_Msk (0x1U << CAN_F4R1_FB16_Pos) /*!< 0x00010000 */
3654#define CAN_F4R1_FB16 CAN_F4R1_FB16_Msk /*!<Filter bit 16 */
3655#define CAN_F4R1_FB17_Pos (17U)
3656#define CAN_F4R1_FB17_Msk (0x1U << CAN_F4R1_FB17_Pos) /*!< 0x00020000 */
3657#define CAN_F4R1_FB17 CAN_F4R1_FB17_Msk /*!<Filter bit 17 */
3658#define CAN_F4R1_FB18_Pos (18U)
3659#define CAN_F4R1_FB18_Msk (0x1U << CAN_F4R1_FB18_Pos) /*!< 0x00040000 */
3660#define CAN_F4R1_FB18 CAN_F4R1_FB18_Msk /*!<Filter bit 18 */
3661#define CAN_F4R1_FB19_Pos (19U)
3662#define CAN_F4R1_FB19_Msk (0x1U << CAN_F4R1_FB19_Pos) /*!< 0x00080000 */
3663#define CAN_F4R1_FB19 CAN_F4R1_FB19_Msk /*!<Filter bit 19 */
3664#define CAN_F4R1_FB20_Pos (20U)
3665#define CAN_F4R1_FB20_Msk (0x1U << CAN_F4R1_FB20_Pos) /*!< 0x00100000 */
3666#define CAN_F4R1_FB20 CAN_F4R1_FB20_Msk /*!<Filter bit 20 */
3667#define CAN_F4R1_FB21_Pos (21U)
3668#define CAN_F4R1_FB21_Msk (0x1U << CAN_F4R1_FB21_Pos) /*!< 0x00200000 */
3669#define CAN_F4R1_FB21 CAN_F4R1_FB21_Msk /*!<Filter bit 21 */
3670#define CAN_F4R1_FB22_Pos (22U)
3671#define CAN_F4R1_FB22_Msk (0x1U << CAN_F4R1_FB22_Pos) /*!< 0x00400000 */
3672#define CAN_F4R1_FB22 CAN_F4R1_FB22_Msk /*!<Filter bit 22 */
3673#define CAN_F4R1_FB23_Pos (23U)
3674#define CAN_F4R1_FB23_Msk (0x1U << CAN_F4R1_FB23_Pos) /*!< 0x00800000 */
3675#define CAN_F4R1_FB23 CAN_F4R1_FB23_Msk /*!<Filter bit 23 */
3676#define CAN_F4R1_FB24_Pos (24U)
3677#define CAN_F4R1_FB24_Msk (0x1U << CAN_F4R1_FB24_Pos) /*!< 0x01000000 */
3678#define CAN_F4R1_FB24 CAN_F4R1_FB24_Msk /*!<Filter bit 24 */
3679#define CAN_F4R1_FB25_Pos (25U)
3680#define CAN_F4R1_FB25_Msk (0x1U << CAN_F4R1_FB25_Pos) /*!< 0x02000000 */
3681#define CAN_F4R1_FB25 CAN_F4R1_FB25_Msk /*!<Filter bit 25 */
3682#define CAN_F4R1_FB26_Pos (26U)
3683#define CAN_F4R1_FB26_Msk (0x1U << CAN_F4R1_FB26_Pos) /*!< 0x04000000 */
3684#define CAN_F4R1_FB26 CAN_F4R1_FB26_Msk /*!<Filter bit 26 */
3685#define CAN_F4R1_FB27_Pos (27U)
3686#define CAN_F4R1_FB27_Msk (0x1U << CAN_F4R1_FB27_Pos) /*!< 0x08000000 */
3687#define CAN_F4R1_FB27 CAN_F4R1_FB27_Msk /*!<Filter bit 27 */
3688#define CAN_F4R1_FB28_Pos (28U)
3689#define CAN_F4R1_FB28_Msk (0x1U << CAN_F4R1_FB28_Pos) /*!< 0x10000000 */
3690#define CAN_F4R1_FB28 CAN_F4R1_FB28_Msk /*!<Filter bit 28 */
3691#define CAN_F4R1_FB29_Pos (29U)
3692#define CAN_F4R1_FB29_Msk (0x1U << CAN_F4R1_FB29_Pos) /*!< 0x20000000 */
3693#define CAN_F4R1_FB29 CAN_F4R1_FB29_Msk /*!<Filter bit 29 */
3694#define CAN_F4R1_FB30_Pos (30U)
3695#define CAN_F4R1_FB30_Msk (0x1U << CAN_F4R1_FB30_Pos) /*!< 0x40000000 */
3696#define CAN_F4R1_FB30 CAN_F4R1_FB30_Msk /*!<Filter bit 30 */
3697#define CAN_F4R1_FB31_Pos (31U)
3698#define CAN_F4R1_FB31_Msk (0x1U << CAN_F4R1_FB31_Pos) /*!< 0x80000000 */
3699#define CAN_F4R1_FB31 CAN_F4R1_FB31_Msk /*!<Filter bit 31 */
3700
3701/******************* Bit definition for CAN_F5R1 register *******************/
3702#define CAN_F5R1_FB0_Pos (0U)
3703#define CAN_F5R1_FB0_Msk (0x1U << CAN_F5R1_FB0_Pos) /*!< 0x00000001 */
3704#define CAN_F5R1_FB0 CAN_F5R1_FB0_Msk /*!<Filter bit 0 */
3705#define CAN_F5R1_FB1_Pos (1U)
3706#define CAN_F5R1_FB1_Msk (0x1U << CAN_F5R1_FB1_Pos) /*!< 0x00000002 */
3707#define CAN_F5R1_FB1 CAN_F5R1_FB1_Msk /*!<Filter bit 1 */
3708#define CAN_F5R1_FB2_Pos (2U)
3709#define CAN_F5R1_FB2_Msk (0x1U << CAN_F5R1_FB2_Pos) /*!< 0x00000004 */
3710#define CAN_F5R1_FB2 CAN_F5R1_FB2_Msk /*!<Filter bit 2 */
3711#define CAN_F5R1_FB3_Pos (3U)
3712#define CAN_F5R1_FB3_Msk (0x1U << CAN_F5R1_FB3_Pos) /*!< 0x00000008 */
3713#define CAN_F5R1_FB3 CAN_F5R1_FB3_Msk /*!<Filter bit 3 */
3714#define CAN_F5R1_FB4_Pos (4U)
3715#define CAN_F5R1_FB4_Msk (0x1U << CAN_F5R1_FB4_Pos) /*!< 0x00000010 */
3716#define CAN_F5R1_FB4 CAN_F5R1_FB4_Msk /*!<Filter bit 4 */
3717#define CAN_F5R1_FB5_Pos (5U)
3718#define CAN_F5R1_FB5_Msk (0x1U << CAN_F5R1_FB5_Pos) /*!< 0x00000020 */
3719#define CAN_F5R1_FB5 CAN_F5R1_FB5_Msk /*!<Filter bit 5 */
3720#define CAN_F5R1_FB6_Pos (6U)
3721#define CAN_F5R1_FB6_Msk (0x1U << CAN_F5R1_FB6_Pos) /*!< 0x00000040 */
3722#define CAN_F5R1_FB6 CAN_F5R1_FB6_Msk /*!<Filter bit 6 */
3723#define CAN_F5R1_FB7_Pos (7U)
3724#define CAN_F5R1_FB7_Msk (0x1U << CAN_F5R1_FB7_Pos) /*!< 0x00000080 */
3725#define CAN_F5R1_FB7 CAN_F5R1_FB7_Msk /*!<Filter bit 7 */
3726#define CAN_F5R1_FB8_Pos (8U)
3727#define CAN_F5R1_FB8_Msk (0x1U << CAN_F5R1_FB8_Pos) /*!< 0x00000100 */
3728#define CAN_F5R1_FB8 CAN_F5R1_FB8_Msk /*!<Filter bit 8 */
3729#define CAN_F5R1_FB9_Pos (9U)
3730#define CAN_F5R1_FB9_Msk (0x1U << CAN_F5R1_FB9_Pos) /*!< 0x00000200 */
3731#define CAN_F5R1_FB9 CAN_F5R1_FB9_Msk /*!<Filter bit 9 */
3732#define CAN_F5R1_FB10_Pos (10U)
3733#define CAN_F5R1_FB10_Msk (0x1U << CAN_F5R1_FB10_Pos) /*!< 0x00000400 */
3734#define CAN_F5R1_FB10 CAN_F5R1_FB10_Msk /*!<Filter bit 10 */
3735#define CAN_F5R1_FB11_Pos (11U)
3736#define CAN_F5R1_FB11_Msk (0x1U << CAN_F5R1_FB11_Pos) /*!< 0x00000800 */
3737#define CAN_F5R1_FB11 CAN_F5R1_FB11_Msk /*!<Filter bit 11 */
3738#define CAN_F5R1_FB12_Pos (12U)
3739#define CAN_F5R1_FB12_Msk (0x1U << CAN_F5R1_FB12_Pos) /*!< 0x00001000 */
3740#define CAN_F5R1_FB12 CAN_F5R1_FB12_Msk /*!<Filter bit 12 */
3741#define CAN_F5R1_FB13_Pos (13U)