RTEMS 6.1-rc1
stm32h7xx_ll_hrtim.h
Go to the documentation of this file.
1
19/* Define to prevent recursive inclusion -------------------------------------*/
20#ifndef STM32H7xx_LL_HRTIM_H
21#define STM32H7xx_LL_HRTIM_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/* Includes ------------------------------------------------------------------*/
28#include "stm32h7xx.h"
29
34#if defined (HRTIM1)
35
41/* Private types -------------------------------------------------------------*/
42/* Private variables ---------------------------------------------------------*/
47static const uint16_t REG_OFFSET_TAB_TIMER[] =
48{
49 0x00U, /* 0: MASTER */
50 0x80U, /* 1: TIMER A */
51 0x100U, /* 2: TIMER B */
52 0x180U, /* 3: TIMER C */
53 0x200U, /* 4: TIMER D */
54 0x280U /* 5: TIMER E */
55};
56
57static const uint8_t REG_OFFSET_TAB_ADCxR[] =
58{
59 0x00U, /* 0: HRTIM_ADC1R */
60 0x04U, /* 1: HRTIM_ADC2R */
61 0x08U, /* 2: HRTIM_ADC3R */
62 0x0CU, /* 3: HRTIM_ADC4R */
63};
64
65static const uint16_t REG_OFFSET_TAB_SETxR[] =
66{
67 0x00U, /* 0: TA1 */
68 0x08U, /* 1: TA2 */
69 0x80U, /* 2: TB1 */
70 0x88U, /* 3: TB2 */
71 0x100U, /* 4: TC1 */
72 0x108U, /* 5: TC2 */
73 0x180U, /* 6: TD1 */
74 0x188U, /* 7: TD2 */
75 0x200U, /* 8: TE1 */
76 0x208U /* 9: TE2 */
77};
78
79static const uint16_t REG_OFFSET_TAB_OUTxR[] =
80{
81 0x00U, /* 0: TA1 */
82 0x00U, /* 1: TA2 */
83 0x80U, /* 2: TB1 */
84 0x80U, /* 3: TB2 */
85 0x100U, /* 4: TC1 */
86 0x100U, /* 5: TC2 */
87 0x180U, /* 6: TD1 */
88 0x180U, /* 7: TD2 */
89 0x200U, /* 8: TE1 */
90 0x200U /* 9: TE2 */
91};
92
93static const uint8_t REG_OFFSET_TAB_EECR[] =
94{
95 0x00U, /* LL_HRTIM_EVENT_1 */
96 0x00U, /* LL_HRTIM_EVENT_2 */
97 0x00U, /* LL_HRTIM_EVENT_3 */
98 0x00U, /* LL_HRTIM_EVENT_4 */
99 0x00U, /* LL_HRTIM_EVENT_5 */
100 0x04U, /* LL_HRTIM_EVENT_6 */
101 0x04U, /* LL_HRTIM_EVENT_7 */
102 0x04U, /* LL_HRTIM_EVENT_8 */
103 0x04U, /* LL_HRTIM_EVENT_9 */
104 0x04U /* LL_HRTIM_EVENT_10 */
105};
106
107static const uint8_t REG_OFFSET_TAB_FLTINR[] =
108{
109 0x00U, /* LL_HRTIM_FAULT_1 */
110 0x00U, /* LL_HRTIM_FAULT_2 */
111 0x00U, /* LL_HRTIM_FAULT_3 */
112 0x00U, /* LL_HRTIM_FAULT_4 */
113 0x04U /* LL_HRTIM_FAULT_5 */
114};
115
116static const uint32_t REG_MASK_TAB_UPDATETRIG[] =
117{
118 0x20000000U, /* 0: MASTER */
119 0x01FE0000U, /* 1: TIMER A */
120 0x01FE0000U, /* 2: TIMER B */
121 0x01FE0000U, /* 3: TIMER C */
122 0x01FE0000U, /* 4: TIMER D */
123 0x01FE0000U /* 5: TIMER E */
124};
125
126static const uint8_t REG_SHIFT_TAB_UPDATETRIG[] =
127{
128 12U, /* 0: MASTER */
129 0U, /* 1: TIMER A */
130 0U, /* 2: TIMER B */
131 0U, /* 3: TIMER C */
132 0U, /* 4: TIMER D */
133 0U /* 5: TIMER E */
134};
135
136static const uint8_t REG_SHIFT_TAB_EExSRC[] =
137{
138 0U, /* LL_HRTIM_EVENT_1 */
139 6U, /* LL_HRTIM_EVENT_2 */
140 12U, /* LL_HRTIM_EVENT_3 */
141 18U, /* LL_HRTIM_EVENT_4 */
142 24U, /* LL_HRTIM_EVENT_5 */
143 0U, /* LL_HRTIM_EVENT_6 */
144 6U, /* LL_HRTIM_EVENT_7 */
145 12U, /* LL_HRTIM_EVENT_8 */
146 18U, /* LL_HRTIM_EVENT_9 */
147 24U /* LL_HRTIM_EVENT_10 */
148};
149
150static const uint32_t REG_MASK_TAB_UPDATEGATING[] =
151{
152 HRTIM_MCR_BRSTDMA, /* 0: MASTER */
153 HRTIM_TIMCR_UPDGAT, /* 1: TIMER A */
154 HRTIM_TIMCR_UPDGAT, /* 2: TIMER B */
155 HRTIM_TIMCR_UPDGAT, /* 3: TIMER C */
156 HRTIM_TIMCR_UPDGAT, /* 4: TIMER D */
157 HRTIM_TIMCR_UPDGAT /* 5: TIMER E */
158};
159
160static const uint8_t REG_SHIFT_TAB_UPDATEGATING[] =
161{
162 2U, /* 0: MASTER */
163 0U, /* 1: TIMER A */
164 0U, /* 2: TIMER B */
165 0U, /* 3: TIMER C */
166 0U, /* 4: TIMER D */
167 0U /* 5: TIMER E */
168};
169
170static const uint8_t REG_SHIFT_TAB_OUTxR[] =
171{
172 0U, /* 0: TA1 */
173 16U, /* 1: TA2 */
174 0U, /* 2: TB1 */
175 16U, /* 3: TB2 */
176 0U, /* 4: TC1 */
177 16U, /* 5: TC2 */
178 0U, /* 6: TD1 */
179 16U, /* 7: TD2 */
180 0U, /* 8: TE1 */
181 16U /* 9: TE2 */
182};
183
184static const uint8_t REG_SHIFT_TAB_OxSTAT[] =
185{
186 0U, /* 0: TA1 */
187 1U, /* 1: TA2 */
188 0U, /* 2: TB1 */
189 1U, /* 3: TB2 */
190 0U, /* 4: TC1 */
191 1U, /* 5: TC2 */
192 0U, /* 6: TD1 */
193 1U, /* 7: TD2 */
194 0U, /* 8: TE1 */
195 1U /* 9: TE2 */
196};
197
198static const uint8_t REG_SHIFT_TAB_FLTxE[] =
199{
200 0U, /* LL_HRTIM_FAULT_1 */
201 8U, /* LL_HRTIM_FAULT_2 */
202 16U, /* LL_HRTIM_FAULT_3 */
203 24U, /* LL_HRTIM_FAULT_4 */
204 0U /* LL_HRTIM_FAULT_5 */
205};
206
212/* Private constants ---------------------------------------------------------*/
217#define HRTIM_CR1_UDIS_MASK ((uint32_t)(HRTIM_CR1_MUDIS |\
218 HRTIM_CR1_TAUDIS |\
219 HRTIM_CR1_TBUDIS |\
220 HRTIM_CR1_TCUDIS |\
221 HRTIM_CR1_TDUDIS |\
222 HRTIM_CR1_TEUDIS))
223
224#define HRTIM_CR2_SWUPD_MASK ((uint32_t)(HRTIM_CR2_MSWU |\
225 HRTIM_CR2_TASWU |\
226 HRTIM_CR2_TBSWU |\
227 HRTIM_CR2_TCSWU |\
228 HRTIM_CR2_TDSWU |\
229 HRTIM_CR2_TESWU))
230
231#define HRTIM_CR2_SWRST_MASK ((uint32_t)(HRTIM_CR2_MRST |\
232 HRTIM_CR2_TARST |\
233 HRTIM_CR2_TBRST |\
234 HRTIM_CR2_TCRST |\
235 HRTIM_CR2_TDRST |\
236 HRTIM_CR2_TERST))
237
238#define HRTIM_OENR_OEN_MASK ((uint32_t)(HRTIM_OENR_TA1OEN |\
239 HRTIM_OENR_TA2OEN |\
240 HRTIM_OENR_TB1OEN |\
241 HRTIM_OENR_TB2OEN |\
242 HRTIM_OENR_TC1OEN |\
243 HRTIM_OENR_TC2OEN |\
244 HRTIM_OENR_TD1OEN |\
245 HRTIM_OENR_TD2OEN |\
246 HRTIM_OENR_TE1OEN |\
247 HRTIM_OENR_TE2OEN))
248
249#define HRTIM_OENR_ODIS_MASK ((uint32_t)(HRTIM_ODISR_TA1ODIS |\
250 HRTIM_ODISR_TA2ODIS |\
251 HRTIM_ODISR_TB1ODIS |\
252 HRTIM_ODISR_TB2ODIS |\
253 HRTIM_ODISR_TC1ODIS |\
254 HRTIM_ODISR_TC2ODIS |\
255 HRTIM_ODISR_TD1ODIS |\
256 HRTIM_ODISR_TD2ODIS |\
257 HRTIM_ODISR_TE1ODIS |\
258 HRTIM_ODISR_TE2ODIS))
259
260#define HRTIM_OUT_CONFIG_MASK ((uint32_t)(HRTIM_OUTR_POL1 |\
261 HRTIM_OUTR_IDLM1 |\
262 HRTIM_OUTR_IDLES1 |\
263 HRTIM_OUTR_FAULT1 |\
264 HRTIM_OUTR_CHP1 |\
265 HRTIM_OUTR_DIDL1))
266
267#define HRTIM_EE_CONFIG_MASK ((uint32_t)(HRTIM_EECR1_EE1SRC |\
268 HRTIM_EECR1_EE1POL |\
269 HRTIM_EECR1_EE1SNS |\
270 HRTIM_EECR1_EE1FAST))
271
272#define HRTIM_FLT_CONFIG_MASK ((uint32_t)(HRTIM_FLTINR1_FLT1P |\
273 HRTIM_FLTINR1_FLT1SRC))
274
275#define HRTIM_BM_CONFIG_MASK ((uint32_t)( HRTIM_BMCR_BMPRSC |\
276 HRTIM_BMCR_BMCLK |\
277 HRTIM_BMCR_BMOM))
278
284/* Private macros ------------------------------------------------------------*/
285/* Exported types ------------------------------------------------------------*/
286/* Exported constants --------------------------------------------------------*/
297#define LL_HRTIM_ISR_FLT1 HRTIM_ISR_FLT1
298#define LL_HRTIM_ISR_FLT2 HRTIM_ISR_FLT2
299#define LL_HRTIM_ISR_FLT3 HRTIM_ISR_FLT3
300#define LL_HRTIM_ISR_FLT4 HRTIM_ISR_FLT4
301#define LL_HRTIM_ISR_FLT5 HRTIM_ISR_FLT5
302#define LL_HRTIM_ISR_SYSFLT HRTIM_ISR_SYSFLT
303#define LL_HRTIM_ISR_BMPER HRTIM_ISR_BMPER
304
305#define LL_HRTIM_MISR_MCMP1 HRTIM_MISR_MCMP1
306#define LL_HRTIM_MISR_MCMP2 HRTIM_MISR_MCMP2
307#define LL_HRTIM_MISR_MCMP3 HRTIM_MISR_MCMP3
308#define LL_HRTIM_MISR_MCMP4 HRTIM_MISR_MCMP4
309#define LL_HRTIM_MISR_MREP HRTIM_MISR_MREP
310#define LL_HRTIM_MISR_SYNC HRTIM_MISR_SYNC
311#define LL_HRTIM_MISR_MUPD HRTIM_MISR_MUPD
312
313#define LL_HRTIM_TIMISR_CMP1 HRTIM_TIMISR_CMP1
314#define LL_HRTIM_TIMISR_CMP2 HRTIM_TIMISR_CMP2
315#define LL_HRTIM_TIMISR_CMP3 HRTIM_TIMISR_CMP3
316#define LL_HRTIM_TIMISR_CMP4 HRTIM_TIMISR_CMP4
317#define LL_HRTIM_TIMISR_REP HRTIM_TIMISR_REP
318#define LL_HRTIM_TIMISR_UPD HRTIM_TIMISR_UPD
319#define LL_HRTIM_TIMISR_CPT1 HRTIM_TIMISR_CPT1
320#define LL_HRTIM_TIMISR_CPT2 HRTIM_TIMISR_CPT2
321#define LL_HRTIM_TIMISR_SET1 HRTIM_TIMISR_SET1
322#define LL_HRTIM_TIMISR_RST1 HRTIM_TIMISR_RST1
323#define LL_HRTIM_TIMISR_SET2 HRTIM_TIMISR_SET2
324#define LL_HRTIM_TIMISR_RST2 HRTIM_TIMISR_RST2
325#define LL_HRTIM_TIMISR_RST HRTIM_TIMISR_RST
326#define LL_HRTIM_TIMISR_DLYPRT HRTIM_TIMISR_DLYPRT
336#define LL_HRTIM_IER_FLT1IE HRTIM_IER_FLT1IE
337#define LL_HRTIM_IER_FLT2IE HRTIM_IER_FLT2IE
338#define LL_HRTIM_IER_FLT3IE HRTIM_IER_FLT3IE
339#define LL_HRTIM_IER_FLT4IE HRTIM_IER_FLT4IE
340#define LL_HRTIM_IER_FLT5IE HRTIM_IER_FLT5IE
341#define LL_HRTIM_IER_SYSFLTIE HRTIM_IER_SYSFLTIE
342#define LL_HRTIM_IER_BMPERIE HRTIM_IER_BMPERIE
343
344#define LL_HRTIM_MDIER_MCMP1IE HRTIM_MDIER_MCMP1IE
345#define LL_HRTIM_MDIER_MCMP2IE HRTIM_MDIER_MCMP2IE
346#define LL_HRTIM_MDIER_MCMP3IE HRTIM_MDIER_MCMP3IE
347#define LL_HRTIM_MDIER_MCMP4IE HRTIM_MDIER_MCMP4IE
348#define LL_HRTIM_MDIER_MREPIE HRTIM_MDIER_MREPIE
349#define LL_HRTIM_MDIER_SYNCIE HRTIM_MDIER_SYNCIE
350#define LL_HRTIM_MDIER_MUPDIE HRTIM_MDIER_MUPDIE
351
352#define LL_HRTIM_TIMDIER_CMP1IE HRTIM_TIMDIER_CMP1IE
353#define LL_HRTIM_TIMDIER_CMP2IE HRTIM_TIMDIER_CMP2IE
354#define LL_HRTIM_TIMDIER_CMP3IE HRTIM_TIMDIER_CMP3IE
355#define LL_HRTIM_TIMDIER_CMP4IE HRTIM_TIMDIER_CMP4IE
356#define LL_HRTIM_TIMDIER_REPIE HRTIM_TIMDIER_REPIE
357#define LL_HRTIM_TIMDIER_UPDIE HRTIM_TIMDIER_UPDIE
358#define LL_HRTIM_TIMDIER_CPT1IE HRTIM_TIMDIER_CPT1IE
359#define LL_HRTIM_TIMDIER_CPT2IE HRTIM_TIMDIER_CPT2IE
360#define LL_HRTIM_TIMDIER_SET1IE HRTIM_TIMDIER_SET1IE
361#define LL_HRTIM_TIMDIER_RST1IE HRTIM_TIMDIER_RST1IE
362#define LL_HRTIM_TIMDIER_SET2IE HRTIM_TIMDIER_SET2IE
363#define LL_HRTIM_TIMDIER_RST2IE HRTIM_TIMDIER_RST2IE
364#define LL_HRTIM_TIMDIER_RSTIE HRTIM_TIMDIER_RSTIE
365#define LL_HRTIM_TIMDIER_DLYPRTIE HRTIM_TIMDIER_DLYPRTIE
375#define LL_HRTIM_SYNCIN_SRC_NONE 0x00000000U
376#define LL_HRTIM_SYNCIN_SRC_TIM_EVENT (HRTIM_MCR_SYNC_IN_1)
377#define LL_HRTIM_SYNCIN_SRC_EXTERNAL_EVENT (HRTIM_MCR_SYNC_IN_1 | HRTIM_MCR_SYNC_IN_0)
387#define LL_HRTIM_SYNCOUT_SRC_MASTER_START 0x00000000U
388#define LL_HRTIM_SYNCOUT_SRC_MASTER_CMP1 (HRTIM_MCR_SYNC_SRC_0)
389#define LL_HRTIM_SYNCOUT_SRC_TIMA_START (HRTIM_MCR_SYNC_SRC_1)
390#define LL_HRTIM_SYNCOUT_SRC_TIMA_CMP1 (HRTIM_MCR_SYNC_SRC_1 | HRTIM_MCR_SYNC_SRC_0)
400#define LL_HRTIM_SYNCOUT_DISABLED 0x00000000U
401#define LL_HRTIM_SYNCOUT_POSITIVE_PULSE (HRTIM_MCR_SYNC_OUT_1)
402#define LL_HRTIM_SYNCOUT_NEGATIVE_PULSE (HRTIM_MCR_SYNC_OUT_1 | HRTIM_MCR_SYNC_OUT_0)
412#define LL_HRTIM_TIMER_NONE 0U
413#define LL_HRTIM_TIMER_MASTER HRTIM_MCR_MCEN
414#define LL_HRTIM_TIMER_A HRTIM_MCR_TACEN
415#define LL_HRTIM_TIMER_B HRTIM_MCR_TBCEN
416#define LL_HRTIM_TIMER_C HRTIM_MCR_TCCEN
417#define LL_HRTIM_TIMER_D HRTIM_MCR_TDCEN
418#define LL_HRTIM_TIMER_E HRTIM_MCR_TECEN
419#define LL_HRTIM_TIMER_X (HRTIM_MCR_TACEN |\
420 HRTIM_MCR_TBCEN | HRTIM_MCR_TCCEN |\
421 HRTIM_MCR_TDCEN | HRTIM_MCR_TECEN )
422#define LL_HRTIM_TIMER_ALL (LL_HRTIM_TIMER_MASTER | LL_HRTIM_TIMER_X)
423
433#define LL_HRTIM_OUTPUT_TA1 HRTIM_OENR_TA1OEN
434#define LL_HRTIM_OUTPUT_TA2 HRTIM_OENR_TA2OEN
435#define LL_HRTIM_OUTPUT_TB1 HRTIM_OENR_TB1OEN
436#define LL_HRTIM_OUTPUT_TB2 HRTIM_OENR_TB2OEN
437#define LL_HRTIM_OUTPUT_TC1 HRTIM_OENR_TC1OEN
438#define LL_HRTIM_OUTPUT_TC2 HRTIM_OENR_TC2OEN
439#define LL_HRTIM_OUTPUT_TD1 HRTIM_OENR_TD1OEN
440#define LL_HRTIM_OUTPUT_TD2 HRTIM_OENR_TD2OEN
441#define LL_HRTIM_OUTPUT_TE1 HRTIM_OENR_TE1OEN
442#define LL_HRTIM_OUTPUT_TE2 HRTIM_OENR_TE2OEN
452#define LL_HRTIM_COMPAREUNIT_2 HRTIM_TIMCR_DELCMP2
453#define LL_HRTIM_COMPAREUNIT_4 HRTIM_TIMCR_DELCMP4
463#define LL_HRTIM_CAPTUREUNIT_1 0
464#define LL_HRTIM_CAPTUREUNIT_2 1
474#define LL_HRTIM_FAULT_1 HRTIM_FLTR_FLT1EN
475#define LL_HRTIM_FAULT_2 HRTIM_FLTR_FLT2EN
476#define LL_HRTIM_FAULT_3 HRTIM_FLTR_FLT3EN
477#define LL_HRTIM_FAULT_4 HRTIM_FLTR_FLT4EN
478#define LL_HRTIM_FAULT_5 HRTIM_FLTR_FLT5EN
488#define LL_HRTIM_EVENT_1 ((uint32_t)0x00000001U)
489#define LL_HRTIM_EVENT_2 ((uint32_t)0x00000002U)
490#define LL_HRTIM_EVENT_3 ((uint32_t)0x00000004U)
491#define LL_HRTIM_EVENT_4 ((uint32_t)0x00000008U)
492#define LL_HRTIM_EVENT_5 ((uint32_t)0x00000010U)
493#define LL_HRTIM_EVENT_6 ((uint32_t)0x00000020U)
494#define LL_HRTIM_EVENT_7 ((uint32_t)0x00000040U)
495#define LL_HRTIM_EVENT_8 ((uint32_t)0x00000080U)
496#define LL_HRTIM_EVENT_9 ((uint32_t)0x00000100U)
497#define LL_HRTIM_EVENT_10 ((uint32_t)0x00000200U)
507#define LL_HRTIM_OUTPUTSTATE_IDLE ((uint32_t)0x00000001U)
508#define LL_HRTIM_OUTPUTSTATE_RUN ((uint32_t)0x00000002U)
509#define LL_HRTIM_OUTPUTSTATE_FAULT ((uint32_t)0x00000003U)
519#define LL_HRTIM_ADCTRIG_1 ((uint32_t)0x00000000U)
520#define LL_HRTIM_ADCTRIG_2 ((uint32_t)0x00000001U)
521#define LL_HRTIM_ADCTRIG_3 ((uint32_t)0x00000002U)
522#define LL_HRTIM_ADCTRIG_4 ((uint32_t)0x00000003U)
532#define LL_HRTIM_ADCTRIG_UPDATE_MASTER 0x00000000U
533#define LL_HRTIM_ADCTRIG_UPDATE_TIMER_A (HRTIM_CR1_ADC1USRC_0)
534#define LL_HRTIM_ADCTRIG_UPDATE_TIMER_B (HRTIM_CR1_ADC1USRC_1)
535#define LL_HRTIM_ADCTRIG_UPDATE_TIMER_C (HRTIM_CR1_ADC1USRC_1 | HRTIM_CR1_ADC1USRC_0)
536#define LL_HRTIM_ADCTRIG_UPDATE_TIMER_D (HRTIM_CR1_ADC1USRC_2)
537#define LL_HRTIM_ADCTRIG_UPDATE_TIMER_E (HRTIM_CR1_ADC1USRC_2 | HRTIM_CR1_ADC1USRC_0)
547#define LL_HRTIM_ADCTRIG_SRC13_NONE 0x00000000U
548#define LL_HRTIM_ADCTRIG_SRC13_MCMP1 HRTIM_ADC1R_AD1MC1
549#define LL_HRTIM_ADCTRIG_SRC13_MCMP2 HRTIM_ADC1R_AD1MC2
550#define LL_HRTIM_ADCTRIG_SRC13_MCMP3 HRTIM_ADC1R_AD1MC3
551#define LL_HRTIM_ADCTRIG_SRC13_MCMP4 HRTIM_ADC1R_AD1MC4
552#define LL_HRTIM_ADCTRIG_SRC13_MPER HRTIM_ADC1R_AD1MPER
553#define LL_HRTIM_ADCTRIG_SRC13_EEV1 HRTIM_ADC1R_AD1EEV1
554#define LL_HRTIM_ADCTRIG_SRC13_EEV2 HRTIM_ADC1R_AD1EEV2
555#define LL_HRTIM_ADCTRIG_SRC13_EEV3 HRTIM_ADC1R_AD1EEV3
556#define LL_HRTIM_ADCTRIG_SRC13_EEV4 HRTIM_ADC1R_AD1EEV4
557#define LL_HRTIM_ADCTRIG_SRC13_EEV5 HRTIM_ADC1R_AD1EEV5
558#define LL_HRTIM_ADCTRIG_SRC13_TIMACMP2 HRTIM_ADC1R_AD1TAC2
559#define LL_HRTIM_ADCTRIG_SRC13_TIMACMP3 HRTIM_ADC1R_AD1TAC3
560#define LL_HRTIM_ADCTRIG_SRC13_TIMACMP4 HRTIM_ADC1R_AD1TAC4
561#define LL_HRTIM_ADCTRIG_SRC13_TIMAPER HRTIM_ADC1R_AD1TAPER
562#define LL_HRTIM_ADCTRIG_SRC13_TIMARST HRTIM_ADC1R_AD1TARST
563#define LL_HRTIM_ADCTRIG_SRC13_TIMBCMP2 HRTIM_ADC1R_AD1TBC2
564#define LL_HRTIM_ADCTRIG_SRC13_TIMBCMP3 HRTIM_ADC1R_AD1TBC3
565#define LL_HRTIM_ADCTRIG_SRC13_TIMBCMP4 HRTIM_ADC1R_AD1TBC4
566#define LL_HRTIM_ADCTRIG_SRC13_TIMBPER HRTIM_ADC1R_AD1TBPER
567#define LL_HRTIM_ADCTRIG_SRC13_TIMBRST HRTIM_ADC1R_AD1TBRST
568#define LL_HRTIM_ADCTRIG_SRC13_TIMCCMP2 HRTIM_ADC1R_AD1TCC2
569#define LL_HRTIM_ADCTRIG_SRC13_TIMCCMP3 HRTIM_ADC1R_AD1TCC3
570#define LL_HRTIM_ADCTRIG_SRC13_TIMCCMP4 HRTIM_ADC1R_AD1TCC4
571#define LL_HRTIM_ADCTRIG_SRC13_TIMCPER HRTIM_ADC1R_AD1TCPER
572#define LL_HRTIM_ADCTRIG_SRC13_TIMDCMP2 HRTIM_ADC1R_AD1TDC2
573#define LL_HRTIM_ADCTRIG_SRC13_TIMDCMP3 HRTIM_ADC1R_AD1TDC3
574#define LL_HRTIM_ADCTRIG_SRC13_TIMDCMP4 HRTIM_ADC1R_AD1TDC4
575#define LL_HRTIM_ADCTRIG_SRC13_TIMDPER HRTIM_ADC1R_AD1TDPER
576#define LL_HRTIM_ADCTRIG_SRC13_TIMECMP2 HRTIM_ADC1R_AD1TEC2
577#define LL_HRTIM_ADCTRIG_SRC13_TIMECMP3 HRTIM_ADC1R_AD1TEC3
578#define LL_HRTIM_ADCTRIG_SRC13_TIMECMP4 HRTIM_ADC1R_AD1TEC4
579#define LL_HRTIM_ADCTRIG_SRC13_TIMEPER HRTIM_ADC1R_AD1TEPER
589#define LL_HRTIM_ADCTRIG_SRC24_NONE 0x00000000U
590#define LL_HRTIM_ADCTRIG_SRC24_MCMP1 HRTIM_ADC2R_AD2MC1
591#define LL_HRTIM_ADCTRIG_SRC24_MCMP2 HRTIM_ADC2R_AD2MC2
592#define LL_HRTIM_ADCTRIG_SRC24_MCMP3 HRTIM_ADC2R_AD2MC3
593#define LL_HRTIM_ADCTRIG_SRC24_MCMP4 HRTIM_ADC2R_AD2MC4
594#define LL_HRTIM_ADCTRIG_SRC24_MPER HRTIM_ADC2R_AD2MPER
595#define LL_HRTIM_ADCTRIG_SRC24_EEV6 HRTIM_ADC2R_AD2EEV6
596#define LL_HRTIM_ADCTRIG_SRC24_EEV7 HRTIM_ADC2R_AD2EEV7
597#define LL_HRTIM_ADCTRIG_SRC24_EEV8 HRTIM_ADC2R_AD2EEV8
598#define LL_HRTIM_ADCTRIG_SRC24_EEV9 HRTIM_ADC2R_AD2EEV9
599#define LL_HRTIM_ADCTRIG_SRC24_EEV10 HRTIM_ADC2R_AD2EEV10
600#define LL_HRTIM_ADCTRIG_SRC24_TIMACMP2 HRTIM_ADC2R_AD2TAC2
601#define LL_HRTIM_ADCTRIG_SRC24_TIMACMP3 HRTIM_ADC2R_AD2TAC3
602#define LL_HRTIM_ADCTRIG_SRC24_TIMACMP4 HRTIM_ADC2R_AD2TAC4
603#define LL_HRTIM_ADCTRIG_SRC24_TIMAPER HRTIM_ADC2R_AD2TAPER
604#define LL_HRTIM_ADCTRIG_SRC24_TIMBCMP2 HRTIM_ADC2R_AD2TBC2
605#define LL_HRTIM_ADCTRIG_SRC24_TIMBCMP3 HRTIM_ADC2R_AD2TBC3
606#define LL_HRTIM_ADCTRIG_SRC24_TIMBCMP4 HRTIM_ADC2R_AD2TBC4
607#define LL_HRTIM_ADCTRIG_SRC24_TIMBPER HRTIM_ADC2R_AD2TBPER
608#define LL_HRTIM_ADCTRIG_SRC24_TIMCCMP2 HRTIM_ADC2R_AD2TCC2
609#define LL_HRTIM_ADCTRIG_SRC24_TIMCCMP3 HRTIM_ADC2R_AD2TCC3
610#define LL_HRTIM_ADCTRIG_SRC24_TIMCCMP4 HRTIM_ADC2R_AD2TCC4
611#define LL_HRTIM_ADCTRIG_SRC24_TIMCPER HRTIM_ADC2R_AD2TCPER
612#define LL_HRTIM_ADCTRIG_SRC24_TIMCRST HRTIM_ADC2R_AD2TCRST
613#define LL_HRTIM_ADCTRIG_SRC24_TIMDCMP2 HRTIM_ADC2R_AD2TDC2
614#define LL_HRTIM_ADCTRIG_SRC24_TIMDCMP3 HRTIM_ADC2R_AD2TDC3
615#define LL_HRTIM_ADCTRIG_SRC24_TIMDCMP4 HRTIM_ADC2R_AD2TDC4
616#define LL_HRTIM_ADCTRIG_SRC24_TIMDPER HRTIM_ADC2R_AD2TDPER
617#define LL_HRTIM_ADCTRIG_SRC24_TIMDRST HRTIM_ADC2R_AD2TDRST
618#define LL_HRTIM_ADCTRIG_SRC24_TIMECMP2 HRTIM_ADC2R_AD2TEC2
619#define LL_HRTIM_ADCTRIG_SRC24_TIMECMP3 HRTIM_ADC2R_AD2TEC3
620#define LL_HRTIM_ADCTRIG_SRC24_TIMECMP4 HRTIM_ADC2R_AD2TEC4
621#define LL_HRTIM_ADCTRIG_SRC24_TIMERST HRTIM_ADC2R_AD2TERST
631#define LL_HRTIM_PRESCALERRATIO_DIV1 ((uint32_t)0x00000005U)
632#define LL_HRTIM_PRESCALERRATIO_DIV2 ((uint32_t)0x00000006U)
633#define LL_HRTIM_PRESCALERRATIO_DIV4 ((uint32_t)0x00000007U)
643#define LL_HRTIM_MODE_CONTINUOUS ((uint32_t)0x00000008U)
644#define LL_HRTIM_MODE_SINGLESHOT 0x00000000U
645#define LL_HRTIM_MODE_RETRIGGERABLE ((uint32_t)0x00000010U)
655#define LL_HRTIM_DACTRIG_NONE 0x00000000U
656#define LL_HRTIM_DACTRIG_DACTRIGOUT_1 (HRTIM_MCR_DACSYNC_0)
657#define LL_HRTIM_DACTRIG_DACTRIGOUT_2 (HRTIM_MCR_DACSYNC_1)
658#define LL_HRTIM_DACTRIG_DACTRIGOUT_3 (HRTIM_MCR_DACSYNC_1 | HRTIM_MCR_DACSYNC_0)
668#define LL_HRTIM_UPDATETRIG_NONE 0x00000000U
669#define LL_HRTIM_UPDATETRIG_MASTER HRTIM_TIMCR_MSTU
670#define LL_HRTIM_UPDATETRIG_TIMER_A HRTIM_TIMCR_TAU
671#define LL_HRTIM_UPDATETRIG_TIMER_B HRTIM_TIMCR_TBU
672#define LL_HRTIM_UPDATETRIG_TIMER_C HRTIM_TIMCR_TCU
673#define LL_HRTIM_UPDATETRIG_TIMER_D HRTIM_TIMCR_TDU
674#define LL_HRTIM_UPDATETRIG_TIMER_E HRTIM_TIMCR_TEU
675#define LL_HRTIM_UPDATETRIG_REPETITION HRTIM_TIMCR_TREPU
676#define LL_HRTIM_UPDATETRIG_RESET HRTIM_TIMCR_TRSTU
686#define LL_HRTIM_UPDATEGATING_INDEPENDENT 0x00000000U
687#define LL_HRTIM_UPDATEGATING_DMABURST (HRTIM_TIMCR_UPDGAT_0)
688#define LL_HRTIM_UPDATEGATING_DMABURST_UPDATE (HRTIM_TIMCR_UPDGAT_1)
689#define LL_HRTIM_UPDATEGATING_UPDEN1 (HRTIM_TIMCR_UPDGAT_1 | HRTIM_TIMCR_UPDGAT_0)
690#define LL_HRTIM_UPDATEGATING_UPDEN2 (HRTIM_TIMCR_UPDGAT_2)
691#define LL_HRTIM_UPDATEGATING_UPDEN3 (HRTIM_TIMCR_UPDGAT_2 | HRTIM_TIMCR_UPDGAT_0)
692#define LL_HRTIM_UPDATEGATING_UPDEN1_UPDATE (HRTIM_TIMCR_UPDGAT_2 | HRTIM_TIMCR_UPDGAT_1)
693#define LL_HRTIM_UPDATEGATING_UPDEN2_UPDATE (HRTIM_TIMCR_UPDGAT_2 | HRTIM_TIMCR_UPDGAT_1 | HRTIM_TIMCR_UPDGAT_0)
694#define LL_HRTIM_UPDATEGATING_UPDEN3_UPDATE (HRTIM_TIMCR_UPDGAT_3)
704#define LL_HRTIM_COMPAREMODE_REGULAR 0x00000000U
705#define LL_HRTIM_COMPAREMODE_DELAY_NOTIMEOUT (HRTIM_TIMCR_DELCMP2_0)
706#define LL_HRTIM_COMPAREMODE_DELAY_CMP1 (HRTIM_TIMCR_DELCMP2_1)
707#define LL_HRTIM_COMPAREMODE_DELAY_CMP3 (HRTIM_TIMCR_DELCMP2_1 | HRTIM_TIMCR_DELCMP2_0)
717#define LL_HRTIM_RESETTRIG_NONE 0x00000000U
718#define LL_HRTIM_RESETTRIG_UPDATE HRTIM_RSTR_UPDATE
719#define LL_HRTIM_RESETTRIG_CMP2 HRTIM_RSTR_CMP2
720#define LL_HRTIM_RESETTRIG_CMP4 HRTIM_RSTR_CMP4
721#define LL_HRTIM_RESETTRIG_MASTER_PER HRTIM_RSTR_MSTPER
722#define LL_HRTIM_RESETTRIG_MASTER_CMP1 HRTIM_RSTR_MSTCMP1
723#define LL_HRTIM_RESETTRIG_MASTER_CMP2 HRTIM_RSTR_MSTCMP2
724#define LL_HRTIM_RESETTRIG_MASTER_CMP3 HRTIM_RSTR_MSTCMP3
725#define LL_HRTIM_RESETTRIG_MASTER_CMP4 HRTIM_RSTR_MSTCMP4
726#define LL_HRTIM_RESETTRIG_EEV_1 HRTIM_RSTR_EXTEVNT1
727#define LL_HRTIM_RESETTRIG_EEV_2 HRTIM_RSTR_EXTEVNT2
728#define LL_HRTIM_RESETTRIG_EEV_3 HRTIM_RSTR_EXTEVNT3
729#define LL_HRTIM_RESETTRIG_EEV_4 HRTIM_RSTR_EXTEVNT4
730#define LL_HRTIM_RESETTRIG_EEV_5 HRTIM_RSTR_EXTEVNT5
731#define LL_HRTIM_RESETTRIG_EEV_6 HRTIM_RSTR_EXTEVNT6
732#define LL_HRTIM_RESETTRIG_EEV_7 HRTIM_RSTR_EXTEVNT7
733#define LL_HRTIM_RESETTRIG_EEV_8 HRTIM_RSTR_EXTEVNT8
734#define LL_HRTIM_RESETTRIG_EEV_9 HRTIM_RSTR_EXTEVNT9
735#define LL_HRTIM_RESETTRIG_EEV_10 HRTIM_RSTR_EXTEVNT10
736#define LL_HRTIM_RESETTRIG_OTHER1_CMP1 HRTIM_RSTR_TIMBCMP1
737#define LL_HRTIM_RESETTRIG_OTHER1_CMP2 HRTIM_RSTR_TIMBCMP2
738#define LL_HRTIM_RESETTRIG_OTHER1_CMP4 HRTIM_RSTR_TIMBCMP4
739#define LL_HRTIM_RESETTRIG_OTHER2_CMP1 HRTIM_RSTR_TIMCCMP1
740#define LL_HRTIM_RESETTRIG_OTHER2_CMP2 HRTIM_RSTR_TIMCCMP2
741#define LL_HRTIM_RESETTRIG_OTHER2_CMP4 HRTIM_RSTR_TIMCCMP4
742#define LL_HRTIM_RESETTRIG_OTHER3_CMP1 HRTIM_RSTR_TIMDCMP1
743#define LL_HRTIM_RESETTRIG_OTHER3_CMP2 HRTIM_RSTR_TIMDCMP2
744#define LL_HRTIM_RESETTRIG_OTHER3_CMP4 HRTIM_RSTR_TIMDCMP4
745#define LL_HRTIM_RESETTRIG_OTHER4_CMP1 HRTIM_RSTR_TIMECMP1
746#define LL_HRTIM_RESETTRIG_OTHER4_CMP2 HRTIM_RSTR_TIMECMP2
747#define LL_HRTIM_RESETTRIG_OTHER4_CMP4 HRTIM_RSTR_TIMECMP4
757#define LL_HRTIM_CAPTURETRIG_NONE ((uint32_t)0x00000000U)
758#define LL_HRTIM_CAPTURETRIG_UPDATE HRTIM_CPT1CR_UPDCPT
759#define LL_HRTIM_CAPTURETRIG_EEV_1 HRTIM_CPT1CR_EXEV1CPT
760#define LL_HRTIM_CAPTURETRIG_EEV_2 HRTIM_CPT1CR_EXEV2CPT
761#define LL_HRTIM_CAPTURETRIG_EEV_3 HRTIM_CPT1CR_EXEV3CPT
762#define LL_HRTIM_CAPTURETRIG_EEV_4 HRTIM_CPT1CR_EXEV4CPT
763#define LL_HRTIM_CAPTURETRIG_EEV_5 HRTIM_CPT1CR_EXEV5CPT
764#define LL_HRTIM_CAPTURETRIG_EEV_6 HRTIM_CPT1CR_EXEV6CPT
765#define LL_HRTIM_CAPTURETRIG_EEV_7 HRTIM_CPT1CR_EXEV7CPT
766#define LL_HRTIM_CAPTURETRIG_EEV_8 HRTIM_CPT1CR_EXEV8CPT
767#define LL_HRTIM_CAPTURETRIG_EEV_9 HRTIM_CPT1CR_EXEV9CPT
768#define LL_HRTIM_CAPTURETRIG_EEV_10 HRTIM_CPT1CR_EXEV10CPT
769#define LL_HRTIM_CAPTURETRIG_TA1_SET HRTIM_CPT1CR_TA1SET
770#define LL_HRTIM_CAPTURETRIG_TA1_RESET HRTIM_CPT1CR_TA1RST
771#define LL_HRTIM_CAPTURETRIG_TIMA_CMP1 HRTIM_CPT1CR_TIMACMP1
772#define LL_HRTIM_CAPTURETRIG_TIMA_CMP2 HRTIM_CPT1CR_TIMACMP2
773#define LL_HRTIM_CAPTURETRIG_TB1_SET HRTIM_CPT1CR_TB1SET
774#define LL_HRTIM_CAPTURETRIG_TB1_RESET HRTIM_CPT1CR_TB1RST
775#define LL_HRTIM_CAPTURETRIG_TIMB_CMP1 HRTIM_CPT1CR_TIMBCMP1
776#define LL_HRTIM_CAPTURETRIG_TIMB_CMP2 HRTIM_CPT1CR_TIMBCMP2
777#define LL_HRTIM_CAPTURETRIG_TC1_SET HRTIM_CPT1CR_TC1SET
778#define LL_HRTIM_CAPTURETRIG_TC1_RESET HRTIM_CPT1CR_TC1RST
779#define LL_HRTIM_CAPTURETRIG_TIMC_CMP1 HRTIM_CPT1CR_TIMCCMP1
780#define LL_HRTIM_CAPTURETRIG_TIMC_CMP2 HRTIM_CPT1CR_TIMCCMP2
781#define LL_HRTIM_CAPTURETRIG_TD1_SET HRTIM_CPT1CR_TD1SET
782#define LL_HRTIM_CAPTURETRIG_TD1_RESET HRTIM_CPT1CR_TD1RST
783#define LL_HRTIM_CAPTURETRIG_TIMD_CMP1 HRTIM_CPT1CR_TIMDCMP1
784#define LL_HRTIM_CAPTURETRIG_TIMD_CMP2 HRTIM_CPT1CR_TIMDCMP2
785#define LL_HRTIM_CAPTURETRIG_TE1_SET HRTIM_CPT1CR_TE1SET
786#define LL_HRTIM_CAPTURETRIG_TE1_RESET HRTIM_CPT1CR_TE1RST
787#define LL_HRTIM_CAPTURETRIG_TIME_CMP1 HRTIM_CPT1CR_TIMECMP1
788#define LL_HRTIM_CAPTURETRIG_TIME_CMP2 HRTIM_CPT1CR_TIMECMP2
798#define LL_HRTIM_DLYPRT_DELAYOUT1_EEV6 0x00000000U
799#define LL_HRTIM_DLYPRT_DELAYOUT2_EEV6 (HRTIM_OUTR_DLYPRT_0)
800#define LL_HRTIM_DLYPRT_DELAYBOTH_EEV6 (HRTIM_OUTR_DLYPRT_1)
801#define LL_HRTIM_DLYPRT_BALANCED_EEV6 (HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRT_0)
802#define LL_HRTIM_DLYPRT_DELAYOUT1_EEV7 (HRTIM_OUTR_DLYPRT_2)
803#define LL_HRTIM_DLYPRT_DELAYOUT2_EEV7 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_0)
804#define LL_HRTIM_DLYPRT_DELAYBOTH_EEV7 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_1)
805#define LL_HRTIM_DLYPRT_BALANCED_EEV7 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRT_0)
807#define LL_HRTIM_DLYPRT_DELAYOUT1_EEV8 0x00000000U
808#define LL_HRTIM_DLYPRT_DELAYOUT2_EEV8 (HRTIM_OUTR_DLYPRT_0)
809#define LL_HRTIM_DLYPRT_DELAYBOTH_EEV8 (HRTIM_OUTR_DLYPRT_1)
810#define LL_HRTIM_DLYPRT_BALANCED_EEV8 (HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRT_0)
811#define LL_HRTIM_DLYPRT_DELAYOUT1_EEV9 (HRTIM_OUTR_DLYPRT_2)
812#define LL_HRTIM_DLYPRT_DELAYOUT2_EEV9 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_0)
813#define LL_HRTIM_DLYPRT_DELAYBOTH_EEV9 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_1)
814#define LL_HRTIM_DLYPRT_BALANCED_EEV9 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRT_0)
824#define LL_HRTIM_BURSTMODE_MAINTAINCLOCK (uint32_t)0x000000
825#define LL_HRTIM_BURSTMODE_RESETCOUNTER (HRTIM_BMCR_MTBM)
835#define LL_HRTIM_BURSTDMA_NONE 0x00000000U
836#define LL_HRTIM_BURSTDMA_MCR (HRTIM_BDMUPR_MCR)
837#define LL_HRTIM_BURSTDMA_MICR (HRTIM_BDMUPR_MICR)
838#define LL_HRTIM_BURSTDMA_MDIER (HRTIM_BDMUPR_MDIER)
839#define LL_HRTIM_BURSTDMA_MCNT (HRTIM_BDMUPR_MCNT)
840#define LL_HRTIM_BURSTDMA_MPER (HRTIM_BDMUPR_MPER)
841#define LL_HRTIM_BURSTDMA_MREP (HRTIM_BDMUPR_MREP)
842#define LL_HRTIM_BURSTDMA_MCMP1 (HRTIM_BDMUPR_MCMP1)
843#define LL_HRTIM_BURSTDMA_MCMP2 (HRTIM_BDMUPR_MCMP2)
844#define LL_HRTIM_BURSTDMA_MCMP3 (HRTIM_BDMUPR_MCMP3)
845#define LL_HRTIM_BURSTDMA_MCMP4 (HRTIM_BDMUPR_MCMP4)
846#define LL_HRTIM_BURSTDMA_TIMMCR (HRTIM_BDTUPR_TIMCR)
847#define LL_HRTIM_BURSTDMA_TIMICR (HRTIM_BDTUPR_TIMICR)
848#define LL_HRTIM_BURSTDMA_TIMDIER (HRTIM_BDTUPR_TIMDIER)
849#define LL_HRTIM_BURSTDMA_TIMCNT (HRTIM_BDTUPR_TIMCNT)
850#define LL_HRTIM_BURSTDMA_TIMPER (HRTIM_BDTUPR_TIMPER)
851#define LL_HRTIM_BURSTDMA_TIMREP (HRTIM_BDTUPR_TIMREP)
852#define LL_HRTIM_BURSTDMA_TIMCMP1 (HRTIM_BDTUPR_TIMCMP1)
853#define LL_HRTIM_BURSTDMA_TIMCMP2 (HRTIM_BDTUPR_TIMCMP2)
854#define LL_HRTIM_BURSTDMA_TIMCMP3 (HRTIM_BDTUPR_TIMCMP3)
855#define LL_HRTIM_BURSTDMA_TIMCMP4 (HRTIM_BDTUPR_TIMCMP4)
856#define LL_HRTIM_BURSTDMA_TIMDTR (HRTIM_BDTUPR_TIMDTR)
857#define LL_HRTIM_BURSTDMA_TIMSET1R (HRTIM_BDTUPR_TIMSET1R)
858#define LL_HRTIM_BURSTDMA_TIMRST1R (HRTIM_BDTUPR_TIMRST1R)
859#define LL_HRTIM_BURSTDMA_TIMSET2R (HRTIM_BDTUPR_TIMSET2R)
860#define LL_HRTIM_BURSTDMA_TIMRST2R (HRTIM_BDTUPR_TIMRST2R)
861#define LL_HRTIM_BURSTDMA_TIMEEFR1 (HRTIM_BDTUPR_TIMEEFR1)
862#define LL_HRTIM_BURSTDMA_TIMEEFR2 (HRTIM_BDTUPR_TIMEEFR2)
863#define LL_HRTIM_BURSTDMA_TIMRSTR (HRTIM_BDTUPR_TIMRSTR)
864#define LL_HRTIM_BURSTDMA_TIMCHPR (HRTIM_BDTUPR_TIMCHPR)
865#define LL_HRTIM_BURSTDMA_TIMOUTR (HRTIM_BDTUPR_TIMOUTR)
866#define LL_HRTIM_BURSTDMA_TIMFLTR (HRTIM_BDTUPR_TIMFLTR)
876#define LL_HRTIM_CPPSTAT_OUTPUT1 ((uint32_t) 0x00000000U)
877#define LL_HRTIM_CPPSTAT_OUTPUT2 (HRTIM_TIMISR_CPPSTAT)
887#define LL_HRTIM_IPPSTAT_OUTPUT1 ((uint32_t) 0x00000000U)
888#define LL_HRTIM_IPPSTAT_OUTPUT2 (HRTIM_TIMISR_IPPSTAT)
898#define LL_HRTIM_EEFLTR_NONE (0x00000000U)
899#define LL_HRTIM_EEFLTR_BLANKINGCMP1 (HRTIM_EEFR1_EE1FLTR_0)
900#define LL_HRTIM_EEFLTR_BLANKINGCMP2 (HRTIM_EEFR1_EE1FLTR_1)
901#define LL_HRTIM_EEFLTR_BLANKINGCMP3 (HRTIM_EEFR1_EE1FLTR_1 | HRTIM_EEFR1_EE1FLTR_0)
902#define LL_HRTIM_EEFLTR_BLANKINGCMP4 (HRTIM_EEFR1_EE1FLTR_2)
903#define LL_HRTIM_EEFLTR_BLANKINGFLTR1 (HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_0)
904#define LL_HRTIM_EEFLTR_BLANKINGFLTR2 (HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_1)
905#define LL_HRTIM_EEFLTR_BLANKINGFLTR3 (HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_1 | HRTIM_EEFR1_EE1FLTR_0)
906#define LL_HRTIM_EEFLTR_BLANKINGFLTR4 (HRTIM_EEFR1_EE1FLTR_3)
907#define LL_HRTIM_EEFLTR_BLANKINGFLTR5 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_0)
908#define LL_HRTIM_EEFLTR_BLANKINGFLTR6 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_1)
909#define LL_HRTIM_EEFLTR_BLANKINGFLTR7 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_1 | HRTIM_EEFR1_EE1FLTR_0)
910#define LL_HRTIM_EEFLTR_BLANKINGFLTR8 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_2)
911#define LL_HRTIM_EEFLTR_WINDOWINGCMP2 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_0)
912#define LL_HRTIM_EEFLTR_WINDOWINGCMP3 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_1)
913#define LL_HRTIM_EEFLTR_WINDOWINGTIM (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_1 | HRTIM_EEFR1_EE1FLTR_0)
923#define LL_HRTIM_EELATCH_DISABLED 0x00000000U
924#define LL_HRTIM_EELATCH_ENABLED HRTIM_EEFR1_EE1LTCH
934#define LL_HRTIM_DT_PRESCALER_MUL8 0x00000000U
935#define LL_HRTIM_DT_PRESCALER_MUL4 (HRTIM_DTR_DTPRSC_0)
936#define LL_HRTIM_DT_PRESCALER_MUL2 (HRTIM_DTR_DTPRSC_1)
937#define LL_HRTIM_DT_PRESCALER_DIV1 (HRTIM_DTR_DTPRSC_1 | HRTIM_DTR_DTPRSC_0)
938#define LL_HRTIM_DT_PRESCALER_DIV2 (HRTIM_DTR_DTPRSC_2)
939#define LL_HRTIM_DT_PRESCALER_DIV4 (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_0)
940#define LL_HRTIM_DT_PRESCALER_DIV8 (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_1)
941#define LL_HRTIM_DT_PRESCALER_DIV16 (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_1 | HRTIM_DTR_DTPRSC_0)
951#define LL_HRTIM_DT_RISING_POSITIVE 0x00000000U
952#define LL_HRTIM_DT_RISING_NEGATIVE (HRTIM_DTR_SDTR)
962#define LL_HRTIM_DT_FALLING_POSITIVE 0x00000000U
963#define LL_HRTIM_DT_FALLING_NEGATIVE (HRTIM_DTR_SDTF)
973#define LL_HRTIM_CHP_PRESCALER_DIV16 0x00000000U
974#define LL_HRTIM_CHP_PRESCALER_DIV32 (HRTIM_CHPR_CARFRQ_0)
975#define LL_HRTIM_CHP_PRESCALER_DIV48 (HRTIM_CHPR_CARFRQ_1)
976#define LL_HRTIM_CHP_PRESCALER_DIV64 (HRTIM_CHPR_CARFRQ_1 | HRTIM_CHPR_CARFRQ_0)
977#define LL_HRTIM_CHP_PRESCALER_DIV80 (HRTIM_CHPR_CARFRQ_2)
978#define LL_HRTIM_CHP_PRESCALER_DIV96 (HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_0)
979#define LL_HRTIM_CHP_PRESCALER_DIV112 (HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_1)
980#define LL_HRTIM_CHP_PRESCALER_DIV128 (HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_1 | HRTIM_CHPR_CARFRQ_0)
981#define LL_HRTIM_CHP_PRESCALER_DIV144 (HRTIM_CHPR_CARFRQ_3)
982#define LL_HRTIM_CHP_PRESCALER_DIV160 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_0)
983#define LL_HRTIM_CHP_PRESCALER_DIV176 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_1)
984#define LL_HRTIM_CHP_PRESCALER_DIV192 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_1 | HRTIM_CHPR_CARFRQ_0)
985#define LL_HRTIM_CHP_PRESCALER_DIV208 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_2)
986#define LL_HRTIM_CHP_PRESCALER_DIV224 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_0)
987#define LL_HRTIM_CHP_PRESCALER_DIV240 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_1)
988#define LL_HRTIM_CHP_PRESCALER_DIV256 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_1 | HRTIM_CHPR_CARFRQ_0)
998#define LL_HRTIM_CHP_DUTYCYCLE_0 0x00000000U
999#define LL_HRTIM_CHP_DUTYCYCLE_125 (HRTIM_CHPR_CARDTY_0)
1000#define LL_HRTIM_CHP_DUTYCYCLE_250 (HRTIM_CHPR_CARDTY_1)
1001#define LL_HRTIM_CHP_DUTYCYCLE_375 (HRTIM_CHPR_CARDTY_1 | HRTIM_CHPR_CARDTY_0)
1002#define LL_HRTIM_CHP_DUTYCYCLE_500 (HRTIM_CHPR_CARDTY_2)
1003#define LL_HRTIM_CHP_DUTYCYCLE_625 (HRTIM_CHPR_CARDTY_2 | HRTIM_CHPR_CARDTY_0)
1004#define LL_HRTIM_CHP_DUTYCYCLE_750 (HRTIM_CHPR_CARDTY_2 | HRTIM_CHPR_CARDTY_1)
1005#define LL_HRTIM_CHP_DUTYCYCLE_875 (HRTIM_CHPR_CARDTY_2 | HRTIM_CHPR_CARDTY_1 | HRTIM_CHPR_CARDTY_0)
1015#define LL_HRTIM_CHP_PULSEWIDTH_16 0x00000000U
1016#define LL_HRTIM_CHP_PULSEWIDTH_32 (HRTIM_CHPR_STRPW_0)
1017#define LL_HRTIM_CHP_PULSEWIDTH_48 (HRTIM_CHPR_STRPW_1)
1018#define LL_HRTIM_CHP_PULSEWIDTH_64 (HRTIM_CHPR_STRPW_1 | HRTIM_CHPR_STRPW_0)
1019#define LL_HRTIM_CHP_PULSEWIDTH_80 (HRTIM_CHPR_STRPW_2)
1020#define LL_HRTIM_CHP_PULSEWIDTH_96 (HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_0)
1021#define LL_HRTIM_CHP_PULSEWIDTH_112 (HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_1)
1022#define LL_HRTIM_CHP_PULSEWIDTH_128 (HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_1 | HRTIM_CHPR_STRPW_0)
1023#define LL_HRTIM_CHP_PULSEWIDTH_144 (HRTIM_CHPR_STRPW_3)
1024#define LL_HRTIM_CHP_PULSEWIDTH_160 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_0)
1025#define LL_HRTIM_CHP_PULSEWIDTH_176 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_1)
1026#define LL_HRTIM_CHP_PULSEWIDTH_192 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_1 | HRTIM_CHPR_STRPW_0)
1027#define LL_HRTIM_CHP_PULSEWIDTH_208 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_2)
1028#define LL_HRTIM_CHP_PULSEWIDTH_224 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_0)
1029#define LL_HRTIM_CHP_PULSEWIDTH_240 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_1)
1030#define LL_HRTIM_CHP_PULSEWIDTH_256 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_1 | HRTIM_CHPR_STRPW_0)
1040#define LL_HRTIM_CROSSBAR_NONE 0x00000000U
1041#define LL_HRTIM_CROSSBAR_RESYNC (HRTIM_SET1R_RESYNC)
1042#define LL_HRTIM_CROSSBAR_TIMPER (HRTIM_SET1R_PER)
1043#define LL_HRTIM_CROSSBAR_TIMCMP1 (HRTIM_SET1R_CMP1)
1044#define LL_HRTIM_CROSSBAR_TIMCMP2 (HRTIM_SET1R_CMP2)
1045#define LL_HRTIM_CROSSBAR_TIMCMP3 (HRTIM_SET1R_CMP3)
1046#define LL_HRTIM_CROSSBAR_TIMCMP4 (HRTIM_SET1R_CMP4)
1047#define LL_HRTIM_CROSSBAR_MASTERPER (HRTIM_SET1R_MSTPER)
1048#define LL_HRTIM_CROSSBAR_MASTERCMP1 (HRTIM_SET1R_MSTCMP1)
1049#define LL_HRTIM_CROSSBAR_MASTERCMP2 (HRTIM_SET1R_MSTCMP2)
1050#define LL_HRTIM_CROSSBAR_MASTERCMP3 (HRTIM_SET1R_MSTCMP3)
1051#define LL_HRTIM_CROSSBAR_MASTERCMP4 (HRTIM_SET1R_MSTCMP4)
1052#define LL_HRTIM_CROSSBAR_TIMEV_1 (HRTIM_SET1R_TIMEVNT1)
1053#define LL_HRTIM_CROSSBAR_TIMEV_2 (HRTIM_SET1R_TIMEVNT2)
1054#define LL_HRTIM_CROSSBAR_TIMEV_3 (HRTIM_SET1R_TIMEVNT3)
1055#define LL_HRTIM_CROSSBAR_TIMEV_4 (HRTIM_SET1R_TIMEVNT4)
1056#define LL_HRTIM_CROSSBAR_TIMEV_5 (HRTIM_SET1R_TIMEVNT5)
1057#define LL_HRTIM_CROSSBAR_TIMEV_6 (HRTIM_SET1R_TIMEVNT6)
1058#define LL_HRTIM_CROSSBAR_TIMEV_7 (HRTIM_SET1R_TIMEVNT7)
1059#define LL_HRTIM_CROSSBAR_TIMEV_8 (HRTIM_SET1R_TIMEVNT8)
1060#define LL_HRTIM_CROSSBAR_TIMEV_9 (HRTIM_SET1R_TIMEVNT9)
1061#define LL_HRTIM_CROSSBAR_EEV_1 (HRTIM_SET1R_EXTVNT1)
1062#define LL_HRTIM_CROSSBAR_EEV_2 (HRTIM_SET1R_EXTVNT2)
1063#define LL_HRTIM_CROSSBAR_EEV_3 (HRTIM_SET1R_EXTVNT3)
1064#define LL_HRTIM_CROSSBAR_EEV_4 (HRTIM_SET1R_EXTVNT4)
1065#define LL_HRTIM_CROSSBAR_EEV_5 (HRTIM_SET1R_EXTVNT5)
1066#define LL_HRTIM_CROSSBAR_EEV_6 (HRTIM_SET1R_EXTVNT6)
1067#define LL_HRTIM_CROSSBAR_EEV_7 (HRTIM_SET1R_EXTVNT7)
1068#define LL_HRTIM_CROSSBAR_EEV_8 (HRTIM_SET1R_EXTVNT8)
1069#define LL_HRTIM_CROSSBAR_EEV_9 (HRTIM_SET1R_EXTVNT9)
1070#define LL_HRTIM_CROSSBAR_EEV_10 (HRTIM_SET1R_EXTVNT10)
1071#define LL_HRTIM_CROSSBAR_UPDATE (HRTIM_SET1R_UPDATE)
1081#define LL_HRTIM_OUT_POSITIVE_POLARITY 0x00000000U
1082#define LL_HRTIM_OUT_NEGATIVE_POLARITY (HRTIM_OUTR_POL1)
1092#define LL_HRTIM_OUT_NO_IDLE 0x00000000U
1093#define LL_HRTIM_OUT_IDLE_WHEN_BURST (HRTIM_OUTR_IDLM1)
1103#define LL_HRTIM_HALF_MODE_DISABLED 0x000U
1104#define LL_HRTIM_HALF_MODE_ENABLE HRTIM_MCR_HALF
1114#define LL_HRTIM_OUT_IDLELEVEL_INACTIVE 0x00000000U
1115#define LL_HRTIM_OUT_IDLELEVEL_ACTIVE (HRTIM_OUTR_IDLES1)
1125#define LL_HRTIM_OUT_FAULTSTATE_NO_ACTION 0x00000000U
1126#define LL_HRTIM_OUT_FAULTSTATE_ACTIVE (HRTIM_OUTR_FAULT1_0)
1127#define LL_HRTIM_OUT_FAULTSTATE_INACTIVE (HRTIM_OUTR_FAULT1_1)
1128#define LL_HRTIM_OUT_FAULTSTATE_HIGHZ (HRTIM_OUTR_FAULT1_1 | HRTIM_OUTR_FAULT1_0)
1138#define LL_HRTIM_OUT_CHOPPERMODE_DISABLED 0x00000000U
1139#define LL_HRTIM_OUT_CHOPPERMODE_ENABLED (HRTIM_OUTR_CHP1)
1150#define LL_HRTIM_OUT_BM_ENTRYMODE_REGULAR 0x00000000U
1151#define LL_HRTIM_OUT_BM_ENTRYMODE_DELAYED (HRTIM_OUTR_DIDL1)
1160#define LL_HRTIM_OUT_LEVEL_INACTIVE 0x00000000U
1161#define LL_HRTIM_OUT_LEVEL_ACTIVE ((uint32_t)0x00000001)
1171#define LL_HRTIM_EE_SRC_1 0x00000000U
1172#define LL_HRTIM_EE_SRC_2 (HRTIM_EECR1_EE1SRC_0)
1173#define LL_HRTIM_EE_SRC_3 (HRTIM_EECR1_EE1SRC_1)
1174#define LL_HRTIM_EE_SRC_4 (HRTIM_EECR1_EE1SRC_1 | HRTIM_EECR1_EE1SRC_0)
1183#define LL_HRTIM_EE_POLARITY_HIGH 0x00000000U
1184#define LL_HRTIM_EE_POLARITY_LOW (HRTIM_EECR1_EE1POL)
1194#define LL_HRTIM_EE_SENSITIVITY_LEVEL 0x00000000U
1195#define LL_HRTIM_EE_SENSITIVITY_RISINGEDGE (HRTIM_EECR1_EE1SNS_0)
1196#define LL_HRTIM_EE_SENSITIVITY_FALLINGEDGE (HRTIM_EECR1_EE1SNS_1)
1197#define LL_HRTIM_EE_SENSITIVITY_BOTHEDGES (HRTIM_EECR1_EE1SNS_1 | HRTIM_EECR1_EE1SNS_0)
1207#define LL_HRTIM_EE_FASTMODE_DISABLE 0x00000000U
1208#define LL_HRTIM_EE_FASTMODE_ENABLE (HRTIM_EECR1_EE1FAST)
1218#define LL_HRTIM_EE_FILTER_NONE 0x00000000U
1219#define LL_HRTIM_EE_FILTER_1 (HRTIM_EECR3_EE6F_0)
1220#define LL_HRTIM_EE_FILTER_2 (HRTIM_EECR3_EE6F_1)
1221#define LL_HRTIM_EE_FILTER_3 (HRTIM_EECR3_EE6F_1 | HRTIM_EECR3_EE6F_0)
1222#define LL_HRTIM_EE_FILTER_4 (HRTIM_EECR3_EE6F_2)
1223#define LL_HRTIM_EE_FILTER_5 (HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_0)
1224#define LL_HRTIM_EE_FILTER_6 (HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_1)
1225#define LL_HRTIM_EE_FILTER_7 (HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_1 | HRTIM_EECR3_EE6F_0)
1226#define LL_HRTIM_EE_FILTER_8 (HRTIM_EECR3_EE6F_3)
1227#define LL_HRTIM_EE_FILTER_9 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_0)
1228#define LL_HRTIM_EE_FILTER_10 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_1)
1229#define LL_HRTIM_EE_FILTER_11 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_1 | HRTIM_EECR3_EE6F_0)
1230#define LL_HRTIM_EE_FILTER_12 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_2)
1231#define LL_HRTIM_EE_FILTER_13 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_0)
1232#define LL_HRTIM_EE_FILTER_14 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_1)
1233#define LL_HRTIM_EE_FILTER_15 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_1 | HRTIM_EECR3_EE6F_0)
1243#define LL_HRTIM_EE_PRESCALER_DIV1 0x00000000U
1244#define LL_HRTIM_EE_PRESCALER_DIV2 (HRTIM_EECR3_EEVSD_0)
1245#define LL_HRTIM_EE_PRESCALER_DIV4 (HRTIM_EECR3_EEVSD_1)
1246#define LL_HRTIM_EE_PRESCALER_DIV8 (HRTIM_EECR3_EEVSD_1 | HRTIM_EECR3_EEVSD_0)
1256#define LL_HRTIM_FLT_SRC_DIGITALINPUT 0x00000000U
1257#define LL_HRTIM_FLT_SRC_INTERNAL HRTIM_FLTINR1_FLT1SRC
1267#define LL_HRTIM_FLT_POLARITY_LOW 0x00000000U
1268#define LL_HRTIM_FLT_POLARITY_HIGH (HRTIM_FLTINR1_FLT1P)
1278#define LL_HRTIM_FLT_FILTER_NONE 0x00000000U
1279#define LL_HRTIM_FLT_FILTER_1 (HRTIM_FLTINR1_FLT1F_0)
1280#define LL_HRTIM_FLT_FILTER_2 (HRTIM_FLTINR1_FLT1F_1)
1281#define LL_HRTIM_FLT_FILTER_3 (HRTIM_FLTINR1_FLT1F_1 | HRTIM_FLTINR1_FLT1F_0)
1282#define LL_HRTIM_FLT_FILTER_4 (HRTIM_FLTINR1_FLT1F_2)
1283#define LL_HRTIM_FLT_FILTER_5 (HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_0)
1284#define LL_HRTIM_FLT_FILTER_6 (HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_1)
1285#define LL_HRTIM_FLT_FILTER_7 (HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_1 | HRTIM_FLTINR1_FLT1F_0)
1286#define LL_HRTIM_FLT_FILTER_8 (HRTIM_FLTINR1_FLT1F_3)
1287#define LL_HRTIM_FLT_FILTER_9 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_0)
1288#define LL_HRTIM_FLT_FILTER_10 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_1)
1289#define LL_HRTIM_FLT_FILTER_11 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_1 | HRTIM_FLTINR1_FLT1F_0)
1290#define LL_HRTIM_FLT_FILTER_12 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_2)
1291#define LL_HRTIM_FLT_FILTER_13 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_0)
1292#define LL_HRTIM_FLT_FILTER_14 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_1)
1293#define LL_HRTIM_FLT_FILTER_15 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_1 | HRTIM_FLTINR1_FLT1F_0)
1303#define LL_HRTIM_FLT_PRESCALER_DIV1 0x00000000U
1304#define LL_HRTIM_FLT_PRESCALER_DIV2 (HRTIM_FLTINR2_FLTSD_0)
1305#define LL_HRTIM_FLT_PRESCALER_DIV4 (HRTIM_FLTINR2_FLTSD_1)
1306#define LL_HRTIM_FLT_PRESCALER_DIV8 (HRTIM_FLTINR2_FLTSD_1 | HRTIM_FLTINR2_FLTSD_0)
1316#define LL_HRTIM_BM_MODE_SINGLESHOT 0x00000000U
1317#define LL_HRTIM_BM_MODE_CONTINOUS (HRTIM_BMCR_BMOM)
1327#define LL_HRTIM_BM_CLKSRC_MASTER 0x00000000U
1328#define LL_HRTIM_BM_CLKSRC_TIMER_A (HRTIM_BMCR_BMCLK_0)
1329#define LL_HRTIM_BM_CLKSRC_TIMER_B (HRTIM_BMCR_BMCLK_1)
1330#define LL_HRTIM_BM_CLKSRC_TIMER_C (HRTIM_BMCR_BMCLK_1 | HRTIM_BMCR_BMCLK_0)
1331#define LL_HRTIM_BM_CLKSRC_TIMER_D (HRTIM_BMCR_BMCLK_2)
1332#define LL_HRTIM_BM_CLKSRC_TIMER_E (HRTIM_BMCR_BMCLK_2 | HRTIM_BMCR_BMCLK_0)
1333#define LL_HRTIM_BM_CLKSRC_TIM16_OC (HRTIM_BMCR_BMCLK_2 | HRTIM_BMCR_BMCLK_1)
1334#define LL_HRTIM_BM_CLKSRC_TIM17_OC (HRTIM_BMCR_BMCLK_2 | HRTIM_BMCR_BMCLK_1 | HRTIM_BMCR_BMCLK_0)
1335#define LL_HRTIM_BM_CLKSRC_TIM7_TRGO (HRTIM_BMCR_BMCLK_3)
1336#define LL_HRTIM_BM_CLKSRC_FHRTIM (HRTIM_BMCR_BMCLK_3 | HRTIM_BMCR_BMCLK_1)
1346#define LL_HRTIM_BM_PRESCALER_DIV1 0x00000000U
1347#define LL_HRTIM_BM_PRESCALER_DIV2 (HRTIM_BMCR_BMPRSC_0)
1348#define LL_HRTIM_BM_PRESCALER_DIV4 (HRTIM_BMCR_BMPRSC_1)
1349#define LL_HRTIM_BM_PRESCALER_DIV8 (HRTIM_BMCR_BMPRSC_1 | HRTIM_BMCR_BMPRSC_0)
1350#define LL_HRTIM_BM_PRESCALER_DIV16 (HRTIM_BMCR_BMPRSC_2)
1351#define LL_HRTIM_BM_PRESCALER_DIV32 (HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_0)
1352#define LL_HRTIM_BM_PRESCALER_DIV64 (HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_1)
1353#define LL_HRTIM_BM_PRESCALER_DIV128 (HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_1 | HRTIM_BMCR_BMPRSC_0)
1354#define LL_HRTIM_BM_PRESCALER_DIV256 (HRTIM_BMCR_BMPRSC_3)
1355#define LL_HRTIM_BM_PRESCALER_DIV512 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_0)
1356#define LL_HRTIM_BM_PRESCALER_DIV1024 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_1)
1357#define LL_HRTIM_BM_PRESCALER_DIV2048 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_1 | HRTIM_BMCR_BMPRSC_0)
1358#define LL_HRTIM_BM_PRESCALER_DIV4096 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_2)
1359#define LL_HRTIM_BM_PRESCALER_DIV8192 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_0)
1360#define LL_HRTIM_BM_PRESCALER_DIV16384 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_1)
1361#define LL_HRTIM_BM_PRESCALER_DIV32768 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_1 | HRTIM_BMCR_BMPRSC_0)
1371#define LL_HRTIM_BM_TRIG_NONE 0x00000000U
1372#define LL_HRTIM_BM_TRIG_MASTER_RESET (HRTIM_BMTRGR_MSTRST)
1373#define LL_HRTIM_BM_TRIG_MASTER_REPETITION (HRTIM_BMTRGR_MSTREP)
1374#define LL_HRTIM_BM_TRIG_MASTER_CMP1 (HRTIM_BMTRGR_MSTCMP1)
1375#define LL_HRTIM_BM_TRIG_MASTER_CMP2 (HRTIM_BMTRGR_MSTCMP2)
1376#define LL_HRTIM_BM_TRIG_MASTER_CMP3 (HRTIM_BMTRGR_MSTCMP3)
1377#define LL_HRTIM_BM_TRIG_MASTER_CMP4 (HRTIM_BMTRGR_MSTCMP4)
1378#define LL_HRTIM_BM_TRIG_TIMA_RESET (HRTIM_BMTRGR_TARST)
1379#define LL_HRTIM_BM_TRIG_TIMA_REPETITION (HRTIM_BMTRGR_TAREP)
1380#define LL_HRTIM_BM_TRIG_TIMA_CMP1 (HRTIM_BMTRGR_TACMP1)
1381#define LL_HRTIM_BM_TRIG_TIMA_CMP2 (HRTIM_BMTRGR_TACMP2)
1382#define LL_HRTIM_BM_TRIG_TIMB_RESET (HRTIM_BMTRGR_TBRST)
1383#define LL_HRTIM_BM_TRIG_TIMB_REPETITION (HRTIM_BMTRGR_TBREP)
1384#define LL_HRTIM_BM_TRIG_TIMB_CMP1 (HRTIM_BMTRGR_TBCMP1)
1385#define LL_HRTIM_BM_TRIG_TIMB_CMP2 (HRTIM_BMTRGR_TBCMP2)
1386#define LL_HRTIM_BM_TRIG_TIMC_RESET (HRTIM_BMTRGR_TCRST)
1387#define LL_HRTIM_BM_TRIG_TIMC_REPETITION (HRTIM_BMTRGR_TCREP)
1388#define LL_HRTIM_BM_TRIG_TIMC_CMP1 (HRTIM_BMTRGR_TCCMP1)
1389#define LL_HRTIM_BM_TRIG_TIMC_CMP2 (HRTIM_BMTRGR_TCCMP2)
1390#define LL_HRTIM_BM_TRIG_TIMD_RESET (HRTIM_BMTRGR_TDRST)
1391#define LL_HRTIM_BM_TRIG_TIMD_REPETITION (HRTIM_BMTRGR_TDREP)
1392#define LL_HRTIM_BM_TRIG_TIMD_CMP1 (HRTIM_BMTRGR_TDCMP1)
1393#define LL_HRTIM_BM_TRIG_TIMD_CMP2 (HRTIM_BMTRGR_TDCMP2)
1394#define LL_HRTIM_BM_TRIG_TIME_RESET (HRTIM_BMTRGR_TERST)
1395#define LL_HRTIM_BM_TRIG_TIME_REPETITION (HRTIM_BMTRGR_TEREP)
1396#define LL_HRTIM_BM_TRIG_TIME_CMP1 (HRTIM_BMTRGR_TECMP1)
1397#define LL_HRTIM_BM_TRIG_TIME_CMP2 (HRTIM_BMTRGR_TECMP2)
1398#define LL_HRTIM_BM_TRIG_TIMA_EVENT7 (HRTIM_BMTRGR_TAEEV7)
1399#define LL_HRTIM_BM_TRIG_TIMD_EVENT8 (HRTIM_BMTRGR_TDEEV8)
1400#define LL_HRTIM_BM_TRIG_EVENT_7 (HRTIM_BMTRGR_EEV7)
1401#define LL_HRTIM_BM_TRIG_EVENT_8 (HRTIM_BMTRGR_EEV8)
1402#define LL_HRTIM_BM_TRIG_EVENT_ONCHIP (HRTIM_BMTRGR_OCHPEV)
1412#define LL_HRTIM_BM_STATUS_NORMAL 0x00000000U
1413#define LL_HRTIM_BM_STATUS_BURST_ONGOING HRTIM_BMCR_BMSTAT
1422/* Exported macro ------------------------------------------------------------*/
1440#define LL_HRTIM_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__))
1441
1448#define LL_HRTIM_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__)
1466#define __LL_HRTIM_GET_OUTPUT_STATE(__OUTPUT_STATUS_EN__, __OUTPUT_STATUS_DIS__)\
1467 (((__OUTPUT_STATUS_EN__) == 1) ? LL_HRTIM_OUTPUTSTATE_RUN :\
1468 ((__OUTPUT_STATUS_DIS__) == 0) ? LL_HRTIM_OUTPUTSTATE_IDLE : LL_HRTIM_OUTPUTSTATE_FAULT)
1477/* Exported functions --------------------------------------------------------*/
1498__STATIC_INLINE void LL_HRTIM_SetSyncInSrc(HRTIM_TypeDef *HRTIMx, uint32_t SyncInSrc)
1499{
1500 MODIFY_REG(HRTIMx->sMasterRegs.MCR, HRTIM_MCR_SYNC_IN, SyncInSrc);
1501}
1502
1512__STATIC_INLINE uint32_t LL_HRTIM_GetSyncInSrc(const HRTIM_TypeDef *HRTIMx)
1513{
1514 return (READ_BIT(HRTIMx->sMasterRegs.MCR, HRTIM_MCR_SYNC_IN));
1515}
1516
1533__STATIC_INLINE void LL_HRTIM_ConfigSyncOut(HRTIM_TypeDef *HRTIMx, uint32_t Config, uint32_t Src)
1534{
1535 MODIFY_REG(HRTIMx->sMasterRegs.MCR, (HRTIM_MCR_SYNC_OUT | HRTIM_MCR_SYNC_SRC), (Config | Src));
1536}
1537
1549__STATIC_INLINE void LL_HRTIM_SetSyncOutConfig(HRTIM_TypeDef *HRTIMx, uint32_t SyncOutConfig)
1550{
1551 MODIFY_REG(HRTIMx->sMasterRegs.MCR, HRTIM_MCR_SYNC_OUT, SyncOutConfig);
1552}
1553
1563__STATIC_INLINE uint32_t LL_HRTIM_GetSyncOutConfig(const HRTIM_TypeDef *HRTIMx)
1564{
1565 return (READ_BIT(HRTIMx->sMasterRegs.MCR, HRTIM_MCR_SYNC_OUT));
1566}
1567
1579__STATIC_INLINE void LL_HRTIM_SetSyncOutSrc(HRTIM_TypeDef *HRTIMx, uint32_t SyncOutSrc)
1580{
1581 MODIFY_REG(HRTIMx->sMasterRegs.MCR, HRTIM_MCR_SYNC_SRC, SyncOutSrc);
1582}
1583
1594__STATIC_INLINE uint32_t LL_HRTIM_GetSyncOutSrc(const HRTIM_TypeDef *HRTIMx)
1595{
1596 return (READ_BIT(HRTIMx->sMasterRegs.MCR, HRTIM_MCR_SYNC_SRC));
1597}
1598
1620__STATIC_INLINE void LL_HRTIM_SuspendUpdate(HRTIM_TypeDef *HRTIMx, uint32_t Timers)
1621{
1622 SET_BIT(HRTIMx->sCommonRegs.CR1, ((Timers >> HRTIM_MCR_MCEN_Pos) & HRTIM_CR1_UDIS_MASK));
1623}
1624
1644__STATIC_INLINE void LL_HRTIM_ResumeUpdate(HRTIM_TypeDef *HRTIMx, uint32_t Timers)
1645{
1646 CLEAR_BIT(HRTIMx->sCommonRegs.CR1, ((Timers >> HRTIM_MCR_MCEN_Pos) & HRTIM_CR1_UDIS_MASK));
1647}
1648
1668__STATIC_INLINE void LL_HRTIM_ForceUpdate(HRTIM_TypeDef *HRTIMx, uint32_t Timers)
1669{
1670 SET_BIT(HRTIMx->sCommonRegs.CR2, ((Timers >> HRTIM_MCR_MCEN_Pos) & HRTIM_CR2_SWUPD_MASK));
1671}
1672
1691__STATIC_INLINE void LL_HRTIM_CounterReset(HRTIM_TypeDef *HRTIMx, uint32_t Timers)
1692{
1693 SET_BIT(HRTIMx->sCommonRegs.CR2, (((Timers >> HRTIM_MCR_MCEN_Pos) << HRTIM_CR2_MRST_Pos) & HRTIM_CR2_SWRST_MASK));
1694}
1695
1722__STATIC_INLINE void LL_HRTIM_EnableOutput(HRTIM_TypeDef *HRTIMx, uint32_t Outputs)
1723{
1724 SET_BIT(HRTIMx->sCommonRegs.OENR, (Outputs & HRTIM_OENR_OEN_MASK));
1725}
1726
1753__STATIC_INLINE void LL_HRTIM_DisableOutput(HRTIM_TypeDef *HRTIMx, uint32_t Outputs)
1754{
1755 SET_BIT(HRTIMx->sCommonRegs.ODISR, (Outputs & HRTIM_OENR_ODIS_MASK));
1756}
1757
1784__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledOutput(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
1785{
1786 return ((READ_BIT(HRTIMx->sCommonRegs.OENR, Output) == Output) ? 1UL : 0UL);
1787}
1788
1815__STATIC_INLINE uint32_t LL_HRTIM_IsDisabledOutput(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
1816{
1817 return ((READ_BIT(HRTIMx->sCommonRegs.OENR, Output) == 0U) ? 1UL : 0UL);
1818}
1819
2041__STATIC_INLINE void LL_HRTIM_ConfigADCTrig(HRTIM_TypeDef *HRTIMx, uint32_t ADCTrig, uint32_t Update, uint32_t Src)
2042{
2043 uint32_t shift = ((3U * ADCTrig) & 0x1FU);
2044 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.ADC1R) +
2045 REG_OFFSET_TAB_ADCxR[ADCTrig]));
2046 MODIFY_REG(HRTIMx->sCommonRegs.CR1, (HRTIM_CR1_ADC1USRC << shift), (Update << shift));
2047 WRITE_REG(*pReg, Src);
2048}
2049
2074__STATIC_INLINE void LL_HRTIM_SetADCTrigUpdate(HRTIM_TypeDef *HRTIMx, uint32_t ADCTrig, uint32_t Update)
2075{
2076 uint32_t shift = ((3U * ADCTrig) & 0x1FU);
2077 MODIFY_REG(HRTIMx->sCommonRegs.CR1, (HRTIM_CR1_ADC1USRC << shift), (Update << shift));
2078}
2079
2100__STATIC_INLINE uint32_t LL_HRTIM_GetADCTrigUpdate(const HRTIM_TypeDef *HRTIMx, uint32_t ADCTrig)
2101{
2102 const uint32_t shift = ((3U * ADCTrig) & 0x1FU);
2103 return (READ_BIT(HRTIMx->sCommonRegs.CR1, (uint32_t)(HRTIM_CR1_ADC1USRC) << shift) >> shift);
2104}
2105
2317__STATIC_INLINE void LL_HRTIM_SetADCTrigSrc(HRTIM_TypeDef *HRTIMx, uint32_t ADCTrig, uint32_t Src)
2318{
2319 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.ADC1R) +
2320 REG_OFFSET_TAB_ADCxR[ADCTrig]));
2321 WRITE_REG(*pReg, Src);
2322}
2323
2534__STATIC_INLINE uint32_t LL_HRTIM_GetADCTrigSrc(const HRTIM_TypeDef *HRTIMx, uint32_t ADCTrig)
2535{
2536 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.ADC1R) +
2537 REG_OFFSET_TAB_ADCxR[ADCTrig]));
2538 return (*pReg);
2539
2540}
2541
2542
2570__STATIC_INLINE void LL_HRTIM_TIM_CounterEnable(HRTIM_TypeDef *HRTIMx, uint32_t Timers)
2571{
2572 SET_BIT(HRTIMx->sMasterRegs.MCR, Timers);
2573}
2574
2593__STATIC_INLINE void LL_HRTIM_TIM_CounterDisable(HRTIM_TypeDef *HRTIMx, uint32_t Timers)
2594{
2595 CLEAR_BIT(HRTIMx->sMasterRegs.MCR, Timers);
2596}
2597
2616__STATIC_INLINE uint32_t LL_HRTIM_TIM_IsCounterEnabled(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2617{
2618 return ((READ_BIT(HRTIMx->sMasterRegs.MCR, Timer) == (Timer)) ? 1UL : 0UL);
2619}
2620
2641__STATIC_INLINE void LL_HRTIM_TIM_SetPrescaler(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Prescaler)
2642{
2643 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2644 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2645 MODIFY_REG(*pReg, HRTIM_MCR_CK_PSC, Prescaler);
2646}
2647
2665__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetPrescaler(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2666{
2667 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2668 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2669 return (READ_BIT(*pReg, HRTIM_MCR_CK_PSC));
2670}
2671
2692__STATIC_INLINE void LL_HRTIM_TIM_SetCounterMode(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Mode)
2693{
2694 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2695 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2696 MODIFY_REG(*pReg, (HRTIM_TIMCR_RETRIG | HRTIM_MCR_CONT), Mode);
2697}
2698
2718__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCounterMode(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2719{
2720 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2721 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2722 return (READ_BIT(*pReg, (HRTIM_MCR_RETRIG | HRTIM_MCR_CONT)));
2723}
2724
2742__STATIC_INLINE void LL_HRTIM_TIM_EnableHalfMode(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2743{
2744 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2745 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2746 SET_BIT(*pReg, HRTIM_MCR_HALF);
2747}
2748
2763__STATIC_INLINE void LL_HRTIM_TIM_DisableHalfMode(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2764{
2765 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2766 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2767 CLEAR_BIT(*pReg, HRTIM_MCR_HALF);
2768}
2769
2784__STATIC_INLINE uint32_t LL_HRTIM_TIM_IsEnabledHalfMode(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2785{
2786 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2787 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2788
2789 return ((READ_BIT(*pReg, HRTIM_MCR_HALF) == (HRTIM_MCR_HALF)) ? 1UL : 0UL);
2790}
2805__STATIC_INLINE void LL_HRTIM_TIM_EnableStartOnSync(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2806{
2807 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2808 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2809 SET_BIT(*pReg, HRTIM_MCR_SYNCSTRTM);
2810}
2811
2826__STATIC_INLINE void LL_HRTIM_TIM_DisableStartOnSync(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2827{
2828 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2829 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2830 CLEAR_BIT(*pReg, HRTIM_MCR_SYNCSTRTM);
2831}
2832
2847__STATIC_INLINE uint32_t LL_HRTIM_TIM_IsEnabledStartOnSync(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2848{
2849 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2850 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2851
2852 return ((READ_BIT(*pReg, HRTIM_MCR_SYNCSTRTM) == (HRTIM_MCR_SYNCSTRTM)) ? 1UL : 0UL);
2853}
2854
2869__STATIC_INLINE void LL_HRTIM_TIM_EnableResetOnSync(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2870{
2871 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2872 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2873 SET_BIT(*pReg, HRTIM_MCR_SYNCRSTM);
2874}
2875
2890__STATIC_INLINE void LL_HRTIM_TIM_DisableResetOnSync(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2891{
2892 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2893 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2894 CLEAR_BIT(*pReg, HRTIM_MCR_SYNCRSTM);
2895}
2896
2911__STATIC_INLINE uint32_t LL_HRTIM_TIM_IsEnabledResetOnSync(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2912{
2913 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2914 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2915
2916 return ((READ_BIT(*pReg, HRTIM_MCR_SYNCRSTM) == (HRTIM_MCR_SYNCRSTM)) ? 1UL : 0UL);
2917}
2918
2938__STATIC_INLINE void LL_HRTIM_TIM_SetDACTrig(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t DACTrig)
2939{
2940 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2941 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2942 MODIFY_REG(*pReg, HRTIM_MCR_DACSYNC, DACTrig);
2943}
2944
2963__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetDACTrig(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2964{
2965 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2966 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2967 return (READ_BIT(*pReg, HRTIM_MCR_DACSYNC));
2968}
2969
2987__STATIC_INLINE void LL_HRTIM_TIM_EnablePreload(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
2988{
2989 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
2990 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
2991 SET_BIT(*pReg, HRTIM_MCR_PREEN);
2992}
2993
3008__STATIC_INLINE void LL_HRTIM_TIM_DisablePreload(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3009{
3010 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3011 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
3012 CLEAR_BIT(*pReg, HRTIM_MCR_PREEN);
3013}
3014
3029__STATIC_INLINE uint32_t LL_HRTIM_TIM_IsEnabledPreload(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3030{
3031 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3032 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
3033
3034 return ((READ_BIT(*pReg, HRTIM_MCR_PREEN) == (HRTIM_MCR_PREEN)) ? 1UL : 0UL);
3035}
3036
3073__STATIC_INLINE void LL_HRTIM_TIM_SetUpdateTrig(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t UpdateTrig)
3074{
3075 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3076 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
3077 MODIFY_REG(*pReg, REG_MASK_TAB_UPDATETRIG[iTimer], UpdateTrig << REG_SHIFT_TAB_UPDATETRIG[iTimer]);
3078}
3079
3114__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetUpdateTrig(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3115{
3116 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3117 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
3118 return (READ_BIT(*pReg, REG_MASK_TAB_UPDATETRIG[iTimer]) >> REG_SHIFT_TAB_UPDATETRIG[iTimer]);
3119}
3120
3152__STATIC_INLINE void LL_HRTIM_TIM_SetUpdateGating(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t UpdateGating)
3153{
3154 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3155 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
3156 MODIFY_REG(*pReg, REG_MASK_TAB_UPDATEGATING[iTimer], (UpdateGating << REG_SHIFT_TAB_UPDATEGATING[iTimer]));
3157}
3158
3189__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetUpdateGating(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3190{
3191 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3192 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCR) + REG_OFFSET_TAB_TIMER[iTimer]));
3193 return (READ_BIT(*pReg, REG_MASK_TAB_UPDATEGATING[iTimer]) >> REG_SHIFT_TAB_UPDATEGATING[iTimer]);
3194}
3195
3208__STATIC_INLINE void LL_HRTIM_TIM_EnablePushPullMode(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3209{
3210 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
3211 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].TIMxCR) +
3212 REG_OFFSET_TAB_TIMER[iTimer]));
3213 SET_BIT(*pReg, HRTIM_TIMCR_PSHPLL);
3214}
3215
3228__STATIC_INLINE void LL_HRTIM_TIM_DisablePushPullMode(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3229{
3230 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
3231 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].TIMxCR) +
3232 REG_OFFSET_TAB_TIMER[iTimer]));
3233 CLEAR_BIT(*pReg, HRTIM_TIMCR_PSHPLL);
3234}
3235
3248__STATIC_INLINE uint32_t LL_HRTIM_TIM_IsEnabledPushPullMode(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3249{
3250 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
3251 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].TIMxCR) +
3252 REG_OFFSET_TAB_TIMER[iTimer]));
3253 return ((READ_BIT(*pReg, HRTIM_TIMCR_PSHPLL) == (HRTIM_TIMCR_PSHPLL)) ? 1UL : 0UL);
3254}
3255
3278__STATIC_INLINE void LL_HRTIM_TIM_SetCompareMode(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t CompareUnit,
3279 uint32_t Mode)
3280{
3281 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
3282 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].TIMxCR) +
3283 REG_OFFSET_TAB_TIMER[iTimer]));
3284 uint32_t shift = (((uint32_t)POSITION_VAL(CompareUnit) - (uint32_t)POSITION_VAL(LL_HRTIM_COMPAREUNIT_2)) & 0x1FU);
3285 MODIFY_REG(* pReg, (HRTIM_TIMCR_DELCMP2 << shift), (Mode << shift));
3286}
3287
3308__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCompareMode(const HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t CompareUnit)
3309{
3310 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
3311 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].TIMxCR) +
3312 REG_OFFSET_TAB_TIMER[iTimer]));
3313 uint32_t shift = (((uint32_t)POSITION_VAL(CompareUnit) - (uint32_t)POSITION_VAL(LL_HRTIM_COMPAREUNIT_2)) & 0x1FU);
3314 return (READ_BIT(*pReg, (HRTIM_TIMCR_DELCMP2 << shift)) >> shift);
3315}
3316
3338__STATIC_INLINE void LL_HRTIM_TIM_SetCounter(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Counter)
3339{
3340 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3341 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCNTR) +
3342 REG_OFFSET_TAB_TIMER[iTimer]));
3343 MODIFY_REG(* pReg, HRTIM_MCNTR_MCNTR, Counter);
3344}
3345
3360__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCounter(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3361{
3362 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3363 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCNTR) +
3364 REG_OFFSET_TAB_TIMER[iTimer]));
3365 return (READ_BIT(*pReg, HRTIM_MCNTR_MCNTR));
3366}
3367
3383__STATIC_INLINE void LL_HRTIM_TIM_SetPeriod(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Period)
3384{
3385 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3386 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MPER) +
3387 REG_OFFSET_TAB_TIMER[iTimer]));
3388 MODIFY_REG(* pReg, HRTIM_MPER_MPER, Period);
3389}
3390
3405__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetPeriod(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3406{
3407 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3408 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MPER) +
3409 REG_OFFSET_TAB_TIMER[iTimer]));
3410 return (READ_BIT(*pReg, HRTIM_MPER_MPER));
3411}
3412
3428__STATIC_INLINE void LL_HRTIM_TIM_SetRepetition(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Repetition)
3429{
3430 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3431 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MREP) +
3432 REG_OFFSET_TAB_TIMER[iTimer]));
3433 MODIFY_REG(* pReg, HRTIM_MREP_MREP, Repetition);
3434}
3435
3450__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetRepetition(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3451{
3452 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3453 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MREP) +
3454 REG_OFFSET_TAB_TIMER[iTimer]));
3455 return (READ_BIT(*pReg, HRTIM_MREP_MREP));
3456}
3457
3475__STATIC_INLINE void LL_HRTIM_TIM_SetCompare1(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t CompareValue)
3476{
3477 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3478 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCMP1R) +
3479 REG_OFFSET_TAB_TIMER[iTimer]));
3480 MODIFY_REG(* pReg, HRTIM_MCMP1R_MCMP1R, CompareValue);
3481}
3482
3499__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCompare1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3500{
3501 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3502 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCMP1R) +
3503 REG_OFFSET_TAB_TIMER[iTimer]));
3504 return (READ_BIT(*pReg, HRTIM_MCMP1R_MCMP1R));
3505}
3506
3524__STATIC_INLINE void LL_HRTIM_TIM_SetCompare2(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t CompareValue)
3525{
3526 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3527 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCMP2R) +
3528 REG_OFFSET_TAB_TIMER[iTimer]));
3529 MODIFY_REG(* pReg, HRTIM_MCMP1R_MCMP2R, CompareValue);
3530}
3531
3548__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCompare2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3549{
3550 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3551 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCMP2R) +
3552 REG_OFFSET_TAB_TIMER[iTimer]));
3553 return (READ_BIT(*pReg, HRTIM_MCMP1R_MCMP2R));
3554}
3555
3573__STATIC_INLINE void LL_HRTIM_TIM_SetCompare3(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t CompareValue)
3574{
3575 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3576 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCMP3R) +
3577 REG_OFFSET_TAB_TIMER[iTimer]));
3578 MODIFY_REG(* pReg, HRTIM_MCMP1R_MCMP3R, CompareValue);
3579}
3580
3597__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCompare3(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3598{
3599 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3600 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCMP3R) +
3601 REG_OFFSET_TAB_TIMER[iTimer]));
3602 return (READ_BIT(*pReg, HRTIM_MCMP1R_MCMP3R));
3603}
3604
3622__STATIC_INLINE void LL_HRTIM_TIM_SetCompare4(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t CompareValue)
3623{
3624 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3625 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCMP4R) +
3626 REG_OFFSET_TAB_TIMER[iTimer]));
3627 MODIFY_REG(* pReg, HRTIM_MCMP1R_MCMP4R, CompareValue);
3628}
3629
3646__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCompare4(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3647{
3648 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
3649 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MCMP4R) +
3650 REG_OFFSET_TAB_TIMER[iTimer]));
3651 return (READ_BIT(*pReg, HRTIM_MCMP1R_MCMP4R));
3652}
3653
3733__STATIC_INLINE void LL_HRTIM_TIM_SetResetTrig(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t ResetTrig)
3734{
3735 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
3736 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].RSTxR) +
3737 REG_OFFSET_TAB_TIMER[iTimer]));
3738 WRITE_REG(*pReg, ResetTrig);
3739}
3740
3813__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetResetTrig(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3814{
3815 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
3816 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].RSTxR) +
3817 REG_OFFSET_TAB_TIMER[iTimer]));
3818 return (READ_REG(*pReg));
3819}
3820
3833__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCapture1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3834{
3835 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
3836 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].CPT1xR) +
3837 REG_OFFSET_TAB_TIMER[iTimer]));
3838 return (READ_REG(*pReg));
3839}
3840
3853__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCapture2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
3854{
3855 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
3856 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].CPT2xR) +
3857 REG_OFFSET_TAB_TIMER[iTimer]));
3858 return (READ_REG(*pReg));
3859}
3860
3940__STATIC_INLINE void LL_HRTIM_TIM_SetCaptureTrig(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t CaptureUnit,
3941 uint32_t CaptureTrig)
3942{
3943 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
3944 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0U].CPT1xCR) +
3945 REG_OFFSET_TAB_TIMER[iTimer] + (CaptureUnit * 4U)));
3946 WRITE_REG(*pReg, CaptureTrig);
3947}
3948
4027__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCaptureTrig(const HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t CaptureUnit)
4028{
4029 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4030 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0U].CPT1xCR) +
4031 REG_OFFSET_TAB_TIMER[iTimer] + (CaptureUnit * 4U)));
4032 return (READ_REG(*pReg));
4033}
4034
4047__STATIC_INLINE void LL_HRTIM_TIM_EnableDeadTime(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4048{
4049 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4050 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
4051 REG_OFFSET_TAB_TIMER[iTimer]));
4052 SET_BIT(*pReg, HRTIM_OUTR_DTEN);
4053}
4054
4067__STATIC_INLINE void LL_HRTIM_TIM_DisableDeadTime(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4068{
4069 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4070 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
4071 REG_OFFSET_TAB_TIMER[iTimer]));
4072 CLEAR_BIT(*pReg, HRTIM_OUTR_DTEN);
4073}
4074
4087__STATIC_INLINE uint32_t LL_HRTIM_TIM_IsEnabledDeadTime(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4088{
4089 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4090 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
4091 REG_OFFSET_TAB_TIMER[iTimer]));
4092
4093 return ((READ_BIT(*pReg, HRTIM_OUTR_DTEN) == (HRTIM_OUTR_DTEN)) ? 1UL : 0UL);
4094}
4095
4132__STATIC_INLINE void LL_HRTIM_TIM_SetDLYPRTMode(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t DLYPRTMode)
4133{
4134 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4135 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
4136 REG_OFFSET_TAB_TIMER[iTimer]));
4137 MODIFY_REG(*pReg, HRTIM_OUTR_DLYPRT, DLYPRTMode);
4138}
4139
4173__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetDLYPRTMode(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4174{
4175 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4176 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
4177 REG_OFFSET_TAB_TIMER[iTimer]));
4178 return (READ_BIT(*pReg, HRTIM_OUTR_DLYPRT));
4179}
4180
4194__STATIC_INLINE void LL_HRTIM_TIM_EnableDLYPRT(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4195{
4196 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4197 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
4198 REG_OFFSET_TAB_TIMER[iTimer]));
4199 SET_BIT(*pReg, HRTIM_OUTR_DLYPRTEN);
4200}
4201
4215__STATIC_INLINE void LL_HRTIM_TIM_DisableDLYPRT(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4216{
4217 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4218 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
4219 REG_OFFSET_TAB_TIMER[iTimer]));
4220 CLEAR_BIT(*pReg, HRTIM_OUTR_DLYPRTEN);
4221}
4222
4235__STATIC_INLINE uint32_t LL_HRTIM_TIM_IsEnabledDLYPRT(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4236{
4237 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4238 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
4239 REG_OFFSET_TAB_TIMER[iTimer]));
4240 return ((READ_BIT(*pReg, HRTIM_OUTR_DLYPRTEN) == (HRTIM_OUTR_DLYPRTEN)) ? 1UL : 0UL);
4241}
4242
4265__STATIC_INLINE void LL_HRTIM_TIM_EnableFault(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Faults)
4266{
4267 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4268 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].FLTxR) +
4269 REG_OFFSET_TAB_TIMER[iTimer]));
4270 SET_BIT(*pReg, Faults);
4271}
4272
4295__STATIC_INLINE void LL_HRTIM_TIM_DisableFault(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Faults)
4296{
4297 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4298 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].FLTxR) +
4299 REG_OFFSET_TAB_TIMER[iTimer]));
4300 CLEAR_BIT(*pReg, Faults);
4301}
4302
4325__STATIC_INLINE uint32_t LL_HRTIM_TIM_IsEnabledFault(const HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Fault)
4326{
4327 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4328 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].FLTxR) +
4329 REG_OFFSET_TAB_TIMER[iTimer]));
4330
4331 return ((READ_BIT(*pReg, Fault) == (Fault)) ? 1UL : 0UL);
4332}
4333
4347__STATIC_INLINE void LL_HRTIM_TIM_LockFault(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4348{
4349 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4350 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].FLTxR) +
4351 REG_OFFSET_TAB_TIMER[iTimer]));
4352 SET_BIT(*pReg, HRTIM_FLTR_FLTLCK);
4353}
4354
4377__STATIC_INLINE void LL_HRTIM_TIM_SetBurstModeOption(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t BurtsModeOption)
4378{
4379 uint32_t iTimer = (uint8_t)((POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos) & 0x1FU);
4380 MODIFY_REG(HRTIMx->sCommonRegs.BMCR, Timer, BurtsModeOption << iTimer);
4381}
4382
4403__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetBurstModeOption(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4404{
4405 uint32_t iTimer = (uint8_t)((POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos) & 0x1FU);
4406 return (READ_BIT(HRTIMx->sCommonRegs.BMCR, Timer) >> iTimer);
4407}
4408
4489__STATIC_INLINE void LL_HRTIM_TIM_ConfigBurstDMA(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Registers)
4490{
4491
4492 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
4493 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.BDMUPR) + (4U * iTimer)));
4494 WRITE_REG(*pReg, Registers);
4495}
4496
4512__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetCurrentPushPullStatus(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4513{
4514 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
4515 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
4516 REG_OFFSET_TAB_TIMER[iTimer]));
4517 return (READ_BIT(*pReg, HRTIM_TIMISR_CPPSTAT));
4518}
4519
4534__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetIdlePushPullStatus(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4535{
4536 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
4537 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
4538 REG_OFFSET_TAB_TIMER[iTimer]));
4539 return (READ_BIT(*pReg, HRTIM_TIMISR_IPPSTAT));
4540}
4541
4593__STATIC_INLINE void LL_HRTIM_TIM_SetEventFilter(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Event, uint32_t Filter)
4594{
4595 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - POSITION_VAL(LL_HRTIM_TIMER_A));
4596 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
4597 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].EEFxR1) +
4598 REG_OFFSET_TAB_TIMER[iTimer] + REG_OFFSET_TAB_EECR[iEvent]));
4599 MODIFY_REG(*pReg, (HRTIM_EEFR1_EE1FLTR << REG_SHIFT_TAB_EExSRC[iEvent]), (Filter << REG_SHIFT_TAB_EExSRC[iEvent]));
4600}
4601
4650__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetEventFilter(const HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Event)
4651{
4652 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - POSITION_VAL(LL_HRTIM_TIMER_A));
4653 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
4654 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].EEFxR1) +
4655 REG_OFFSET_TAB_TIMER[iTimer] + REG_OFFSET_TAB_EECR[iEvent]));
4656 return (READ_BIT(*pReg, (uint32_t)(HRTIM_EEFR1_EE1FLTR) << (REG_SHIFT_TAB_EExSRC[iEvent])) >> (REG_SHIFT_TAB_EExSRC[iEvent]));
4657}
4658
4695__STATIC_INLINE void LL_HRTIM_TIM_SetEventLatchStatus(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Event,
4696 uint32_t LatchStatus)
4697{
4698 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - POSITION_VAL(LL_HRTIM_TIMER_A));
4699 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
4700 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].EEFxR1) +
4701 REG_OFFSET_TAB_TIMER[iTimer] + REG_OFFSET_TAB_EECR[iEvent]));
4702 MODIFY_REG(*pReg, (HRTIM_EEFR1_EE1LTCH << REG_SHIFT_TAB_EExSRC[iEvent]), (LatchStatus << REG_SHIFT_TAB_EExSRC[iEvent]));
4703}
4704
4739__STATIC_INLINE uint32_t LL_HRTIM_TIM_GetEventLatchStatus(const HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Event)
4740{
4741 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - POSITION_VAL(LL_HRTIM_TIMER_A));
4742 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
4743 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].EEFxR1) +
4744 REG_OFFSET_TAB_TIMER[iTimer] + REG_OFFSET_TAB_EECR[iEvent]));
4745 return (READ_BIT(*pReg, (uint32_t)(HRTIM_EEFR1_EE1LTCH) << REG_SHIFT_TAB_EExSRC[iEvent]) >> (REG_SHIFT_TAB_EExSRC[iEvent]));
4746}
4747
4775__STATIC_INLINE void LL_HRTIM_DT_Config(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Configuration)
4776{
4777 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4778 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
4779 REG_OFFSET_TAB_TIMER[iTimer]));
4780 MODIFY_REG(*pReg, HRTIM_DTR_SDTF | HRTIM_DTR_DTPRSC | HRTIM_DTR_SDTR, Configuration);
4781}
4782
4804__STATIC_INLINE void LL_HRTIM_DT_SetPrescaler(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Prescaler)
4805{
4806 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4807 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
4808 REG_OFFSET_TAB_TIMER[iTimer]));
4809 MODIFY_REG(*pReg, HRTIM_DTR_DTPRSC, Prescaler);
4810}
4811
4832__STATIC_INLINE uint32_t LL_HRTIM_DT_GetPrescaler(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4833{
4834 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4835 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
4836 REG_OFFSET_TAB_TIMER[iTimer]));
4837 return (READ_BIT(*pReg, HRTIM_DTR_DTPRSC));
4838}
4839
4853__STATIC_INLINE void LL_HRTIM_DT_SetRisingValue(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t RisingValue)
4854{
4855 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4856 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
4857 REG_OFFSET_TAB_TIMER[iTimer]));
4858 MODIFY_REG(*pReg, HRTIM_DTR_DTR, RisingValue);
4859}
4860
4873__STATIC_INLINE uint32_t LL_HRTIM_DT_GetRisingValue(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4874{
4875 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4876 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
4877 REG_OFFSET_TAB_TIMER[iTimer]));
4878 return (READ_BIT(*pReg, HRTIM_DTR_DTR));
4879}
4880
4896__STATIC_INLINE void LL_HRTIM_DT_SetRisingSign(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t RisingSign)
4897{
4898 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4899 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
4900 REG_OFFSET_TAB_TIMER[iTimer]));
4901 MODIFY_REG(*pReg, HRTIM_DTR_SDTR, RisingSign);
4902}
4903
4918__STATIC_INLINE uint32_t LL_HRTIM_DT_GetRisingSign(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4919{
4920 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4921 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
4922 REG_OFFSET_TAB_TIMER[iTimer]));
4923 return (READ_BIT(*pReg, HRTIM_DTR_SDTR));
4924}
4925
4939__STATIC_INLINE void LL_HRTIM_DT_SetFallingValue(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t FallingValue)
4940{
4941 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4942 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
4943 REG_OFFSET_TAB_TIMER[iTimer]));
4944 MODIFY_REG(*pReg, HRTIM_DTR_DTF, FallingValue << HRTIM_DTR_DTF_Pos);
4945}
4946
4959__STATIC_INLINE uint32_t LL_HRTIM_DT_GetFallingValue(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
4960{
4961 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4962 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
4963 REG_OFFSET_TAB_TIMER[iTimer]));
4964 return ((READ_BIT(*pReg, HRTIM_DTR_DTF)) >> HRTIM_DTR_DTF_Pos);
4965}
4966
4982__STATIC_INLINE void LL_HRTIM_DT_SetFallingSign(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t FallingSign)
4983{
4984 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
4985 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
4986 REG_OFFSET_TAB_TIMER[iTimer]));
4987 MODIFY_REG(*pReg, HRTIM_DTR_SDTF, FallingSign);
4988}
4989
5004__STATIC_INLINE uint32_t LL_HRTIM_DT_GetFallingSign(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
5005{
5006 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5007 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
5008 REG_OFFSET_TAB_TIMER[iTimer]));
5009 return (READ_BIT(*pReg, HRTIM_DTR_SDTF));
5010}
5011
5024__STATIC_INLINE void LL_HRTIM_DT_LockRising(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
5025{
5026 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5027 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
5028 REG_OFFSET_TAB_TIMER[iTimer]));
5029 SET_BIT(*pReg, HRTIM_DTR_DTRLK);
5030}
5031
5044__STATIC_INLINE void LL_HRTIM_DT_LockRisingSign(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
5045{
5046 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5047 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
5048 REG_OFFSET_TAB_TIMER[iTimer]));
5049 SET_BIT(*pReg, HRTIM_DTR_DTRSLK);
5050}
5051
5064__STATIC_INLINE void LL_HRTIM_DT_LockFalling(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
5065{
5066 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5067 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
5068 REG_OFFSET_TAB_TIMER[iTimer]));
5069 SET_BIT(*pReg, HRTIM_DTR_DTFLK);
5070}
5071
5084__STATIC_INLINE void LL_HRTIM_DT_LockFallingSign(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
5085{
5086 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5087 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].DTxR) +
5088 REG_OFFSET_TAB_TIMER[iTimer]));
5089 SET_BIT(*pReg, HRTIM_DTR_DTFSLK);
5090}
5091
5121__STATIC_INLINE void LL_HRTIM_CHP_Config(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Configuration)
5122{
5123 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5124 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].CHPxR) +
5125 REG_OFFSET_TAB_TIMER[iTimer]));
5126 MODIFY_REG(*pReg, HRTIM_CHPR_STRPW | HRTIM_CHPR_CARDTY | HRTIM_CHPR_CARFRQ, Configuration);
5127}
5128
5161__STATIC_INLINE void LL_HRTIM_CHP_SetPrescaler(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t Prescaler)
5162{
5163 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5164 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].CHPxR) +
5165 REG_OFFSET_TAB_TIMER[iTimer]));
5166 MODIFY_REG(*pReg, HRTIM_CHPR_CARFRQ, Prescaler);
5167}
5168
5197__STATIC_INLINE uint32_t LL_HRTIM_CHP_GetPrescaler(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
5198{
5199 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5200 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].CHPxR) +
5201 REG_OFFSET_TAB_TIMER[iTimer]));
5202 return (READ_BIT(*pReg, HRTIM_CHPR_CARFRQ));
5203}
5204
5229__STATIC_INLINE void LL_HRTIM_CHP_SetDutyCycle(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t DutyCycle)
5230{
5231 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5232 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].CHPxR) +
5233 REG_OFFSET_TAB_TIMER[iTimer]));
5234 MODIFY_REG(*pReg, HRTIM_CHPR_CARDTY, DutyCycle);
5235}
5236
5257__STATIC_INLINE uint32_t LL_HRTIM_CHP_GetDutyCycle(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
5258{
5259 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5260 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].CHPxR) +
5261 REG_OFFSET_TAB_TIMER[iTimer]));
5262 return (READ_BIT(*pReg, HRTIM_CHPR_CARDTY));
5263}
5264
5296__STATIC_INLINE void LL_HRTIM_CHP_SetPulseWidth(HRTIM_TypeDef *HRTIMx, uint32_t Timer, uint32_t PulseWidth)
5297{
5298 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5299 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].CHPxR) +
5300 REG_OFFSET_TAB_TIMER[iTimer]));
5301 MODIFY_REG(*pReg, HRTIM_CHPR_STRPW, PulseWidth);
5302}
5303
5332__STATIC_INLINE uint32_t LL_HRTIM_CHP_GetPulseWidth(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
5333{
5334 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_TACEN_Pos);
5335 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].CHPxR) +
5336 REG_OFFSET_TAB_TIMER[iTimer]));
5337 return (READ_BIT(*pReg, HRTIM_CHPR_STRPW));
5338}
5339
5462__STATIC_INLINE void LL_HRTIM_OUT_SetOutputSetSrc(HRTIM_TypeDef *HRTIMx, uint32_t Output, uint32_t SetSrc)
5463{
5464 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
5465 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].SETx1R) +
5466 REG_OFFSET_TAB_SETxR[iOutput]));
5467 WRITE_REG(*pReg, SetSrc);
5468}
5469
5582__STATIC_INLINE uint32_t LL_HRTIM_OUT_GetOutputSetSrc(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
5583{
5584 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
5585 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].SETx1R) +
5586 REG_OFFSET_TAB_SETxR[iOutput]));
5587 return (uint32_t) READ_REG(*pReg);
5588}
5589
5703__STATIC_INLINE void LL_HRTIM_OUT_SetOutputResetSrc(HRTIM_TypeDef *HRTIMx, uint32_t Output, uint32_t ResetSrc)
5704{
5705 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
5706 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].RSTx1R) +
5707 REG_OFFSET_TAB_SETxR[iOutput]));
5708 WRITE_REG(*pReg, ResetSrc);
5709}
5710
5823__STATIC_INLINE uint32_t LL_HRTIM_OUT_GetOutputResetSrc(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
5824{
5825 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
5826 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].RSTx1R) +
5827 REG_OFFSET_TAB_SETxR[iOutput]));
5828 return (uint32_t) READ_REG(*pReg);
5829}
5830
5866__STATIC_INLINE void LL_HRTIM_OUT_Config(HRTIM_TypeDef *HRTIMx, uint32_t Output, uint32_t Configuration)
5867{
5868 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
5869 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
5870 REG_OFFSET_TAB_OUTxR[iOutput]));
5871 MODIFY_REG(*pReg, (HRTIM_OUT_CONFIG_MASK << REG_SHIFT_TAB_OUTxR[iOutput]),
5872 (Configuration << REG_SHIFT_TAB_OUTxR[iOutput]));
5873}
5874
5896__STATIC_INLINE void LL_HRTIM_OUT_SetPolarity(HRTIM_TypeDef *HRTIMx, uint32_t Output, uint32_t Polarity)
5897{
5898 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
5899 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
5900 REG_OFFSET_TAB_OUTxR[iOutput]));
5901 MODIFY_REG(*pReg, (HRTIM_OUTR_POL1 << REG_SHIFT_TAB_OUTxR[iOutput]), (Polarity << REG_SHIFT_TAB_OUTxR[iOutput]));
5902}
5903
5924__STATIC_INLINE uint32_t LL_HRTIM_OUT_GetPolarity(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
5925{
5926 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
5927 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
5928 REG_OFFSET_TAB_OUTxR[iOutput]));
5929 return (READ_BIT(*pReg, (uint32_t)(HRTIM_OUTR_POL1) << REG_SHIFT_TAB_OUTxR[iOutput]) >> REG_SHIFT_TAB_OUTxR[iOutput]);
5930}
5931
5954__STATIC_INLINE void LL_HRTIM_OUT_SetIdleMode(HRTIM_TypeDef *HRTIMx, uint32_t Output, uint32_t IdleMode)
5955{
5956 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
5957 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
5958 REG_OFFSET_TAB_OUTxR[iOutput]));
5959 MODIFY_REG(*pReg, (HRTIM_OUTR_IDLM1 << (REG_SHIFT_TAB_OUTxR[iOutput])), (IdleMode << (REG_SHIFT_TAB_OUTxR[iOutput])));
5960}
5961
5982__STATIC_INLINE uint32_t LL_HRTIM_OUT_GetIdleMode(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
5983{
5984 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
5985 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
5986 REG_OFFSET_TAB_OUTxR[iOutput]));
5987 return (READ_BIT(*pReg, (uint32_t)(HRTIM_OUTR_IDLM1) << REG_SHIFT_TAB_OUTxR[iOutput]) >> REG_SHIFT_TAB_OUTxR[iOutput]);
5988}
5989
6013__STATIC_INLINE void LL_HRTIM_OUT_SetIdleLevel(HRTIM_TypeDef *HRTIMx, uint32_t Output, uint32_t IdleLevel)
6014{
6015 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6016 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
6017 REG_OFFSET_TAB_OUTxR[iOutput]));
6018 MODIFY_REG(*pReg, (HRTIM_OUTR_IDLES1 << REG_SHIFT_TAB_OUTxR[iOutput]), (IdleLevel << REG_SHIFT_TAB_OUTxR[iOutput]));
6019}
6020
6041__STATIC_INLINE uint32_t LL_HRTIM_OUT_GetIdleLevel(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
6042{
6043 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6044 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
6045 REG_OFFSET_TAB_OUTxR[iOutput]));
6046 return (READ_BIT(*pReg, (uint32_t)(HRTIM_OUTR_IDLES1) << REG_SHIFT_TAB_OUTxR[iOutput]) >> REG_SHIFT_TAB_OUTxR[iOutput]);
6047}
6048
6074__STATIC_INLINE void LL_HRTIM_OUT_SetFaultState(HRTIM_TypeDef *HRTIMx, uint32_t Output, uint32_t FaultState)
6075{
6076 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6077 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
6078 REG_OFFSET_TAB_OUTxR[iOutput]));
6079 MODIFY_REG(*pReg, (HRTIM_OUTR_FAULT1 << REG_SHIFT_TAB_OUTxR[iOutput]), (FaultState << REG_SHIFT_TAB_OUTxR[iOutput]));
6080}
6081
6104__STATIC_INLINE uint32_t LL_HRTIM_OUT_GetFaultState(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
6105{
6106 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6107 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
6108 REG_OFFSET_TAB_OUTxR[iOutput]));
6109 return (READ_BIT(*pReg, (uint32_t)(HRTIM_OUTR_FAULT1) << REG_SHIFT_TAB_OUTxR[iOutput]) >> REG_SHIFT_TAB_OUTxR[iOutput]);
6110}
6111
6134__STATIC_INLINE void LL_HRTIM_OUT_SetChopperMode(HRTIM_TypeDef *HRTIMx, uint32_t Output, uint32_t ChopperMode)
6135{
6136 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6137 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
6138 REG_OFFSET_TAB_OUTxR[iOutput]));
6139 MODIFY_REG(*pReg, (HRTIM_OUTR_CHP1 << REG_SHIFT_TAB_OUTxR[iOutput]), (ChopperMode << REG_SHIFT_TAB_OUTxR[iOutput]));
6140}
6141
6162__STATIC_INLINE uint32_t LL_HRTIM_OUT_GetChopperMode(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
6163{
6164 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6165 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
6166 REG_OFFSET_TAB_OUTxR[iOutput]));
6167 return (READ_BIT(*pReg, (uint32_t)(HRTIM_OUTR_CHP1) << REG_SHIFT_TAB_OUTxR[iOutput]) >> REG_SHIFT_TAB_OUTxR[iOutput]);
6168}
6169
6192__STATIC_INLINE void LL_HRTIM_OUT_SetBMEntryMode(HRTIM_TypeDef *HRTIMx, uint32_t Output, uint32_t BMEntryMode)
6193{
6194 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6195 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
6196 REG_OFFSET_TAB_OUTxR[iOutput]));
6197 MODIFY_REG(*pReg, (HRTIM_OUTR_DIDL1 << REG_SHIFT_TAB_OUTxR[iOutput]), (BMEntryMode << REG_SHIFT_TAB_OUTxR[iOutput]));
6198}
6199
6220__STATIC_INLINE uint32_t LL_HRTIM_OUT_GetBMEntryMode(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
6221{
6222 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6223 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].OUTxR) +
6224 REG_OFFSET_TAB_OUTxR[iOutput]));
6225 return (READ_BIT(*pReg, (uint32_t)(HRTIM_OUTR_DIDL1) << REG_SHIFT_TAB_OUTxR[iOutput]) >> REG_SHIFT_TAB_OUTxR[iOutput]);
6226}
6227
6249__STATIC_INLINE uint32_t LL_HRTIM_OUT_GetDLYPRTOutStatus(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
6250{
6251 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6252 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].TIMxISR) +
6253 REG_OFFSET_TAB_OUTxR[iOutput]));
6254 return ((READ_BIT(*pReg, (uint32_t)(HRTIM_TIMISR_O1STAT) << REG_SHIFT_TAB_OxSTAT[iOutput]) >> REG_SHIFT_TAB_OxSTAT[iOutput]) >>
6255 HRTIM_TIMISR_O1STAT_Pos);
6256}
6257
6281__STATIC_INLINE void LL_HRTIM_OUT_ForceLevel(HRTIM_TypeDef *HRTIMx, uint32_t Output, uint32_t OutputLevel)
6282{
6283 const uint8_t REG_OFFSET_TAB_OUT_LEVEL[] =
6284 {
6285 0x04U, /* 0: LL_HRTIM_OUT_LEVEL_INACTIVE */
6286 0x00U /* 1: LL_HRTIM_OUT_LEVEL_ACTIVE */
6287 };
6288
6289 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6290 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].SETx1R) +
6291 REG_OFFSET_TAB_SETxR[iOutput] + REG_OFFSET_TAB_OUT_LEVEL[OutputLevel]));
6292 SET_BIT(*pReg, HRTIM_SET1R_SST);
6293}
6294
6315__STATIC_INLINE uint32_t LL_HRTIM_OUT_GetLevel(const HRTIM_TypeDef *HRTIMx, uint32_t Output)
6316{
6317 uint32_t iOutput = (uint8_t)(POSITION_VAL(Output) - POSITION_VAL(LL_HRTIM_OUTPUT_TA1));
6318 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sTimerxRegs[0].TIMxISR) +
6319 REG_OFFSET_TAB_OUTxR[iOutput]));
6320 return ((READ_BIT(*pReg, (uint32_t)(HRTIM_TIMISR_O1CPY) << REG_SHIFT_TAB_OxSTAT[iOutput]) >> REG_SHIFT_TAB_OxSTAT[iOutput]) >>
6321 HRTIM_TIMISR_O1CPY_Pos);
6322}
6323
6397__STATIC_INLINE void LL_HRTIM_EE_Config(HRTIM_TypeDef *HRTIMx, uint32_t Event, uint32_t Configuration)
6398{
6399 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
6400 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.EECR1) +
6401 REG_OFFSET_TAB_EECR[iEvent]));
6402 MODIFY_REG(*pReg, (HRTIM_EE_CONFIG_MASK << REG_SHIFT_TAB_EExSRC[iEvent]),
6403 (Configuration << REG_SHIFT_TAB_EExSRC[iEvent]));
6404}
6405
6437__STATIC_INLINE void LL_HRTIM_EE_SetSrc(HRTIM_TypeDef *HRTIMx, uint32_t Event, uint32_t Src)
6438{
6439 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
6440 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.EECR1) +
6441 REG_OFFSET_TAB_EECR[iEvent]));
6442 MODIFY_REG(*pReg, (HRTIM_EECR1_EE1SRC << REG_SHIFT_TAB_EExSRC[iEvent]), (Src << REG_SHIFT_TAB_EExSRC[iEvent]));
6443}
6444
6475__STATIC_INLINE uint32_t LL_HRTIM_EE_GetSrc(const HRTIM_TypeDef *HRTIMx, uint32_t Event)
6476{
6477 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
6478 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.EECR1) +
6479 REG_OFFSET_TAB_EECR[iEvent]));
6480 return (READ_BIT(*pReg, (uint32_t)(HRTIM_EECR1_EE1SRC) << REG_SHIFT_TAB_EExSRC[iEvent]) >> REG_SHIFT_TAB_EExSRC[iEvent]);
6481}
6482
6514__STATIC_INLINE void LL_HRTIM_EE_SetPolarity(HRTIM_TypeDef *HRTIMx, uint32_t Event, uint32_t Polarity)
6515{
6516 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
6517 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.EECR1) +
6518 REG_OFFSET_TAB_EECR[iEvent]));
6519 MODIFY_REG(*pReg, (HRTIM_EECR1_EE1POL << REG_SHIFT_TAB_EExSRC[iEvent]), (Polarity << REG_SHIFT_TAB_EExSRC[iEvent]));
6520}
6521
6550__STATIC_INLINE uint32_t LL_HRTIM_EE_GetPolarity(const HRTIM_TypeDef *HRTIMx, uint32_t Event)
6551{
6552 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
6553 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.EECR1) +
6554 REG_OFFSET_TAB_EECR[iEvent]));
6555 return (READ_BIT(*pReg, (uint32_t)(HRTIM_EECR1_EE1POL) << REG_SHIFT_TAB_EExSRC[iEvent]) >> REG_SHIFT_TAB_EExSRC[iEvent]);
6556}
6557
6590__STATIC_INLINE void LL_HRTIM_EE_SetSensitivity(HRTIM_TypeDef *HRTIMx, uint32_t Event, uint32_t Sensitivity)
6591{
6592 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
6593 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.EECR1) +
6594 REG_OFFSET_TAB_EECR[iEvent]));
6595 MODIFY_REG(*pReg, (HRTIM_EECR1_EE1SNS << REG_SHIFT_TAB_EExSRC[iEvent]), (Sensitivity << REG_SHIFT_TAB_EExSRC[iEvent]));
6596}
6597
6628__STATIC_INLINE uint32_t LL_HRTIM_EE_GetSensitivity(const HRTIM_TypeDef *HRTIMx, uint32_t Event)
6629{
6630 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
6631 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.EECR1) +
6632 REG_OFFSET_TAB_EECR[iEvent]));
6633 return (READ_BIT(*pReg, (uint32_t)(HRTIM_EECR1_EE1SNS) << REG_SHIFT_TAB_EExSRC[iEvent]) >> REG_SHIFT_TAB_EExSRC[iEvent]);
6634}
6635
6661__STATIC_INLINE void LL_HRTIM_EE_SetFastMode(HRTIM_TypeDef *HRTIMx, uint32_t Event, uint32_t FastMode)
6662{
6663 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
6664 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.EECR1) +
6665 REG_OFFSET_TAB_EECR[iEvent]));
6666 MODIFY_REG(*pReg, (HRTIM_EECR1_EE1FAST << REG_SHIFT_TAB_EExSRC[iEvent]), (FastMode << REG_SHIFT_TAB_EExSRC[iEvent]));
6667}
6668
6692__STATIC_INLINE uint32_t LL_HRTIM_EE_GetFastMode(const HRTIM_TypeDef *HRTIMx, uint32_t Event)
6693{
6694 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
6695 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.EECR1) +
6696 REG_OFFSET_TAB_EECR[iEvent]));
6697 return (READ_BIT(*pReg, (uint32_t)(HRTIM_EECR1_EE1FAST) << REG_SHIFT_TAB_EExSRC[iEvent]) >> REG_SHIFT_TAB_EExSRC[iEvent]);
6698}
6699
6733__STATIC_INLINE void LL_HRTIM_EE_SetFilter(HRTIM_TypeDef *HRTIMx, uint32_t Event, uint32_t Filter)
6734{
6735 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_1));
6736 MODIFY_REG(HRTIMx->sCommonRegs.EECR3, (HRTIM_EECR3_EE6F << REG_SHIFT_TAB_EExSRC[iEvent]),
6737 (Filter << REG_SHIFT_TAB_EExSRC[iEvent]));
6738}
6739
6772__STATIC_INLINE uint32_t LL_HRTIM_EE_GetFilter(const HRTIM_TypeDef *HRTIMx, uint32_t Event)
6773{
6774 uint32_t iEvent = (uint8_t)(POSITION_VAL(Event) - POSITION_VAL(LL_HRTIM_EVENT_6));
6775 return (READ_BIT(HRTIMx->sCommonRegs.EECR3,
6776 (uint32_t)(HRTIM_EECR3_EE6F) << REG_SHIFT_TAB_EExSRC[iEvent]) >> REG_SHIFT_TAB_EExSRC[iEvent]);
6777}
6778
6791__STATIC_INLINE void LL_HRTIM_EE_SetPrescaler(HRTIM_TypeDef *HRTIMx, uint32_t Prescaler)
6792{
6793 MODIFY_REG(HRTIMx->sCommonRegs.EECR3, HRTIM_EECR3_EEVSD, Prescaler);
6794}
6795
6807__STATIC_INLINE uint32_t LL_HRTIM_EE_GetPrescaler(const HRTIM_TypeDef *HRTIMx)
6808{
6809 return (READ_BIT(HRTIMx->sCommonRegs.EECR3, HRTIM_EECR3_EEVSD));
6810}
6811
6845__STATIC_INLINE void LL_HRTIM_FLT_Config(HRTIM_TypeDef *HRTIMx, uint32_t Fault, uint32_t Configuration)
6846{
6847 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
6848 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
6849 REG_OFFSET_TAB_FLTINR[iFault]));
6850 MODIFY_REG(*pReg, (HRTIM_FLT_CONFIG_MASK << REG_SHIFT_TAB_FLTxE[iFault]),
6851 (Configuration << REG_SHIFT_TAB_FLTxE[iFault]));
6852}
6853
6874__STATIC_INLINE void LL_HRTIM_FLT_SetSrc(HRTIM_TypeDef *HRTIMx, uint32_t Fault, uint32_t Src)
6875{
6876 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
6877 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
6878 REG_OFFSET_TAB_FLTINR[iFault]));
6879 MODIFY_REG(*pReg, (HRTIM_FLTINR1_FLT1SRC << REG_SHIFT_TAB_FLTxE[iFault]), (Src << REG_SHIFT_TAB_FLTxE[iFault]));
6880}
6881
6900__STATIC_INLINE uint32_t LL_HRTIM_FLT_GetSrc(const HRTIM_TypeDef *HRTIMx, uint32_t Fault)
6901{
6902 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
6903 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
6904 REG_OFFSET_TAB_FLTINR[iFault]));
6905 return (READ_BIT(*pReg, (HRTIM_FLTINR1_FLT1SRC << REG_SHIFT_TAB_FLTxE[iFault])) >> REG_SHIFT_TAB_FLTxE[iFault]);
6906}
6907
6928__STATIC_INLINE void LL_HRTIM_FLT_SetPolarity(HRTIM_TypeDef *HRTIMx, uint32_t Fault, uint32_t Polarity)
6929{
6930 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
6931 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
6932 REG_OFFSET_TAB_FLTINR[iFault]));
6933 MODIFY_REG(*pReg, (HRTIM_FLTINR1_FLT1P << REG_SHIFT_TAB_FLTxE[iFault]), (Polarity << REG_SHIFT_TAB_FLTxE[iFault]));
6934}
6935
6954__STATIC_INLINE uint32_t LL_HRTIM_FLT_GetPolarity(const HRTIM_TypeDef *HRTIMx, uint32_t Fault)
6955{
6956 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
6957 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
6958 REG_OFFSET_TAB_FLTINR[iFault]));
6959 return (READ_BIT(*pReg, (HRTIM_FLTINR1_FLT1P << REG_SHIFT_TAB_FLTxE[iFault])) >> REG_SHIFT_TAB_FLTxE[iFault]);
6960}
6961
6996__STATIC_INLINE void LL_HRTIM_FLT_SetFilter(HRTIM_TypeDef *HRTIMx, uint32_t Fault, uint32_t Filter)
6997{
6998 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
6999 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
7000 REG_OFFSET_TAB_FLTINR[iFault]));
7001 MODIFY_REG(*pReg, (HRTIM_FLTINR1_FLT1F << REG_SHIFT_TAB_FLTxE[iFault]), (Filter << REG_SHIFT_TAB_FLTxE[iFault]));
7002}
7003
7036__STATIC_INLINE uint32_t LL_HRTIM_FLT_GetFilter(const HRTIM_TypeDef *HRTIMx, uint32_t Fault)
7037{
7038 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
7039 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
7040 REG_OFFSET_TAB_FLTINR[iFault]));
7041 return (READ_BIT(*pReg, (HRTIM_FLTINR1_FLT1F << REG_SHIFT_TAB_FLTxE[iFault])) >> REG_SHIFT_TAB_FLTxE[iFault]);
7042
7043}
7044
7056__STATIC_INLINE void LL_HRTIM_FLT_SetPrescaler(HRTIM_TypeDef *HRTIMx, uint32_t Prescaler)
7057{
7058 MODIFY_REG(HRTIMx->sCommonRegs.FLTINR2, HRTIM_FLTINR2_FLTSD, Prescaler);
7059}
7060
7071__STATIC_INLINE uint32_t LL_HRTIM_FLT_GetPrescaler(const HRTIM_TypeDef *HRTIMx)
7072{
7073 return (READ_BIT(HRTIMx->sCommonRegs.FLTINR2, HRTIM_FLTINR2_FLTSD));
7074}
7075
7092__STATIC_INLINE void LL_HRTIM_FLT_Lock(HRTIM_TypeDef *HRTIMx, uint32_t Fault)
7093{
7094 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
7095 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
7096 REG_OFFSET_TAB_FLTINR[iFault]));
7097 SET_BIT(*pReg, (HRTIM_FLTINR1_FLT1LCK << REG_SHIFT_TAB_FLTxE[iFault]));
7098}
7099
7116__STATIC_INLINE void LL_HRTIM_FLT_Enable(HRTIM_TypeDef *HRTIMx, uint32_t Fault)
7117{
7118 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
7119 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
7120 REG_OFFSET_TAB_FLTINR[iFault]));
7121 SET_BIT(*pReg, (HRTIM_FLTINR1_FLT1E << REG_SHIFT_TAB_FLTxE[iFault]));
7122}
7123
7140__STATIC_INLINE void LL_HRTIM_FLT_Disable(HRTIM_TypeDef *HRTIMx, uint32_t Fault)
7141{
7142 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
7143 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
7144 REG_OFFSET_TAB_FLTINR[iFault]));
7145 CLEAR_BIT(*pReg, (HRTIM_FLTINR1_FLT1E << REG_SHIFT_TAB_FLTxE[iFault]));
7146}
7147
7164__STATIC_INLINE uint32_t LL_HRTIM_FLT_IsEnabled(const HRTIM_TypeDef *HRTIMx, uint32_t Fault)
7165{
7166 uint32_t iFault = (uint8_t)POSITION_VAL(Fault);
7167 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sCommonRegs.FLTINR1) +
7168 REG_OFFSET_TAB_FLTINR[iFault]));
7169 return (((READ_BIT(*pReg, (HRTIM_FLTINR1_FLT1E << REG_SHIFT_TAB_FLTxE[iFault])) >> REG_SHIFT_TAB_FLTxE[iFault]) ==
7170 (HRTIM_IER_FLT1)) ? 1UL : 0UL);
7171}
7172
7194__STATIC_INLINE void LL_HRTIM_BM_Config(HRTIM_TypeDef *HRTIMx, uint32_t Configuration)
7195{
7196 MODIFY_REG(HRTIMx->sCommonRegs.BMCR, HRTIM_BM_CONFIG_MASK, Configuration);
7197}
7198
7208__STATIC_INLINE void LL_HRTIM_BM_SetMode(HRTIM_TypeDef *HRTIMx, uint32_t Mode)
7209{
7210 MODIFY_REG(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMOM, Mode);
7211}
7212
7221__STATIC_INLINE uint32_t LL_HRTIM_BM_GetMode(const HRTIM_TypeDef *HRTIMx)
7222{
7223 return (uint32_t)READ_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMOM);
7224}
7225
7243__STATIC_INLINE void LL_HRTIM_BM_SetClockSrc(HRTIM_TypeDef *HRTIMx, uint32_t ClockSrc)
7244{
7245 MODIFY_REG(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMCLK, ClockSrc);
7246}
7247
7275__STATIC_INLINE uint32_t LL_HRTIM_BM_GetClockSrc(const HRTIM_TypeDef *HRTIMx)
7276{
7277 return (uint32_t)READ_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMCLK);
7278}
7279
7303__STATIC_INLINE void LL_HRTIM_BM_SetPrescaler(HRTIM_TypeDef *HRTIMx, uint32_t Prescaler)
7304{
7305 MODIFY_REG(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMPRSC, Prescaler);
7306}
7307
7330__STATIC_INLINE uint32_t LL_HRTIM_BM_GetPrescaler(const HRTIM_TypeDef *HRTIMx)
7331{
7332 return (uint32_t)READ_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMPRSC);
7333}
7334
7341__STATIC_INLINE void LL_HRTIM_BM_EnablePreload(HRTIM_TypeDef *HRTIMx)
7342{
7343 SET_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMPREN);
7344}
7345
7352__STATIC_INLINE void LL_HRTIM_BM_DisablePreload(HRTIM_TypeDef *HRTIMx)
7353{
7354 CLEAR_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMPREN);
7355}
7356
7363__STATIC_INLINE uint32_t LL_HRTIM_BM_IsEnabledPreload(const HRTIM_TypeDef *HRTIMx)
7364{
7365 uint32_t temp; /* MISRAC-2012 compliance */
7366 temp = READ_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMPREN);
7367
7368 return ((temp == (HRTIM_BMCR_BMPREN)) ? 1UL : 0UL);
7369}
7370
7441__STATIC_INLINE void LL_HRTIM_BM_SetTrig(HRTIM_TypeDef *HRTIMx, uint32_t Trig)
7442{
7443 WRITE_REG(HRTIMx->sCommonRegs.BMTRGR, Trig);
7444}
7445
7515__STATIC_INLINE uint32_t LL_HRTIM_BM_GetTrig(const HRTIM_TypeDef *HRTIMx)
7516{
7517 return (uint32_t)READ_REG(HRTIMx->sCommonRegs.BMTRGR);
7518}
7519
7529__STATIC_INLINE void LL_HRTIM_BM_SetCompare(HRTIM_TypeDef *HRTIMx, uint32_t CompareValue)
7530{
7531 WRITE_REG(HRTIMx->sCommonRegs.BMCMPR, CompareValue);
7532}
7533
7542__STATIC_INLINE uint32_t LL_HRTIM_BM_GetCompare(const HRTIM_TypeDef *HRTIMx)
7543{
7544 return (uint32_t)READ_REG(HRTIMx->sCommonRegs.BMCMPR);
7545}
7546
7556__STATIC_INLINE void LL_HRTIM_BM_SetPeriod(HRTIM_TypeDef *HRTIMx, uint32_t Period)
7557{
7558 WRITE_REG(HRTIMx->sCommonRegs.BMPER, Period);
7559}
7560
7569__STATIC_INLINE uint32_t LL_HRTIM_BM_GetPeriod(const HRTIM_TypeDef *HRTIMx)
7570{
7571 return (uint32_t)READ_REG(HRTIMx->sCommonRegs.BMPER);
7572}
7573
7580__STATIC_INLINE void LL_HRTIM_BM_Enable(HRTIM_TypeDef *HRTIMx)
7581{
7582 SET_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BME);
7583}
7584
7591__STATIC_INLINE void LL_HRTIM_BM_Disable(HRTIM_TypeDef *HRTIMx)
7592{
7593 CLEAR_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BME);
7594}
7595
7602__STATIC_INLINE uint32_t LL_HRTIM_BM_IsEnabled(const HRTIM_TypeDef *HRTIMx)
7603{
7604 return ((READ_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BME) == (HRTIM_BMCR_BME)) ? 1UL : 0UL);
7605}
7606
7613__STATIC_INLINE void LL_HRTIM_BM_Start(HRTIM_TypeDef *HRTIMx)
7614{
7615 SET_BIT(HRTIMx->sCommonRegs.BMTRGR, HRTIM_BMTRGR_SW);
7616}
7617
7625__STATIC_INLINE void LL_HRTIM_BM_Stop(HRTIM_TypeDef *HRTIMx)
7626{
7627 CLEAR_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMSTAT);
7628}
7629
7638__STATIC_INLINE uint32_t LL_HRTIM_BM_GetStatus(const HRTIM_TypeDef *HRTIMx)
7639{
7640 return (READ_BIT(HRTIMx->sCommonRegs.BMCR, HRTIM_BMCR_BMSTAT));
7641}
7642
7658__STATIC_INLINE void LL_HRTIM_ClearFlag_FLT1(HRTIM_TypeDef *HRTIMx)
7659{
7660 SET_BIT(HRTIMx->sCommonRegs.ICR, HRTIM_ICR_FLT1C);
7661}
7662
7669__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_FLT1(const HRTIM_TypeDef *HRTIMx)
7670{
7671 return ((READ_BIT(HRTIMx->sCommonRegs.ISR, HRTIM_ISR_FLT1) == (HRTIM_ISR_FLT1)) ? 1UL : 0UL);
7672}
7673
7680__STATIC_INLINE void LL_HRTIM_ClearFlag_FLT2(HRTIM_TypeDef *HRTIMx)
7681{
7682 SET_BIT(HRTIMx->sCommonRegs.ICR, HRTIM_ICR_FLT2C);
7683}
7684
7691__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_FLT2(const HRTIM_TypeDef *HRTIMx)
7692{
7693 return ((READ_BIT(HRTIMx->sCommonRegs.ISR, HRTIM_ISR_FLT2) == (HRTIM_ISR_FLT2)) ? 1UL : 0UL);
7694}
7695
7702__STATIC_INLINE void LL_HRTIM_ClearFlag_FLT3(HRTIM_TypeDef *HRTIMx)
7703{
7704 SET_BIT(HRTIMx->sCommonRegs.ICR, HRTIM_ICR_FLT3C);
7705}
7706
7713__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_FLT3(const HRTIM_TypeDef *HRTIMx)
7714{
7715 return ((READ_BIT(HRTIMx->sCommonRegs.ISR, HRTIM_ISR_FLT3) == (HRTIM_ISR_FLT3)) ? 1UL : 0UL);
7716}
7717
7724__STATIC_INLINE void LL_HRTIM_ClearFlag_FLT4(HRTIM_TypeDef *HRTIMx)
7725{
7726 SET_BIT(HRTIMx->sCommonRegs.ICR, HRTIM_ICR_FLT4C);
7727}
7728
7735__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_FLT4(const HRTIM_TypeDef *HRTIMx)
7736{
7737 return ((READ_BIT(HRTIMx->sCommonRegs.ISR, HRTIM_ISR_FLT4) == (HRTIM_ISR_FLT4)) ? 1UL : 0UL);
7738}
7739
7746__STATIC_INLINE void LL_HRTIM_ClearFlag_FLT5(HRTIM_TypeDef *HRTIMx)
7747{
7748 SET_BIT(HRTIMx->sCommonRegs.ICR, HRTIM_ICR_FLT5C);
7749}
7750
7757__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_FLT5(const HRTIM_TypeDef *HRTIMx)
7758{
7759 return ((READ_BIT(HRTIMx->sCommonRegs.ISR, HRTIM_ISR_FLT5) == (HRTIM_ISR_FLT5)) ? 1UL : 0UL);
7760}
7761
7768__STATIC_INLINE void LL_HRTIM_ClearFlag_SYSFLT(HRTIM_TypeDef *HRTIMx)
7769{
7770 SET_BIT(HRTIMx->sCommonRegs.ICR, HRTIM_ICR_SYSFLTC);
7771}
7772
7779__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_SYSFLT(const HRTIM_TypeDef *HRTIMx)
7780{
7781 return ((READ_BIT(HRTIMx->sCommonRegs.ISR, HRTIM_ISR_SYSFLT) == (HRTIM_ISR_SYSFLT)) ? 1UL : 0UL);
7782}
7783
7790__STATIC_INLINE void LL_HRTIM_ClearFlag_BMPER(HRTIM_TypeDef *HRTIMx)
7791{
7792 SET_BIT(HRTIMx->sCommonRegs.ICR, HRTIM_ICR_BMPERC);
7793}
7794
7801__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_BMPER(const HRTIM_TypeDef *HRTIMx)
7802{
7803 return ((READ_BIT(HRTIMx->sCommonRegs.ISR, HRTIM_ISR_BMPER) == (HRTIM_ISR_BMPER)) ? 1UL : 0UL);
7804}
7805
7812__STATIC_INLINE void LL_HRTIM_ClearFlag_SYNC(HRTIM_TypeDef *HRTIMx)
7813{
7814 SET_BIT(HRTIMx->sMasterRegs.MICR, HRTIM_MICR_SYNC);
7815}
7816
7823__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_SYNC(const HRTIM_TypeDef *HRTIMx)
7824{
7825 return ((READ_BIT(HRTIMx->sMasterRegs.MISR, HRTIM_MISR_SYNC) == (HRTIM_MISR_SYNC)) ? 1UL : 0UL);
7826}
7827
7842__STATIC_INLINE void LL_HRTIM_ClearFlag_UPDATE(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
7843{
7844 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
7845 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
7846 REG_OFFSET_TAB_TIMER[iTimer]));
7847 SET_BIT(*pReg, HRTIM_MICR_MUPD);
7848}
7849
7864__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_UPDATE(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
7865{
7866 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
7867 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
7868 REG_OFFSET_TAB_TIMER[iTimer]));
7869
7870 return ((READ_BIT(*pReg, HRTIM_MISR_MUPD) == (HRTIM_MISR_MUPD)) ? 1UL : 0UL);
7871}
7872
7887__STATIC_INLINE void LL_HRTIM_ClearFlag_REP(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
7888{
7889 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
7890 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
7891 REG_OFFSET_TAB_TIMER[iTimer]));
7892 SET_BIT(*pReg, HRTIM_MICR_MREP);
7893
7894}
7895
7910__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_REP(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
7911{
7912 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
7913 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
7914 REG_OFFSET_TAB_TIMER[iTimer]));
7915
7916 return ((READ_BIT(*pReg, HRTIM_MISR_MREP) == (HRTIM_MISR_MREP)) ? 1UL : 0UL);
7917}
7918
7933__STATIC_INLINE void LL_HRTIM_ClearFlag_CMP1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
7934{
7935 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
7936 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
7937 REG_OFFSET_TAB_TIMER[iTimer]));
7938 SET_BIT(*pReg, HRTIM_MICR_MCMP1);
7939}
7940
7955__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_CMP1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
7956{
7957 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
7958 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
7959 REG_OFFSET_TAB_TIMER[iTimer]));
7960
7961 return ((READ_BIT(*pReg, HRTIM_MISR_MCMP1) == (HRTIM_MISR_MCMP1)) ? 1UL : 0UL);
7962}
7963
7978__STATIC_INLINE void LL_HRTIM_ClearFlag_CMP2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
7979{
7980 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
7981 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
7982 REG_OFFSET_TAB_TIMER[iTimer]));
7983 SET_BIT(*pReg, HRTIM_MICR_MCMP2);
7984}
7985
8000__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_CMP2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8001{
8002 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8003 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8004 REG_OFFSET_TAB_TIMER[iTimer]));
8005
8006 return ((READ_BIT(*pReg, HRTIM_MISR_MCMP2) == (HRTIM_MISR_MCMP2)) ? 1UL : 0UL);
8007}
8008
8023__STATIC_INLINE void LL_HRTIM_ClearFlag_CMP3(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8024{
8025 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8026 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
8027 REG_OFFSET_TAB_TIMER[iTimer]));
8028 SET_BIT(*pReg, HRTIM_MICR_MCMP3);
8029}
8030
8045__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_CMP3(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8046{
8047 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8048 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8049 REG_OFFSET_TAB_TIMER[iTimer]));
8050
8051 return ((READ_BIT(*pReg, HRTIM_MISR_MCMP3) == (HRTIM_MISR_MCMP3)) ? 1UL : 0UL);
8052}
8053
8068__STATIC_INLINE void LL_HRTIM_ClearFlag_CMP4(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8069{
8070 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8071 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
8072 REG_OFFSET_TAB_TIMER[iTimer]));
8073 SET_BIT(*pReg, HRTIM_MICR_MCMP4);
8074}
8075
8090__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_CMP4(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8091{
8092 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8093 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8094 REG_OFFSET_TAB_TIMER[iTimer]));
8095
8096 return ((READ_BIT(*pReg, HRTIM_MISR_MCMP4) == (HRTIM_MISR_MCMP4)) ? 1UL : 0UL);
8097}
8098
8111__STATIC_INLINE void LL_HRTIM_ClearFlag_CPT1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8112{
8113 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8114 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
8115 REG_OFFSET_TAB_TIMER[iTimer]));
8116 SET_BIT(*pReg, HRTIM_TIMICR_CPT1C);
8117}
8118
8131__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_CPT1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8132{
8133 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8134 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8135 REG_OFFSET_TAB_TIMER[iTimer]));
8136
8137 return ((READ_BIT(*pReg, HRTIM_TIMISR_CPT1) == (HRTIM_TIMISR_CPT1)) ? 1UL : 0UL);
8138}
8139
8152__STATIC_INLINE void LL_HRTIM_ClearFlag_CPT2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8153{
8154 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8155 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
8156 REG_OFFSET_TAB_TIMER[iTimer]));
8157 SET_BIT(*pReg, HRTIM_TIMICR_CPT2C);
8158}
8159
8172__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_CPT2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8173{
8174 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8175 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8176 REG_OFFSET_TAB_TIMER[iTimer]));
8177
8178 return ((READ_BIT(*pReg, HRTIM_TIMISR_CPT2) == (HRTIM_TIMISR_CPT2)) ? 1UL : 0UL);
8179}
8180
8193__STATIC_INLINE void LL_HRTIM_ClearFlag_SET1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8194{
8195 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8196 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
8197 REG_OFFSET_TAB_TIMER[iTimer]));
8198 SET_BIT(*pReg, HRTIM_TIMICR_SET1C);
8199}
8200
8213__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_SET1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8214{
8215 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8216 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8217 REG_OFFSET_TAB_TIMER[iTimer]));
8218
8219 return ((READ_BIT(*pReg, HRTIM_TIMISR_SET1) == (HRTIM_TIMISR_SET1)) ? 1UL : 0UL);
8220}
8221
8234__STATIC_INLINE void LL_HRTIM_ClearFlag_RST1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8235{
8236 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8237 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
8238 REG_OFFSET_TAB_TIMER[iTimer]));
8239 SET_BIT(*pReg, HRTIM_TIMICR_RST1C);
8240}
8241
8254__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_RST1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8255{
8256 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8257 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8258 REG_OFFSET_TAB_TIMER[iTimer]));
8259
8260 return ((READ_BIT(*pReg, HRTIM_TIMISR_RST1) == (HRTIM_TIMISR_RST1)) ? 1UL : 0UL);
8261}
8262
8275__STATIC_INLINE void LL_HRTIM_ClearFlag_SET2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8276{
8277 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8278 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
8279 REG_OFFSET_TAB_TIMER[iTimer]));
8280 SET_BIT(*pReg, HRTIM_TIMICR_SET2C);
8281}
8282
8295__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_SET2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8296{
8297 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8298 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8299 REG_OFFSET_TAB_TIMER[iTimer]));
8300
8301 return ((READ_BIT(*pReg, HRTIM_TIMISR_SET2) == (HRTIM_TIMISR_SET2)) ? 1UL : 0UL);
8302}
8303
8316__STATIC_INLINE void LL_HRTIM_ClearFlag_RST2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8317{
8318 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8319 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
8320 REG_OFFSET_TAB_TIMER[iTimer]));
8321 SET_BIT(*pReg, HRTIM_TIMICR_RST2C);
8322}
8323
8336__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_RST2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8337{
8338 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8339 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8340 REG_OFFSET_TAB_TIMER[iTimer]));
8341
8342 return ((READ_BIT(*pReg, HRTIM_TIMISR_RST2) == (HRTIM_TIMISR_RST2)) ? 1UL : 0UL);
8343}
8344
8357__STATIC_INLINE void LL_HRTIM_ClearFlag_RST(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8358{
8359 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8360 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
8361 REG_OFFSET_TAB_TIMER[iTimer]));
8362 SET_BIT(*pReg, HRTIM_TIMICR_RSTC);
8363}
8364
8377__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_RST(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8378{
8379 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8380 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8381 REG_OFFSET_TAB_TIMER[iTimer]));
8382
8383 return ((READ_BIT(*pReg, HRTIM_TIMISR_RST) == (HRTIM_TIMISR_RST)) ? 1UL : 0UL);
8384}
8385
8398__STATIC_INLINE void LL_HRTIM_ClearFlag_DLYPRT(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8399{
8400 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8401 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MICR) +
8402 REG_OFFSET_TAB_TIMER[iTimer]));
8403 SET_BIT(*pReg, HRTIM_TIMICR_DLYPRTC);
8404}
8405
8418__STATIC_INLINE uint32_t LL_HRTIM_IsActiveFlag_DLYPRT(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8419{
8420 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8421 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MISR) +
8422 REG_OFFSET_TAB_TIMER[iTimer]));
8423
8424 return ((READ_BIT(*pReg, HRTIM_TIMISR_DLYPRT) == (HRTIM_TIMISR_DLYPRT)) ? 1UL : 0UL);
8425}
8426
8442__STATIC_INLINE void LL_HRTIM_EnableIT_FLT1(HRTIM_TypeDef *HRTIMx)
8443{
8444 SET_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT1);
8445}
8446
8453__STATIC_INLINE void LL_HRTIM_DisableIT_FLT1(HRTIM_TypeDef *HRTIMx)
8454{
8455 CLEAR_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT1);
8456}
8457
8464__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_FLT1(const HRTIM_TypeDef *HRTIMx)
8465{
8466 return ((READ_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT1) == (HRTIM_IER_FLT1)) ? 1UL : 0UL);
8467}
8468
8475__STATIC_INLINE void LL_HRTIM_EnableIT_FLT2(HRTIM_TypeDef *HRTIMx)
8476{
8477 SET_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT2);
8478}
8479
8486__STATIC_INLINE void LL_HRTIM_DisableIT_FLT2(HRTIM_TypeDef *HRTIMx)
8487{
8488 CLEAR_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT2);
8489}
8490
8497__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_FLT2(const HRTIM_TypeDef *HRTIMx)
8498{
8499 return ((READ_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT2) == (HRTIM_IER_FLT2)) ? 1UL : 0UL);
8500}
8501
8508__STATIC_INLINE void LL_HRTIM_EnableIT_FLT3(HRTIM_TypeDef *HRTIMx)
8509{
8510 SET_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT3);
8511}
8512
8519__STATIC_INLINE void LL_HRTIM_DisableIT_FLT3(HRTIM_TypeDef *HRTIMx)
8520{
8521 CLEAR_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT3);
8522}
8523
8530__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_FLT3(const HRTIM_TypeDef *HRTIMx)
8531{
8532 return ((READ_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT3) == (HRTIM_IER_FLT3)) ? 1UL : 0UL);
8533}
8534
8541__STATIC_INLINE void LL_HRTIM_EnableIT_FLT4(HRTIM_TypeDef *HRTIMx)
8542{
8543 SET_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT4);
8544}
8545
8552__STATIC_INLINE void LL_HRTIM_DisableIT_FLT4(HRTIM_TypeDef *HRTIMx)
8553{
8554 CLEAR_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT4);
8555}
8556
8563__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_FLT4(const HRTIM_TypeDef *HRTIMx)
8564{
8565 return ((READ_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT4) == (HRTIM_IER_FLT4)) ? 1UL : 0UL);
8566}
8567
8574__STATIC_INLINE void LL_HRTIM_EnableIT_FLT5(HRTIM_TypeDef *HRTIMx)
8575{
8576 SET_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT5);
8577}
8578
8585__STATIC_INLINE void LL_HRTIM_DisableIT_FLT5(HRTIM_TypeDef *HRTIMx)
8586{
8587 CLEAR_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT5);
8588}
8589
8596__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_FLT5(const HRTIM_TypeDef *HRTIMx)
8597{
8598 return ((READ_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_FLT5) == (HRTIM_IER_FLT5)) ? 1UL : 0UL);
8599}
8600
8607__STATIC_INLINE void LL_HRTIM_EnableIT_SYSFLT(HRTIM_TypeDef *HRTIMx)
8608{
8609 SET_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_SYSFLT);
8610}
8611
8618__STATIC_INLINE void LL_HRTIM_DisableIT_SYSFLT(HRTIM_TypeDef *HRTIMx)
8619{
8620 CLEAR_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_SYSFLT);
8621}
8622
8629__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_SYSFLT(const HRTIM_TypeDef *HRTIMx)
8630{
8631 return ((READ_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_SYSFLT) == (HRTIM_IER_SYSFLT)) ? 1UL : 0UL);
8632}
8633
8640__STATIC_INLINE void LL_HRTIM_EnableIT_BMPER(HRTIM_TypeDef *HRTIMx)
8641{
8642 SET_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_BMPER);
8643}
8644
8651__STATIC_INLINE void LL_HRTIM_DisableIT_BMPER(HRTIM_TypeDef *HRTIMx)
8652{
8653 CLEAR_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_BMPER);
8654}
8655
8662__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_BMPER(const HRTIM_TypeDef *HRTIMx)
8663{
8664 return ((READ_BIT(HRTIMx->sCommonRegs.IER, HRTIM_IER_BMPER) == (HRTIM_IER_BMPER)) ? 1UL : 0UL);
8665}
8666
8673__STATIC_INLINE void LL_HRTIM_EnableIT_SYNC(HRTIM_TypeDef *HRTIMx)
8674{
8675 SET_BIT(HRTIMx->sMasterRegs.MDIER, HRTIM_MDIER_SYNCIE);
8676}
8677
8684__STATIC_INLINE void LL_HRTIM_DisableIT_SYNC(HRTIM_TypeDef *HRTIMx)
8685{
8686 CLEAR_BIT(HRTIMx->sMasterRegs.MDIER, HRTIM_MDIER_SYNCIE);
8687}
8688
8695__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_SYNC(const HRTIM_TypeDef *HRTIMx)
8696{
8697 return ((READ_BIT(HRTIMx->sMasterRegs.MDIER, HRTIM_MDIER_SYNCIE) == (HRTIM_MDIER_SYNCIE)) ? 1UL : 0UL);
8698}
8699
8714__STATIC_INLINE void LL_HRTIM_EnableIT_UPDATE(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8715{
8716 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8717 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8718 REG_OFFSET_TAB_TIMER[iTimer]));
8719 SET_BIT(*pReg, HRTIM_MDIER_MUPDIE);
8720}
8721
8736__STATIC_INLINE void LL_HRTIM_DisableIT_UPDATE(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8737{
8738 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8739 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8740 REG_OFFSET_TAB_TIMER[iTimer]));
8741 CLEAR_BIT(*pReg, HRTIM_MDIER_MUPDIE);
8742}
8743
8758__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_UPDATE(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8759{
8760 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8761 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8762 REG_OFFSET_TAB_TIMER[iTimer]));
8763
8764 return ((READ_BIT(*pReg, HRTIM_MDIER_MUPDIE) == (HRTIM_MDIER_MUPDIE)) ? 1UL : 0UL);
8765}
8766
8781__STATIC_INLINE void LL_HRTIM_EnableIT_REP(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8782{
8783 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8784 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8785 REG_OFFSET_TAB_TIMER[iTimer]));
8786 SET_BIT(*pReg, HRTIM_MDIER_MREPIE);
8787}
8788
8803__STATIC_INLINE void LL_HRTIM_DisableIT_REP(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8804{
8805 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8806 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8807 REG_OFFSET_TAB_TIMER[iTimer]));
8808 CLEAR_BIT(*pReg, HRTIM_MDIER_MREPIE);
8809}
8810
8825__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_REP(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8826{
8827 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8828 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8829 REG_OFFSET_TAB_TIMER[iTimer]));
8830
8831 return ((READ_BIT(*pReg, HRTIM_MDIER_MREPIE) == (HRTIM_MDIER_MREPIE)) ? 1UL : 0UL);
8832}
8833
8848__STATIC_INLINE void LL_HRTIM_EnableIT_CMP1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8849{
8850 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8851 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8852 REG_OFFSET_TAB_TIMER[iTimer]));
8853 SET_BIT(*pReg, HRTIM_MDIER_MCMP1IE);
8854}
8855
8870__STATIC_INLINE void LL_HRTIM_DisableIT_CMP1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8871{
8872 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8873 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8874 REG_OFFSET_TAB_TIMER[iTimer]));
8875 CLEAR_BIT(*pReg, HRTIM_MDIER_MCMP1IE);
8876}
8877
8892__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_CMP1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8893{
8894 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8895 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8896 REG_OFFSET_TAB_TIMER[iTimer]));
8897
8898 return ((READ_BIT(*pReg, HRTIM_MDIER_MCMP1IE) == (HRTIM_MDIER_MCMP1IE)) ? 1UL : 0UL);
8899}
8900
8915__STATIC_INLINE void LL_HRTIM_EnableIT_CMP2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8916{
8917 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8918 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8919 REG_OFFSET_TAB_TIMER[iTimer]));
8920 SET_BIT(*pReg, HRTIM_MDIER_MCMP2IE);
8921}
8922
8937__STATIC_INLINE void LL_HRTIM_DisableIT_CMP2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8938{
8939 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8940 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8941 REG_OFFSET_TAB_TIMER[iTimer]));
8942 CLEAR_BIT(*pReg, HRTIM_MDIER_MCMP2IE);
8943}
8944
8959__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_CMP2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8960{
8961 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8962 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8963 REG_OFFSET_TAB_TIMER[iTimer]));
8964
8965 return ((READ_BIT(*pReg, HRTIM_MDIER_MCMP2IE) == (HRTIM_MDIER_MCMP2IE)) ? 1UL : 0UL);
8966}
8967
8982__STATIC_INLINE void LL_HRTIM_EnableIT_CMP3(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
8983{
8984 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
8985 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
8986 REG_OFFSET_TAB_TIMER[iTimer]));
8987 SET_BIT(*pReg, HRTIM_MDIER_MCMP3IE);
8988}
8989
9004__STATIC_INLINE void LL_HRTIM_DisableIT_CMP3(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9005{
9006 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9007 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9008 REG_OFFSET_TAB_TIMER[iTimer]));
9009 CLEAR_BIT(*pReg, HRTIM_MDIER_MCMP3IE);
9010}
9011
9026__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_CMP3(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9027{
9028 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9029 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9030 REG_OFFSET_TAB_TIMER[iTimer]));
9031
9032 return ((READ_BIT(*pReg, HRTIM_MDIER_MCMP3IE) == (HRTIM_MDIER_MCMP3IE)) ? 1UL : 0UL);
9033}
9034
9049__STATIC_INLINE void LL_HRTIM_EnableIT_CMP4(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9050{
9051 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9052 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9053 REG_OFFSET_TAB_TIMER[iTimer]));
9054 SET_BIT(*pReg, HRTIM_MDIER_MCMP4IE);
9055}
9056
9071__STATIC_INLINE void LL_HRTIM_DisableIT_CMP4(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9072{
9073 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9074 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9075 REG_OFFSET_TAB_TIMER[iTimer]));
9076 CLEAR_BIT(*pReg, HRTIM_MDIER_MCMP4IE);
9077}
9078
9093__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_CMP4(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9094{
9095 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9096 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9097 REG_OFFSET_TAB_TIMER[iTimer]));
9098
9099 return ((READ_BIT(*pReg, HRTIM_MDIER_MCMP4IE) == (HRTIM_MDIER_MCMP4IE)) ? 1UL : 0UL);
9100}
9101
9114__STATIC_INLINE void LL_HRTIM_EnableIT_CPT1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9115{
9116 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9117 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9118 REG_OFFSET_TAB_TIMER[iTimer]));
9119 SET_BIT(*pReg, HRTIM_TIMDIER_CPT1IE);
9120}
9121
9134__STATIC_INLINE void LL_HRTIM_DisableIT_CPT1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9135{
9136 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9137 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9138 REG_OFFSET_TAB_TIMER[iTimer]));
9139 CLEAR_BIT(*pReg, HRTIM_TIMDIER_CPT1IE);
9140}
9141
9154__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_CPT1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9155{
9156 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9157 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9158 REG_OFFSET_TAB_TIMER[iTimer]));
9159
9160 return ((READ_BIT(*pReg, HRTIM_TIMDIER_CPT1IE) == (HRTIM_TIMDIER_CPT1IE)) ? 1UL : 0UL);
9161}
9162
9175__STATIC_INLINE void LL_HRTIM_EnableIT_CPT2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9176{
9177 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9178 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9179 REG_OFFSET_TAB_TIMER[iTimer]));
9180 SET_BIT(*pReg, HRTIM_TIMDIER_CPT2IE);
9181}
9182
9195__STATIC_INLINE void LL_HRTIM_DisableIT_CPT2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9196{
9197 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9198 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9199 REG_OFFSET_TAB_TIMER[iTimer]));
9200 CLEAR_BIT(*pReg, HRTIM_TIMDIER_CPT2IE);
9201}
9202
9215__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_CPT2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9216{
9217 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9218 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9219 REG_OFFSET_TAB_TIMER[iTimer]));
9220
9221 return ((READ_BIT(*pReg, HRTIM_TIMDIER_CPT2IE) == (HRTIM_TIMDIER_CPT2IE)) ? 1UL : 0UL);
9222}
9223
9236__STATIC_INLINE void LL_HRTIM_EnableIT_SET1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9237{
9238 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9239 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9240 REG_OFFSET_TAB_TIMER[iTimer]));
9241 SET_BIT(*pReg, HRTIM_TIMDIER_SET1IE);
9242}
9243
9256__STATIC_INLINE void LL_HRTIM_DisableIT_SET1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9257{
9258 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9259 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9260 REG_OFFSET_TAB_TIMER[iTimer]));
9261 CLEAR_BIT(*pReg, HRTIM_TIMDIER_SET1IE);
9262}
9263
9276__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_SET1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9277{
9278 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9279 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9280 REG_OFFSET_TAB_TIMER[iTimer]));
9281
9282 return ((READ_BIT(*pReg, HRTIM_TIMDIER_SET1IE) == (HRTIM_TIMDIER_SET1IE)) ? 1UL : 0UL);
9283}
9284
9297__STATIC_INLINE void LL_HRTIM_EnableIT_RST1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9298{
9299 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9300 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9301 REG_OFFSET_TAB_TIMER[iTimer]));
9302 SET_BIT(*pReg, HRTIM_TIMDIER_RST1IE);
9303}
9304
9317__STATIC_INLINE void LL_HRTIM_DisableIT_RST1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9318{
9319 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9320 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9321 REG_OFFSET_TAB_TIMER[iTimer]));
9322 CLEAR_BIT(*pReg, HRTIM_TIMDIER_RST1IE);
9323}
9324
9337__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_RST1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9338{
9339 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9340 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9341 REG_OFFSET_TAB_TIMER[iTimer]));
9342
9343 return ((READ_BIT(*pReg, HRTIM_TIMDIER_RST1IE) == (HRTIM_TIMDIER_RST1IE)) ? 1UL : 0UL);
9344}
9345
9358__STATIC_INLINE void LL_HRTIM_EnableIT_SET2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9359{
9360 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9361 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9362 REG_OFFSET_TAB_TIMER[iTimer]));
9363 SET_BIT(*pReg, HRTIM_TIMDIER_SET2IE);
9364}
9365
9378__STATIC_INLINE void LL_HRTIM_DisableIT_SET2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9379{
9380 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9381 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9382 REG_OFFSET_TAB_TIMER[iTimer]));
9383 CLEAR_BIT(*pReg, HRTIM_TIMDIER_SET2IE);
9384}
9385
9398__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_SET2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9399{
9400 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9401 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9402 REG_OFFSET_TAB_TIMER[iTimer]));
9403
9404 return ((READ_BIT(*pReg, HRTIM_TIMDIER_SET2IE) == (HRTIM_TIMDIER_SET2IE)) ? 1UL : 0UL);
9405}
9406
9419__STATIC_INLINE void LL_HRTIM_EnableIT_RST2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9420{
9421 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9422 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9423 REG_OFFSET_TAB_TIMER[iTimer]));
9424 SET_BIT(*pReg, HRTIM_TIMDIER_RST2IE);
9425}
9426
9439__STATIC_INLINE void LL_HRTIM_DisableIT_RST2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9440{
9441 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9442 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9443 REG_OFFSET_TAB_TIMER[iTimer]));
9444 CLEAR_BIT(*pReg, HRTIM_TIMDIER_RST2IE);
9445}
9446
9459__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_RST2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9460{
9461 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9462 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9463 REG_OFFSET_TAB_TIMER[iTimer]));
9464
9465 return ((READ_BIT(*pReg, HRTIM_TIMDIER_RST2IE) == (HRTIM_TIMDIER_RST2IE)) ? 1UL : 0UL);
9466}
9467
9480__STATIC_INLINE void LL_HRTIM_EnableIT_RST(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9481{
9482 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9483 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9484 REG_OFFSET_TAB_TIMER[iTimer]));
9485 SET_BIT(*pReg, HRTIM_TIMDIER_RSTIE);
9486}
9487
9500__STATIC_INLINE void LL_HRTIM_DisableIT_RST(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9501{
9502 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9503 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9504 REG_OFFSET_TAB_TIMER[iTimer]));
9505 CLEAR_BIT(*pReg, HRTIM_TIMDIER_RSTIE);
9506}
9507
9520__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_RST(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9521{
9522 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9523 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9524 REG_OFFSET_TAB_TIMER[iTimer]));
9525
9526 return ((READ_BIT(*pReg, HRTIM_TIMDIER_RSTIE) == (HRTIM_TIMDIER_RSTIE)) ? 1UL : 0UL);
9527}
9528
9541__STATIC_INLINE void LL_HRTIM_EnableIT_DLYPRT(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9542{
9543 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9544 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9545 REG_OFFSET_TAB_TIMER[iTimer]));
9546 SET_BIT(*pReg, HRTIM_TIMDIER_DLYPRTIE);
9547}
9548
9561__STATIC_INLINE void LL_HRTIM_DisableIT_DLYPRT(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9562{
9563 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9564 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9565 REG_OFFSET_TAB_TIMER[iTimer]));
9566 CLEAR_BIT(*pReg, HRTIM_TIMDIER_DLYPRTIE);
9567}
9568
9581__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledIT_DLYPRT(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9582{
9583 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9584 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9585 REG_OFFSET_TAB_TIMER[iTimer]));
9586
9587 return ((READ_BIT(*pReg, HRTIM_TIMDIER_DLYPRTIE) == (HRTIM_TIMDIER_DLYPRTIE)) ? 1UL : 0UL);
9588}
9589
9605__STATIC_INLINE void LL_HRTIM_EnableDMAReq_SYNC(HRTIM_TypeDef *HRTIMx)
9606{
9607 SET_BIT(HRTIMx->sMasterRegs.MDIER, HRTIM_MDIER_SYNCDE);
9608}
9609
9616__STATIC_INLINE void LL_HRTIM_DisableDMAReq_SYNC(HRTIM_TypeDef *HRTIMx)
9617{
9618 CLEAR_BIT(HRTIMx->sMasterRegs.MDIER, HRTIM_MDIER_SYNCDE);
9619}
9620
9627__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_SYNC(const HRTIM_TypeDef *HRTIMx)
9628{
9629 return ((READ_BIT(HRTIMx->sMasterRegs.MDIER, HRTIM_MDIER_SYNCDE) == (HRTIM_MDIER_SYNCDE)) ? 1UL : 0UL);
9630}
9631
9646__STATIC_INLINE void LL_HRTIM_EnableDMAReq_UPDATE(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9647{
9648 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9649 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9650 REG_OFFSET_TAB_TIMER[iTimer]));
9651 SET_BIT(*pReg, HRTIM_MDIER_MUPDDE);
9652}
9653
9668__STATIC_INLINE void LL_HRTIM_DisableDMAReq_UPDATE(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9669{
9670 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9671 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9672 REG_OFFSET_TAB_TIMER[iTimer]));
9673 CLEAR_BIT(*pReg, HRTIM_MDIER_MUPDDE);
9674}
9675
9690__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_UPDATE(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9691{
9692 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9693 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9694 REG_OFFSET_TAB_TIMER[iTimer]));
9695
9696 return ((READ_BIT(*pReg, HRTIM_MDIER_MUPDDE) == (HRTIM_MDIER_MUPDDE)) ? 1UL : 0UL);
9697}
9698
9713__STATIC_INLINE void LL_HRTIM_EnableDMAReq_REP(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9714{
9715 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9716 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9717 REG_OFFSET_TAB_TIMER[iTimer]));
9718 SET_BIT(*pReg, HRTIM_MDIER_MREPDE);
9719}
9720
9735__STATIC_INLINE void LL_HRTIM_DisableDMAReq_REP(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9736{
9737 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9738 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9739 REG_OFFSET_TAB_TIMER[iTimer]));
9740 CLEAR_BIT(*pReg, HRTIM_MDIER_MREPDE);
9741}
9742
9757__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_REP(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9758{
9759 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9760 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9761 REG_OFFSET_TAB_TIMER[iTimer]));
9762
9763 return ((READ_BIT(*pReg, HRTIM_MDIER_MREPDE) == (HRTIM_MDIER_MREPDE)) ? 1UL : 0UL);
9764}
9765
9780__STATIC_INLINE void LL_HRTIM_EnableDMAReq_CMP1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9781{
9782 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9783 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9784 REG_OFFSET_TAB_TIMER[iTimer]));
9785 SET_BIT(*pReg, HRTIM_MDIER_MCMP1DE);
9786}
9787
9802__STATIC_INLINE void LL_HRTIM_DisableDMAReq_CMP1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9803{
9804 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9805 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9806 REG_OFFSET_TAB_TIMER[iTimer]));
9807 CLEAR_BIT(*pReg, HRTIM_MDIER_MCMP1DE);
9808}
9809
9824__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_CMP1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9825{
9826 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9827 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9828 REG_OFFSET_TAB_TIMER[iTimer]));
9829
9830 return ((READ_BIT(*pReg, HRTIM_MDIER_MCMP1DE) == (HRTIM_MDIER_MCMP1DE)) ? 1UL : 0UL);
9831}
9832
9847__STATIC_INLINE void LL_HRTIM_EnableDMAReq_CMP2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9848{
9849 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9850 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9851 REG_OFFSET_TAB_TIMER[iTimer]));
9852 SET_BIT(*pReg, HRTIM_MDIER_MCMP2DE);
9853}
9854
9869__STATIC_INLINE void LL_HRTIM_DisableDMAReq_CMP2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9870{
9871 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9872 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9873 REG_OFFSET_TAB_TIMER[iTimer]));
9874 CLEAR_BIT(*pReg, HRTIM_MDIER_MCMP2DE);
9875}
9876
9891__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_CMP2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9892{
9893 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9894 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9895 REG_OFFSET_TAB_TIMER[iTimer]));
9896
9897 return ((READ_BIT(*pReg, HRTIM_MDIER_MCMP2DE) == (HRTIM_MDIER_MCMP2DE)) ? 1UL : 0UL);
9898}
9899
9914__STATIC_INLINE void LL_HRTIM_EnableDMAReq_CMP3(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9915{
9916 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9917 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9918 REG_OFFSET_TAB_TIMER[iTimer]));
9919 SET_BIT(*pReg, HRTIM_MDIER_MCMP3DE);
9920}
9921
9936__STATIC_INLINE void LL_HRTIM_DisableDMAReq_CMP3(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9937{
9938 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9939 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9940 REG_OFFSET_TAB_TIMER[iTimer]));
9941 CLEAR_BIT(*pReg, HRTIM_MDIER_MCMP3DE);
9942}
9943
9958__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_CMP3(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9959{
9960 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9961 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9962 REG_OFFSET_TAB_TIMER[iTimer]));
9963
9964 return ((READ_BIT(*pReg, HRTIM_MDIER_MCMP3DE) == (HRTIM_MDIER_MCMP3DE)) ? 1UL : 0UL);
9965}
9966
9981__STATIC_INLINE void LL_HRTIM_EnableDMAReq_CMP4(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
9982{
9983 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
9984 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
9985 REG_OFFSET_TAB_TIMER[iTimer]));
9986 SET_BIT(*pReg, HRTIM_MDIER_MCMP4DE);
9987}
9988
10003__STATIC_INLINE void LL_HRTIM_DisableDMAReq_CMP4(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10004{
10005 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10006 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10007 REG_OFFSET_TAB_TIMER[iTimer]));
10008 CLEAR_BIT(*pReg, HRTIM_MDIER_MCMP4DE);
10009}
10010
10025__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_CMP4(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10026{
10027 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10028 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10029 REG_OFFSET_TAB_TIMER[iTimer]));
10030
10031 return ((READ_BIT(*pReg, HRTIM_MDIER_MCMP4DE) == (HRTIM_MDIER_MCMP4DE)) ? 1UL : 0UL);
10032}
10033
10046__STATIC_INLINE void LL_HRTIM_EnableDMAReq_CPT1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10047{
10048 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10049 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10050 REG_OFFSET_TAB_TIMER[iTimer]));
10051 SET_BIT(*pReg, HRTIM_TIMDIER_CPT1DE);
10052}
10053
10066__STATIC_INLINE void LL_HRTIM_DisableDMAReq_CPT1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10067{
10068 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10069 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10070 REG_OFFSET_TAB_TIMER[iTimer]));
10071 CLEAR_BIT(*pReg, HRTIM_TIMDIER_CPT1DE);
10072}
10073
10086__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_CPT1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10087{
10088 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10089 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10090 REG_OFFSET_TAB_TIMER[iTimer]));
10091
10092 return ((READ_BIT(*pReg, HRTIM_TIMDIER_CPT1DE) == (HRTIM_TIMDIER_CPT1DE)) ? 1UL : 0UL);
10093}
10094
10107__STATIC_INLINE void LL_HRTIM_EnableDMAReq_CPT2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10108{
10109 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10110 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10111 REG_OFFSET_TAB_TIMER[iTimer]));
10112 SET_BIT(*pReg, HRTIM_TIMDIER_CPT2DE);
10113}
10114
10127__STATIC_INLINE void LL_HRTIM_DisableDMAReq_CPT2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10128{
10129 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10130 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10131 REG_OFFSET_TAB_TIMER[iTimer]));
10132 CLEAR_BIT(*pReg, HRTIM_TIMDIER_CPT2DE);
10133}
10134
10147__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_CPT2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10148{
10149 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10150 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10151 REG_OFFSET_TAB_TIMER[iTimer]));
10152
10153 return ((READ_BIT(*pReg, HRTIM_TIMDIER_CPT2DE) == (HRTIM_TIMDIER_CPT2DE)) ? 1UL : 0UL);
10154}
10155
10168__STATIC_INLINE void LL_HRTIM_EnableDMAReq_SET1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10169{
10170 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10171 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10172 REG_OFFSET_TAB_TIMER[iTimer]));
10173 SET_BIT(*pReg, HRTIM_TIMDIER_SET1DE);
10174}
10175
10188__STATIC_INLINE void LL_HRTIM_DisableDMAReq_SET1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10189{
10190 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10191 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10192 REG_OFFSET_TAB_TIMER[iTimer]));
10193 CLEAR_BIT(*pReg, HRTIM_TIMDIER_SET1DE);
10194}
10195
10208__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_SET1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10209{
10210 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10211 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10212 REG_OFFSET_TAB_TIMER[iTimer]));
10213
10214 return ((READ_BIT(*pReg, HRTIM_TIMDIER_SET1DE) == (HRTIM_TIMDIER_SET1DE)) ? 1UL : 0UL);
10215}
10216
10229__STATIC_INLINE void LL_HRTIM_EnableDMAReq_RST1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10230{
10231 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10232 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10233 REG_OFFSET_TAB_TIMER[iTimer]));
10234 SET_BIT(*pReg, HRTIM_TIMDIER_RST1DE);
10235}
10236
10249__STATIC_INLINE void LL_HRTIM_DisableDMAReq_RST1(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10250{
10251 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10252 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10253 REG_OFFSET_TAB_TIMER[iTimer]));
10254 CLEAR_BIT(*pReg, HRTIM_TIMDIER_RST1DE);
10255}
10256
10269__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_RST1(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10270{
10271 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10272 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10273 REG_OFFSET_TAB_TIMER[iTimer]));
10274
10275 return ((READ_BIT(*pReg, HRTIM_TIMDIER_RST1DE) == (HRTIM_TIMDIER_RST1DE)) ? 1UL : 0UL);
10276}
10277
10290__STATIC_INLINE void LL_HRTIM_EnableDMAReq_SET2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10291{
10292 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10293 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10294 REG_OFFSET_TAB_TIMER[iTimer]));
10295 SET_BIT(*pReg, HRTIM_TIMDIER_SET2DE);
10296}
10297
10310__STATIC_INLINE void LL_HRTIM_DisableDMAReq_SET2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10311{
10312 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10313 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10314 REG_OFFSET_TAB_TIMER[iTimer]));
10315 CLEAR_BIT(*pReg, HRTIM_TIMDIER_SET2DE);
10316}
10317
10330__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_SET2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10331{
10332 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10333 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10334 REG_OFFSET_TAB_TIMER[iTimer]));
10335
10336 return ((READ_BIT(*pReg, HRTIM_TIMDIER_SET2DE) == (HRTIM_TIMDIER_SET2DE)) ? 1UL : 0UL);
10337}
10338
10351__STATIC_INLINE void LL_HRTIM_EnableDMAReq_RST2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10352{
10353 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10354 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10355 REG_OFFSET_TAB_TIMER[iTimer]));
10356 SET_BIT(*pReg, HRTIM_TIMDIER_RST2DE);
10357}
10358
10371__STATIC_INLINE void LL_HRTIM_DisableDMAReq_RST2(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10372{
10373 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10374 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10375 REG_OFFSET_TAB_TIMER[iTimer]));
10376 CLEAR_BIT(*pReg, HRTIM_TIMDIER_RST2DE);
10377}
10378
10391__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_RST2(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10392{
10393 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10394 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10395 REG_OFFSET_TAB_TIMER[iTimer]));
10396
10397 return ((READ_BIT(*pReg, HRTIM_TIMDIER_RST2DE) == (HRTIM_TIMDIER_RST2DE)) ? 1UL : 0UL);
10398}
10399
10412__STATIC_INLINE void LL_HRTIM_EnableDMAReq_RST(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10413{
10414 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10415 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10416 REG_OFFSET_TAB_TIMER[iTimer]));
10417 SET_BIT(*pReg, HRTIM_TIMDIER_RSTDE);
10418}
10419
10432__STATIC_INLINE void LL_HRTIM_DisableDMAReq_RST(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10433{
10434 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10435 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10436 REG_OFFSET_TAB_TIMER[iTimer]));
10437 CLEAR_BIT(*pReg, HRTIM_TIMDIER_RSTDE);
10438}
10439
10452__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_RST(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10453{
10454 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10455 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10456 REG_OFFSET_TAB_TIMER[iTimer]));
10457
10458 return ((READ_BIT(*pReg, HRTIM_TIMDIER_RSTDE) == (HRTIM_TIMDIER_RSTDE)) ? 1UL : 0UL);
10459}
10460
10473__STATIC_INLINE void LL_HRTIM_EnableDMAReq_DLYPRT(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10474{
10475 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10476 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10477 REG_OFFSET_TAB_TIMER[iTimer]));
10478 SET_BIT(*pReg, HRTIM_TIMDIER_DLYPRTDE);
10479}
10480
10493__STATIC_INLINE void LL_HRTIM_DisableDMAReq_DLYPRT(HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10494{
10495 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10496 __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10497 REG_OFFSET_TAB_TIMER[iTimer]));
10498 CLEAR_BIT(*pReg, HRTIM_TIMDIER_DLYPRTDE);
10499}
10500
10513__STATIC_INLINE uint32_t LL_HRTIM_IsEnabledDMAReq_DLYPRT(const HRTIM_TypeDef *HRTIMx, uint32_t Timer)
10514{
10515 uint32_t iTimer = (uint8_t)(POSITION_VAL(Timer) - HRTIM_MCR_MCEN_Pos);
10516 const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&HRTIMx->sMasterRegs.MDIER) +
10517 REG_OFFSET_TAB_TIMER[iTimer]));
10518
10519 return ((READ_BIT(*pReg, HRTIM_TIMDIER_DLYPRTDE) == (HRTIM_TIMDIER_DLYPRTDE)) ? 1UL : 0UL);
10520}
10521
10526#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
10531ErrorStatus LL_HRTIM_DeInit(HRTIM_TypeDef* HRTIMx);
10535#endif /* USE_FULL_LL_DRIVER */
10536
10545#endif /* HRTIM1 */
10546
10551#ifdef __cplusplus
10552}
10553#endif
10554
10555#endif /* STM32H7xx_LL_HRTIM_H */
10556
10557
#define __IO
Definition: core_cm4.h:239
#define HRTIM_FLTINR1_FLT1P
Definition: stm32h742xx.h:23268
#define HRTIM_DTR_DTF
Definition: stm32h742xx.h:21160
#define HRTIM_MCMP1R_MCMP3R
Definition: stm32h742xx.h:20799
#define HRTIM_TIMDIER_CPT1IE
Definition: stm32h742xx.h:21014
#define HRTIM_MCR_RETRIG
Definition: stm32h742xx.h:20615
#define HRTIM_TIMISR_RST2
Definition: stm32h742xx.h:20923
#define HRTIM_MDIER_MCMP3IE
Definition: stm32h742xx.h:20735
#define HRTIM_MDIER_MCMP3DE
Definition: stm32h742xx.h:20757
#define HRTIM_TIMICR_CPT2C
Definition: stm32h742xx.h:20973
#define HRTIM_FLTINR2_FLTSD
Definition: stm32h742xx.h:23365
#define HRTIM_MCR_DACSYNC
Definition: stm32h742xx.h:20663
#define HRTIM_TIMISR_RST
Definition: stm32h742xx.h:20926
#define HRTIM_TIMDIER_RSTIE
Definition: stm32h742xx.h:21032
#define HRTIM_MCMP1R_MCMP2R
Definition: stm32h742xx.h:20794
#define HRTIM_MCR_SYNCSTRTM
Definition: stm32h742xx.h:20630
#define HRTIM_TIMDIER_RSTDE
Definition: stm32h742xx.h:21075
#define HRTIM_MCR_PREEN
Definition: stm32h742xx.h:20669
#define HRTIM_MCR_SYNC_SRC
Definition: stm32h742xx.h:20638
#define HRTIM_ISR_FLT4
Definition: stm32h742xx.h:22364
#define HRTIM_SET1R_SST
Definition: stm32h742xx.h:21183
#define HRTIM_EECR1_EE1FAST
Definition: stm32h742xx.h:22687
#define HRTIM_IER_FLT5
Definition: stm32h742xx.h:22413
#define HRTIM_ISR_FLT1
Definition: stm32h742xx.h:22355
#define HRTIM_IER_SYSFLT
Definition: stm32h742xx.h:22416
#define HRTIM_EECR1_EE1SNS
Definition: stm32h742xx.h:22682
#define HRTIM_MICR_MCMP4
Definition: stm32h742xx.h:20715
#define HRTIM_TIMICR_DLYPRTC
Definition: stm32h742xx.h:20991
#define HRTIM_OUTR_IDLM1
Definition: stm32h742xx.h:22200
#define HRTIM_TIMDIER_CPT2IE
Definition: stm32h742xx.h:21017
#define HRTIM_BMCR_BMSTAT
Definition: stm32h742xx.h:22561
#define HRTIM_BMCR_BMPREN
Definition: stm32h742xx.h:22540
#define HRTIM_DTR_DTR
Definition: stm32h742xx.h:21133
#define HRTIM_MCR_SYNC_IN
Definition: stm32h742xx.h:20622
#define HRTIM_MICR_MCMP1
Definition: stm32h742xx.h:20706
#define HRTIM_BMTRGR_SW
Definition: stm32h742xx.h:22566
#define HRTIM_TIMCR_UPDGAT
Definition: stm32h742xx.h:20881
#define HRTIM_DTR_DTRSLK
Definition: stm32h742xx.h:21154
#define HRTIM_OUTR_POL1
Definition: stm32h742xx.h:22197
#define HRTIM_OUTR_CHP1
Definition: stm32h742xx.h:22211
#define HRTIM_MCR_HALF
Definition: stm32h742xx.h:20618
#define HRTIM_TIMICR_CPT1C
Definition: stm32h742xx.h:20970
#define HRTIM_MISR_SYNC
Definition: stm32h742xx.h:20698
#define HRTIM_MDIER_MUPDDE
Definition: stm32h742xx.h:20769
#define HRTIM_IER_FLT1
Definition: stm32h742xx.h:22401
#define HRTIM_DTR_SDTR
Definition: stm32h742xx.h:21145
#define HRTIM_ISR_FLT3
Definition: stm32h742xx.h:22361
#define HRTIM_MICR_MCMP3
Definition: stm32h742xx.h:20712
#define HRTIM_TIMISR_CPT2
Definition: stm32h742xx.h:20911
#define HRTIM_ICR_FLT2C
Definition: stm32h742xx.h:22381
#define HRTIM_MDIER_MUPDIE
Definition: stm32h742xx.h:20747
#define HRTIM_EECR3_EE6F
Definition: stm32h742xx.h:22831
#define HRTIM_MCR_SYNC_OUT
Definition: stm32h742xx.h:20633
#define HRTIM_TIMISR_O1CPY
Definition: stm32h742xx.h:20944
#define HRTIM_FLTINR1_FLT1SRC
Definition: stm32h742xx.h:23271
#define HRTIM_MCMP1R_MCMP1R
Definition: stm32h742xx.h:20789
#define HRTIM_DTR_DTPRSC
Definition: stm32h742xx.h:21148
#define HRTIM_TIMCR_PSHPLL
Definition: stm32h742xx.h:20825
#define HRTIM_TIMDIER_CPT2DE
Definition: stm32h742xx.h:21060
#define HRTIM_TIMICR_RSTC
Definition: stm32h742xx.h:20988
#define HRTIM_MISR_MREP
Definition: stm32h742xx.h:20695
#define HRTIM_DTR_SDTF
Definition: stm32h742xx.h:21172
#define HRTIM_CR1_ADC1USRC
Definition: stm32h742xx.h:22291
#define HRTIM_ISR_FLT5
Definition: stm32h742xx.h:22367
#define HRTIM_OUTR_IDLES1
Definition: stm32h742xx.h:22203
#define HRTIM_MDIER_SYNCDE
Definition: stm32h742xx.h:20766
#define HRTIM_MCMP1R_MCMP4R
Definition: stm32h742xx.h:20804
#define HRTIM_MPER_MPER
Definition: stm32h742xx.h:20779
#define HRTIM_TIMISR_RST1
Definition: stm32h742xx.h:20917
#define HRTIM_IER_BMPER
Definition: stm32h742xx.h:22419
#define HRTIM_TIMISR_IPPSTAT
Definition: stm32h742xx.h:20935
#define HRTIM_MICR_SYNC
Definition: stm32h742xx.h:20721
#define HRTIM_TIMISR_CPPSTAT
Definition: stm32h742xx.h:20932
#define HRTIM_EEFR1_EE1LTCH
Definition: stm32h742xx.h:21592
#define HRTIM_MISR_MUPD
Definition: stm32h742xx.h:20701
#define HRTIM_EECR3_EEVSD
Definition: stm32h742xx.h:22866
#define HRTIM_TIMICR_SET1C
Definition: stm32h742xx.h:20976
#define HRTIM_IER_FLT3
Definition: stm32h742xx.h:22407
#define HRTIM_ISR_SYSFLT
Definition: stm32h742xx.h:22370
#define HRTIM_FLTINR1_FLT1LCK
Definition: stm32h742xx.h:23281
#define HRTIM_MCR_CK_PSC
Definition: stm32h742xx.h:20605
#define HRTIM_FLTINR1_FLT1F
Definition: stm32h742xx.h:23274
#define HRTIM_MDIER_MCMP1IE
Definition: stm32h742xx.h:20729
#define HRTIM_ISR_BMPER
Definition: stm32h742xx.h:22373
#define HRTIM_OUTR_DTEN
Definition: stm32h742xx.h:22218
#define HRTIM_MISR_MCMP2
Definition: stm32h742xx.h:20686
#define HRTIM_MCR_CONT
Definition: stm32h742xx.h:20612
#define HRTIM_OUTR_DLYPRT
Definition: stm32h742xx.h:22224
#define HRTIM_MDIER_MCMP4IE
Definition: stm32h742xx.h:20738
#define HRTIM_MICR_MCMP2
Definition: stm32h742xx.h:20709
#define HRTIM_MICR_MREP
Definition: stm32h742xx.h:20718
#define HRTIM_EEFR1_EE1FLTR
Definition: stm32h742xx.h:21595
#define HRTIM_MDIER_MCMP4DE
Definition: stm32h742xx.h:20760
#define HRTIM_OUTR_DLYPRTEN
Definition: stm32h742xx.h:22221
#define HRTIM_MCR_BRSTDMA
Definition: stm32h742xx.h:20676
#define HRTIM_BMCR_BME
Definition: stm32h742xx.h:22520
#define HRTIM_TIMDIER_CPT1DE
Definition: stm32h742xx.h:21057
#define HRTIM_TIMISR_SET2
Definition: stm32h742xx.h:20920
#define HRTIM_MISR_MCMP1
Definition: stm32h742xx.h:20683
#define HRTIM_TIMCR_RETRIG
Definition: stm32h742xx.h:20819
#define HRTIM_TIMDIER_RST1DE
Definition: stm32h742xx.h:21066
#define HRTIM_TIMDIER_DLYPRTIE
Definition: stm32h742xx.h:21035
#define HRTIM_TIMISR_CPT1
Definition: stm32h742xx.h:20908
#define HRTIM_TIMDIER_SET2IE
Definition: stm32h742xx.h:21026
#define HRTIM_FLTR_FLTLCK
Definition: stm32h742xx.h:22268
#define HRTIM_TIMDIER_SET1IE
Definition: stm32h742xx.h:21020
#define HRTIM_TIMISR_O1STAT
Definition: stm32h742xx.h:20938
#define HRTIM_ICR_FLT5C
Definition: stm32h742xx.h:22390
#define HRTIM_TIMDIER_DLYPRTDE
Definition: stm32h742xx.h:21078
#define HRTIM_ISR_FLT2
Definition: stm32h742xx.h:22358
#define HRTIM_TIMISR_SET1
Definition: stm32h742xx.h:20914
#define HRTIM_MREP_MREP
Definition: stm32h742xx.h:20784
#define HRTIM_MDIER_MCMP1DE
Definition: stm32h742xx.h:20751
#define HRTIM_TIMDIER_RST2DE
Definition: stm32h742xx.h:21072
#define HRTIM_DTR_DTFSLK
Definition: stm32h742xx.h:21175
#define HRTIM_TIMDIER_RST1IE
Definition: stm32h742xx.h:21023
#define HRTIM_IER_FLT2
Definition: stm32h742xx.h:22404
#define HRTIM_DTR_DTFLK
Definition: stm32h742xx.h:21178
#define HRTIM_BMCR_BMPRSC
Definition: stm32h742xx.h:22533
#define HRTIM_ICR_FLT4C
Definition: stm32h742xx.h:22387
#define HRTIM_ICR_BMPERC
Definition: stm32h742xx.h:22396
#define HRTIM_OUTR_FAULT1
Definition: stm32h742xx.h:22206
#define HRTIM_MISR_MCMP4
Definition: stm32h742xx.h:20692
#define HRTIM_IER_FLT4
Definition: stm32h742xx.h:22410
#define HRTIM_OUTR_DIDL1
Definition: stm32h742xx.h:22214
#define HRTIM_BMCR_BMCLK
Definition: stm32h742xx.h:22526
#define HRTIM_ICR_FLT3C
Definition: stm32h742xx.h:22384
#define HRTIM_TIMDIER_RST2IE
Definition: stm32h742xx.h:21029
#define HRTIM_MCR_SYNCRSTM
Definition: stm32h742xx.h:20627
#define HRTIM_FLTINR1_FLT1E
Definition: stm32h742xx.h:23265
#define HRTIM_TIMICR_RST1C
Definition: stm32h742xx.h:20979
#define HRTIM_TIMDIER_SET2DE
Definition: stm32h742xx.h:21069
#define HRTIM_DTR_DTRLK
Definition: stm32h742xx.h:21157
#define HRTIM_TIMICR_SET2C
Definition: stm32h742xx.h:20982
#define HRTIM_MDIER_MREPIE
Definition: stm32h742xx.h:20741
#define HRTIM_ICR_SYSFLTC
Definition: stm32h742xx.h:22393
#define HRTIM_EECR1_EE1SRC
Definition: stm32h742xx.h:22674
#define HRTIM_CHPR_STRPW
Definition: stm32h742xx.h:21982
#define HRTIM_MDIER_MCMP2IE
Definition: stm32h742xx.h:20732
#define HRTIM_MICR_MUPD
Definition: stm32h742xx.h:20724
#define HRTIM_EECR1_EE1POL
Definition: stm32h742xx.h:22679
#define HRTIM_TIMCR_DELCMP2
Definition: stm32h742xx.h:20836
#define HRTIM_TIMICR_RST2C
Definition: stm32h742xx.h:20985
#define HRTIM_ICR_FLT1C
Definition: stm32h742xx.h:22378
#define HRTIM_MISR_MCMP3
Definition: stm32h742xx.h:20689
#define HRTIM_MCNTR_MCNTR
Definition: stm32h742xx.h:20774
#define HRTIM_MDIER_MREPDE
Definition: stm32h742xx.h:20763
#define HRTIM_TIMDIER_SET1DE
Definition: stm32h742xx.h:21063
#define HRTIM_TIMISR_DLYPRT
Definition: stm32h742xx.h:20929
#define HRTIM_BMCR_BMOM
Definition: stm32h742xx.h:22523
#define HRTIM_CHPR_CARFRQ
Definition: stm32h742xx.h:21967
#define HRTIM_MDIER_MCMP2DE
Definition: stm32h742xx.h:20754
#define HRTIM_CHPR_CARDTY
Definition: stm32h742xx.h:21975
#define HRTIM_MDIER_SYNCIE
Definition: stm32h742xx.h:20744
CMSIS STM32H7xx Device Peripheral Access Layer Header File.
__IO uint32_t CR2
Definition: stm32h742xx.h:1632
__IO uint32_t FLTINR2
Definition: stm32h742xx.h:1652
__IO uint32_t EECR3
Definition: stm32h742xx.h:1645
__IO uint32_t FLTINR1
Definition: stm32h742xx.h:1651
__IO uint32_t EECR1
Definition: stm32h742xx.h:1643
__IO uint32_t ISR
Definition: stm32h742xx.h:1633
__IO uint32_t BDMUPR
Definition: stm32h742xx.h:1653
__IO uint32_t BMCR
Definition: stm32h742xx.h:1639
__IO uint32_t CR1
Definition: stm32h742xx.h:1631
__IO uint32_t OENR
Definition: stm32h742xx.h:1636
__IO uint32_t BMPER
Definition: stm32h742xx.h:1642
__IO uint32_t IER
Definition: stm32h742xx.h:1635
__IO uint32_t ICR
Definition: stm32h742xx.h:1634
__IO uint32_t BMTRGR
Definition: stm32h742xx.h:1640
__IO uint32_t BMCMPR
Definition: stm32h742xx.h:1641
__IO uint32_t ADC1R
Definition: stm32h742xx.h:1646
__IO uint32_t ODISR
Definition: stm32h742xx.h:1637
__IO uint32_t MCMP1R
Definition: stm32h742xx.h:1587
__IO uint32_t MCMP3R
Definition: stm32h742xx.h:1590
__IO uint32_t MPER
Definition: stm32h742xx.h:1585
__IO uint32_t MCNTR
Definition: stm32h742xx.h:1584
__IO uint32_t MCR
Definition: stm32h742xx.h:1580
__IO uint32_t MISR
Definition: stm32h742xx.h:1581
__IO uint32_t MCMP4R
Definition: stm32h742xx.h:1591
__IO uint32_t MCMP2R
Definition: stm32h742xx.h:1589
__IO uint32_t MICR
Definition: stm32h742xx.h:1582
__IO uint32_t MDIER
Definition: stm32h742xx.h:1583
__IO uint32_t MREP
Definition: stm32h742xx.h:1586
__IO uint32_t EEFxR1
Definition: stm32h742xx.h:1617
__IO uint32_t CHPxR
Definition: stm32h742xx.h:1620
__IO uint32_t TIMxISR
Definition: stm32h742xx.h:1599
__IO uint32_t CPT2xR
Definition: stm32h742xx.h:1611
__IO uint32_t RSTx1R
Definition: stm32h742xx.h:1614
__IO uint32_t DTxR
Definition: stm32h742xx.h:1612
__IO uint32_t CPT1xR
Definition: stm32h742xx.h:1610
__IO uint32_t RSTxR
Definition: stm32h742xx.h:1619
__IO uint32_t TIMxCR
Definition: stm32h742xx.h:1598
__IO uint32_t OUTxR
Definition: stm32h742xx.h:1623
__IO uint32_t CPT1xCR
Definition: stm32h742xx.h:1621
__IO uint32_t SETx1R
Definition: stm32h742xx.h:1613
__IO uint32_t FLTxR
Definition: stm32h742xx.h:1624
Definition: stm32h742xx.h:1663