RTEMS 6.1-rc6
Loading...
Searching...
No Matches
stm32h7xx_hal_hrtim.h
Go to the documentation of this file.
1
19/* Define to prevent recursive inclusion -------------------------------------*/
20#ifndef STM32H7xx_HAL_HRTIM_H
21#define STM32H7xx_HAL_HRTIM_H
22
23#ifdef __cplusplus
24 extern "C" {
25#endif
26
27/* Includes ------------------------------------------------------------------*/
28#include "stm32h7xx_hal_def.h"
29
30#if defined(HRTIM1)
39/* Exported types ------------------------------------------------------------*/
47#define MAX_HRTIM_TIMER 6U
63typedef struct
64{
65 uint32_t HRTIMInterruptResquests;
67 uint32_t SyncOptions;
71 uint32_t SyncInputSource;
74 uint32_t SyncOutputSource;
77 uint32_t SyncOutputPolarity;
80} HRTIM_InitTypeDef;
81
85typedef enum
86{
87 HAL_HRTIM_STATE_RESET = 0x00U,
88 HAL_HRTIM_STATE_READY = 0x01U,
89 HAL_HRTIM_STATE_BUSY = 0x02U,
90 HAL_HRTIM_STATE_TIMEOUT = 0x06U,
91 HAL_HRTIM_STATE_ERROR = 0x07U,
92#if (USE_HAL_HRTIM_REGISTER_CALLBACKS == 1)
93 HAL_HRTIM_STATE_INVALID_CALLBACK = 0x08U
94#endif /* USE_HAL_HRTIM_REGISTER_CALLBACKS */
95} HAL_HRTIM_StateTypeDef;
96
100typedef struct
101{
102 uint32_t CaptureTrigger1;
105 uint32_t CaptureTrigger2;
108 uint32_t InterruptRequests;
109 uint32_t DMARequests;
110 uint32_t DMASrcAddress;
111 uint32_t DMADstAddress;
112 uint32_t DMASize;
113} HRTIM_TimerParamTypeDef;
114
118#if (USE_HAL_HRTIM_REGISTER_CALLBACKS == 1)
119typedef struct __HRTIM_HandleTypeDef
120#else
121typedef struct
122#endif /* USE_HAL_HRTIM_REGISTER_CALLBACKS */
123{
124 HRTIM_TypeDef * Instance;
126 HRTIM_InitTypeDef Init;
128 HRTIM_TimerParamTypeDef TimerParam[MAX_HRTIM_TIMER];
130 HAL_LockTypeDef Lock;
132 __IO HAL_HRTIM_StateTypeDef State;
134 DMA_HandleTypeDef * hdmaMaster;
135 DMA_HandleTypeDef * hdmaTimerA;
136 DMA_HandleTypeDef * hdmaTimerB;
137 DMA_HandleTypeDef * hdmaTimerC;
138 DMA_HandleTypeDef * hdmaTimerD;
139 DMA_HandleTypeDef * hdmaTimerE;
141#if (USE_HAL_HRTIM_REGISTER_CALLBACKS == 1)
142 void (* Fault1Callback)(struct __HRTIM_HandleTypeDef *hhrtim);
143 void (* Fault2Callback)(struct __HRTIM_HandleTypeDef *hhrtim);
144 void (* Fault3Callback)(struct __HRTIM_HandleTypeDef *hhrtim);
145 void (* Fault4Callback)(struct __HRTIM_HandleTypeDef *hhrtim);
146 void (* Fault5Callback)(struct __HRTIM_HandleTypeDef *hhrtim);
147 void (* SystemFaultCallback)(struct __HRTIM_HandleTypeDef *hhrtim);
148 void (* BurstModePeriodCallback)(struct __HRTIM_HandleTypeDef *hhrtim);
149 void (* SynchronizationEventCallback)(struct __HRTIM_HandleTypeDef *hhrtim);
150 void (* ErrorCallback)(struct __HRTIM_HandleTypeDef *hhrtim);
152 void (* RegistersUpdateCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
153 void (* RepetitionEventCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
154 void (* Compare1EventCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
155 void (* Compare2EventCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
156 void (* Compare3EventCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
157 void (* Compare4EventCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
158 void (* Capture1EventCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
159 void (* Capture2EventCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
160 void (* DelayedProtectionCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
161 void (* CounterResetCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
162 void (* Output1SetCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
163 void (* Output1ResetCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
164 void (* Output2SetCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
165 void (* Output2ResetCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
166 void (* BurstDMATransferCallback)(struct __HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx);
168 void (* MspInitCallback)(struct __HRTIM_HandleTypeDef *hhrtim);
169 void (* MspDeInitCallback)(struct __HRTIM_HandleTypeDef *hhrtim);
170#endif /* USE_HAL_HRTIM_REGISTER_CALLBACKS */
171} HRTIM_HandleTypeDef;
172
176typedef struct
177{
178 uint32_t Period;
181 uint32_t RepetitionCounter;
183 uint32_t PrescalerRatio;
185 uint32_t Mode;
187} HRTIM_TimeBaseCfgTypeDef;
188
192typedef struct
193{
194 uint32_t Mode;
196 uint32_t Pulse;
198 uint32_t Polarity;
200 uint32_t IdleLevel;
202} HRTIM_SimpleOCChannelCfgTypeDef;
203
207typedef struct
208{
209 uint32_t Pulse;
211 uint32_t Polarity;
213 uint32_t IdleLevel;
215} HRTIM_SimplePWMChannelCfgTypeDef;
216
220typedef struct
221{
222 uint32_t Event;
224 uint32_t EventPolarity;
226 uint32_t EventSensitivity;
228 uint32_t EventFilter;
230} HRTIM_SimpleCaptureChannelCfgTypeDef;
231
235typedef struct
236{
237 uint32_t Pulse;
239 uint32_t OutputPolarity;
241 uint32_t OutputIdleLevel;
243 uint32_t Event;
245 uint32_t EventPolarity;
247 uint32_t EventSensitivity;
249 uint32_t EventFilter;
251} HRTIM_SimpleOnePulseChannelCfgTypeDef;
252
256typedef struct
257{
258 uint32_t InterruptRequests;
262 uint32_t DMARequests;
266 uint32_t DMASrcAddress;
268 uint32_t DMADstAddress;
270 uint32_t DMASize;
272 uint32_t HalfModeEnable;
275 uint32_t StartOnSync;
278 uint32_t ResetOnSync;
281 uint32_t DACSynchro;
284 uint32_t PreloadEnable;
287 uint32_t UpdateGating;
291 uint32_t BurstMode;
294 uint32_t RepetitionUpdate;
297 uint32_t PushPull;
300 uint32_t FaultEnable;
303 uint32_t FaultLock;
306 uint32_t DeadTimeInsertion;
309 uint32_t DelayedProtectionMode;
312 uint32_t UpdateTrigger;
315 uint32_t ResetTrigger;
318 uint32_t ResetUpdate;
321} HRTIM_TimerCfgTypeDef;
322
326typedef struct
327{
328 uint32_t CompareValue;
331 uint32_t AutoDelayedMode;
333 uint32_t AutoDelayedTimeout;
335} HRTIM_CompareCfgTypeDef;
336
340typedef struct
341{
342 uint32_t Trigger;
344} HRTIM_CaptureCfgTypeDef;
345
349typedef struct
350{
351 uint32_t Polarity;
353 uint32_t SetSource;
355 uint32_t ResetSource;
357 uint32_t IdleMode;
359 uint32_t IdleLevel;
361 uint32_t FaultLevel;
363 uint32_t ChopperModeEnable;
365 uint32_t BurstModeEntryDelayed;
367} HRTIM_OutputCfgTypeDef;
368
372typedef struct
373{
374 uint32_t Filter;
376 uint32_t Latch;
378} HRTIM_TimerEventFilteringCfgTypeDef;
379
383typedef struct
384{
385 uint32_t Prescaler;
387 uint32_t RisingValue;
389 uint32_t RisingSign;
391 uint32_t RisingLock;
393 uint32_t RisingSignLock;
395 uint32_t FallingValue;
397 uint32_t FallingSign;
399 uint32_t FallingLock;
401 uint32_t FallingSignLock;
403} HRTIM_DeadTimeCfgTypeDef;
404
408typedef struct
409{
410 uint32_t CarrierFreq;
412 uint32_t DutyCycle;
414 uint32_t StartPulse;
416} HRTIM_ChopperModeCfgTypeDef;
417
421typedef struct
422{
423 uint32_t Source;
425 uint32_t Polarity;
427 uint32_t Sensitivity;
429 uint32_t Filter;
431 uint32_t FastMode;
433} HRTIM_EventCfgTypeDef;
434
438typedef struct
439{
440 uint32_t Source;
442 uint32_t Polarity;
444 uint32_t Filter;
446 uint32_t Lock;
448} HRTIM_FaultCfgTypeDef;
449
453typedef struct
454{
455 uint32_t Mode;
457 uint32_t ClockSource;
459 uint32_t Prescaler;
461 uint32_t PreloadEnable;
463 uint32_t Trigger;
465 uint32_t IdleDuration;
467 uint32_t Period;
469} HRTIM_BurstModeCfgTypeDef;
470
474typedef struct
475{
476 uint32_t UpdateSource;
478 uint32_t Trigger;
480} HRTIM_ADCTriggerCfgTypeDef;
481
482#if (USE_HAL_HRTIM_REGISTER_CALLBACKS == 1)
486typedef enum {
487 HAL_HRTIM_FAULT1CALLBACK_CB_ID = 0x00U,
488 HAL_HRTIM_FAULT2CALLBACK_CB_ID = 0x01U,
489 HAL_HRTIM_FAULT3CALLBACK_CB_ID = 0x02U,
490 HAL_HRTIM_FAULT4CALLBACK_CB_ID = 0x03U,
491 HAL_HRTIM_FAULT5CALLBACK_CB_ID = 0x04U,
492 HAL_HRTIM_SYSTEMFAULTCALLBACK_CB_ID = 0x05U,
493 HAL_HRTIM_BURSTMODEPERIODCALLBACK_CB_ID = 0x07U,
494 HAL_HRTIM_SYNCHRONIZATIONEVENTCALLBACK_CB_ID = 0x08U,
495 HAL_HRTIM_ERRORCALLBACK_CB_ID = 0x09U,
497 HAL_HRTIM_REGISTERSUPDATECALLBACK_CB_ID = 0x10U,
498 HAL_HRTIM_REPETITIONEVENTCALLBACK_CB_ID = 0x11U,
499 HAL_HRTIM_COMPARE1EVENTCALLBACK_CB_ID = 0x12U,
500 HAL_HRTIM_COMPARE2EVENTCALLBACK_CB_ID = 0x13U,
501 HAL_HRTIM_COMPARE3EVENTCALLBACK_CB_ID = 0x14U,
502 HAL_HRTIM_COMPARE4EVENTCALLBACK_CB_ID = 0x15U,
503 HAL_HRTIM_CAPTURE1EVENTCALLBACK_CB_ID = 0x16U,
504 HAL_HRTIM_CAPTURE2EVENTCALLBACK_CB_ID = 0x17U,
505 HAL_HRTIM_DELAYEDPROTECTIONCALLBACK_CB_ID = 0x18U,
506 HAL_HRTIM_COUNTERRESETCALLBACK_CB_ID = 0x19U,
507 HAL_HRTIM_OUTPUT1SETCALLBACK_CB_ID = 0x1AU,
508 HAL_HRTIM_OUTPUT1RESETCALLBACK_CB_ID = 0x1BU,
509 HAL_HRTIM_OUTPUT2SETCALLBACK_CB_ID = 0x1CU,
510 HAL_HRTIM_OUTPUT2RESETCALLBACK_CB_ID = 0x1DU,
511 HAL_HRTIM_BURSTDMATRANSFERCALLBACK_CB_ID = 0x1EU,
513 HAL_HRTIM_MSPINIT_CB_ID = 0x20U,
514 HAL_HRTIM_MSPDEINIT_CB_ID = 0x21U,
515}HAL_HRTIM_CallbackIDTypeDef;
516
520typedef void (* pHRTIM_CallbackTypeDef)(HRTIM_HandleTypeDef *hhrtim);
522typedef void (* pHRTIM_TIMxCallbackTypeDef)(HRTIM_HandleTypeDef *hhrtim,
523 uint32_t TimerIdx);
524#endif /* USE_HAL_HRTIM_REGISTER_CALLBACKS */
525
530/* Exported constants --------------------------------------------------------*/
541#define HRTIM_TIMERINDEX_TIMER_A 0x0U
542#define HRTIM_TIMERINDEX_TIMER_B 0x1U
543#define HRTIM_TIMERINDEX_TIMER_C 0x2U
544#define HRTIM_TIMERINDEX_TIMER_D 0x3U
545#define HRTIM_TIMERINDEX_TIMER_E 0x4U
546#define HRTIM_TIMERINDEX_MASTER 0x5U
547#define HRTIM_TIMERINDEX_COMMON 0xFFU
557#define HRTIM_TIMERID_MASTER (HRTIM_MCR_MCEN)
558#define HRTIM_TIMERID_TIMER_A (HRTIM_MCR_TACEN)
559#define HRTIM_TIMERID_TIMER_B (HRTIM_MCR_TBCEN)
560#define HRTIM_TIMERID_TIMER_C (HRTIM_MCR_TCCEN)
561#define HRTIM_TIMERID_TIMER_D (HRTIM_MCR_TDCEN)
562#define HRTIM_TIMERID_TIMER_E (HRTIM_MCR_TECEN)
572#define HRTIM_COMPAREUNIT_1 0x00000001U
573#define HRTIM_COMPAREUNIT_2 0x00000002U
574#define HRTIM_COMPAREUNIT_3 0x00000004U
575#define HRTIM_COMPAREUNIT_4 0x00000008U
585#define HRTIM_CAPTUREUNIT_1 0x00000001U
586#define HRTIM_CAPTUREUNIT_2 0x00000002U
596#define HRTIM_OUTPUT_TA1 0x00000001U
597#define HRTIM_OUTPUT_TA2 0x00000002U
598#define HRTIM_OUTPUT_TB1 0x00000004U
599#define HRTIM_OUTPUT_TB2 0x00000008U
600#define HRTIM_OUTPUT_TC1 0x00000010U
601#define HRTIM_OUTPUT_TC2 0x00000020U
602#define HRTIM_OUTPUT_TD1 0x00000040U
603#define HRTIM_OUTPUT_TD2 0x00000080U
604#define HRTIM_OUTPUT_TE1 0x00000100U
605#define HRTIM_OUTPUT_TE2 0x00000200U
615#define HRTIM_ADCTRIGGER_1 0x00000001U
616#define HRTIM_ADCTRIGGER_2 0x00000002U
617#define HRTIM_ADCTRIGGER_3 0x00000004U
618#define HRTIM_ADCTRIGGER_4 0x00000008U
620#define IS_HRTIM_ADCTRIGGER(ADCTRIGGER)\
621 (((ADCTRIGGER) == HRTIM_ADCTRIGGER_1) || \
622 ((ADCTRIGGER) == HRTIM_ADCTRIGGER_2) || \
623 ((ADCTRIGGER) == HRTIM_ADCTRIGGER_3) || \
624 ((ADCTRIGGER) == HRTIM_ADCTRIGGER_4))
633#define HRTIM_EVENT_NONE (0x00000000U)
634#define HRTIM_EVENT_1 (0x00000001U)
635#define HRTIM_EVENT_2 (0x00000002U)
636#define HRTIM_EVENT_3 (0x00000003U)
637#define HRTIM_EVENT_4 (0x00000004U)
638#define HRTIM_EVENT_5 (0x00000005U)
639#define HRTIM_EVENT_6 (0x00000006U)
640#define HRTIM_EVENT_7 (0x00000007U)
641#define HRTIM_EVENT_8 (0x00000008U)
642#define HRTIM_EVENT_9 (0x00000009U)
643#define HRTIM_EVENT_10 (0x0000000AU)
653#define HRTIM_FAULT_1 (0x01U)
654#define HRTIM_FAULT_2 (0x02U)
655#define HRTIM_FAULT_3 (0x04U)
656#define HRTIM_FAULT_4 (0x08U)
657#define HRTIM_FAULT_5 (0x10U)
668#define HRTIM_PRESCALERRATIO_DIV1 (0x00000005U)
669#define HRTIM_PRESCALERRATIO_DIV2 (0x00000006U)
670#define HRTIM_PRESCALERRATIO_DIV4 (0x00000007U)
680#define HRTIM_MODE_CONTINUOUS (0x00000008U)
681#define HRTIM_MODE_SINGLESHOT (0x00000000U)
682#define HRTIM_MODE_SINGLESHOT_RETRIGGERABLE (0x00000010U)
692#define HRTIM_HALFMODE_DISABLED (0x00000000U)
693#define HRTIM_HALFMODE_ENABLED (0x00000020U)
703#define HRTIM_SYNCSTART_DISABLED (0x00000000U)
704#define HRTIM_SYNCSTART_ENABLED (HRTIM_MCR_SYNCSTRTM)
714#define HRTIM_SYNCRESET_DISABLED (0x00000000U)
715#define HRTIM_SYNCRESET_ENABLED (HRTIM_MCR_SYNCRSTM)
725#define HRTIM_DACSYNC_NONE 0x00000000U
726#define HRTIM_DACSYNC_DACTRIGOUT_1 (HRTIM_MCR_DACSYNC_0)
727#define HRTIM_DACSYNC_DACTRIGOUT_2 (HRTIM_MCR_DACSYNC_1)
728#define HRTIM_DACSYNC_DACTRIGOUT_3 (HRTIM_MCR_DACSYNC_1 | HRTIM_MCR_DACSYNC_0)
739#define HRTIM_PRELOAD_DISABLED (0x00000000U)
740#define HRTIM_PRELOAD_ENABLED (HRTIM_MCR_PREEN)
751#define HRTIM_UPDATEGATING_INDEPENDENT 0x00000000U
752#define HRTIM_UPDATEGATING_DMABURST (HRTIM_TIMCR_UPDGAT_0)
753#define HRTIM_UPDATEGATING_DMABURST_UPDATE (HRTIM_TIMCR_UPDGAT_1)
754#define HRTIM_UPDATEGATING_UPDEN1 (HRTIM_TIMCR_UPDGAT_1 | HRTIM_TIMCR_UPDGAT_0)
755#define HRTIM_UPDATEGATING_UPDEN2 (HRTIM_TIMCR_UPDGAT_2)
756#define HRTIM_UPDATEGATING_UPDEN3 (HRTIM_TIMCR_UPDGAT_2 | HRTIM_TIMCR_UPDGAT_0)
757#define HRTIM_UPDATEGATING_UPDEN1_UPDATE (HRTIM_TIMCR_UPDGAT_2 | HRTIM_TIMCR_UPDGAT_1)
758#define HRTIM_UPDATEGATING_UPDEN2_UPDATE (HRTIM_TIMCR_UPDGAT_2 | HRTIM_TIMCR_UPDGAT_1 | HRTIM_TIMCR_UPDGAT_0)
759#define HRTIM_UPDATEGATING_UPDEN3_UPDATE (HRTIM_TIMCR_UPDGAT_3)
770#define HRTIM_TIMERBURSTMODE_MAINTAINCLOCK 0x00000000U
771#define HRTIM_TIMERBURSTMODE_RESETCOUNTER (HRTIM_BMCR_MTBM)
783#define HRTIM_UPDATEONREPETITION_DISABLED 0x00000000U
784#define HRTIM_UPDATEONREPETITION_ENABLED (HRTIM_MCR_MREPU)
796#define HRTIM_TIMPUSHPULLMODE_DISABLED 0x00000000U
797#define HRTIM_TIMPUSHPULLMODE_ENABLED (HRTIM_TIMCR_PSHPLL)
807#define HRTIM_TIMFAULTENABLE_NONE 0x00000000U
808#define HRTIM_TIMFAULTENABLE_FAULT1 (HRTIM_FLTR_FLT1EN)
809#define HRTIM_TIMFAULTENABLE_FAULT2 (HRTIM_FLTR_FLT2EN)
810#define HRTIM_TIMFAULTENABLE_FAULT3 (HRTIM_FLTR_FLT3EN)
811#define HRTIM_TIMFAULTENABLE_FAULT4 (HRTIM_FLTR_FLT4EN)
812#define HRTIM_TIMFAULTENABLE_FAULT5 (HRTIM_FLTR_FLT5EN)
823#define HRTIM_TIMFAULTLOCK_READWRITE (0x00000000U)
824#define HRTIM_TIMFAULTLOCK_READONLY (HRTIM_FLTR_FLTLCK)
835#define HRTIM_TIMDEADTIMEINSERTION_DISABLED (0x00000000U)
836#define HRTIM_TIMDEADTIMEINSERTION_ENABLED HRTIM_OUTR_DTEN
848#define HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DISABLED (0x00000000U)
849#define HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_EEV6 (HRTIM_OUTR_DLYPRTEN)
850#define HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_EEV6 (HRTIM_OUTR_DLYPRT_0 | HRTIM_OUTR_DLYPRTEN)
851#define HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV6 (HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRTEN)
852#define HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV6 (HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRT_0 | HRTIM_OUTR_DLYPRTEN)
853#define HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_DEEV7 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRTEN)
854#define HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_DEEV7 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_0 | HRTIM_OUTR_DLYPRTEN)
855#define HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV7 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRTEN)
856#define HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV7 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRT_0 | HRTIM_OUTR_DLYPRTEN)
858#define HRTIM_TIMER_D_E_DELAYEDPROTECTION_DISABLED (0x00000000U)
859#define HRTIM_TIMER_D_E_DELAYEDPROTECTION_DELAYEDOUT1_EEV8 (HRTIM_OUTR_DLYPRTEN)
860#define HRTIM_TIMER_D_E_DELAYEDPROTECTION_DELAYEDOUT2_EEV8 (HRTIM_OUTR_DLYPRT_0 | HRTIM_OUTR_DLYPRTEN)
861#define HRTIM_TIMER_D_E_DELAYEDPROTECTION_DELAYEDBOTH_EEV8 (HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRTEN)
862#define HRTIM_TIMER_D_E_DELAYEDPROTECTION_BALANCED_EEV8 (HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRT_0 | HRTIM_OUTR_DLYPRTEN)
863#define HRTIM_TIMER_D_E_DELAYEDPROTECTION_DELAYEDOUT1_DEEV9 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRTEN)
864#define HRTIM_TIMER_D_E_DELAYEDPROTECTION_DELAYEDOUT2_DEEV9 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_0 | HRTIM_OUTR_DLYPRTEN)
865#define HRTIM_TIMER_D_E_DELAYEDPROTECTION_DELAYEDBOTH_EEV9 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRTEN)
866#define HRTIM_TIMER_D_E_DELAYEDPROTECTION_BALANCED_EEV9 (HRTIM_OUTR_DLYPRT_2 | HRTIM_OUTR_DLYPRT_1 | HRTIM_OUTR_DLYPRT_0 | HRTIM_OUTR_DLYPRTEN)
877#define HRTIM_TIMUPDATETRIGGER_NONE 0x00000000U
878#define HRTIM_TIMUPDATETRIGGER_MASTER (HRTIM_TIMCR_MSTU)
879#define HRTIM_TIMUPDATETRIGGER_TIMER_A (HRTIM_TIMCR_TAU)
880#define HRTIM_TIMUPDATETRIGGER_TIMER_B (HRTIM_TIMCR_TBU)
881#define HRTIM_TIMUPDATETRIGGER_TIMER_C (HRTIM_TIMCR_TCU)
882#define HRTIM_TIMUPDATETRIGGER_TIMER_D (HRTIM_TIMCR_TDU)
883#define HRTIM_TIMUPDATETRIGGER_TIMER_E (HRTIM_TIMCR_TEU)
894#define HRTIM_TIMRESETTRIGGER_NONE 0x00000000U
895#define HRTIM_TIMRESETTRIGGER_UPDATE (HRTIM_RSTR_UPDATE)
896#define HRTIM_TIMRESETTRIGGER_CMP2 (HRTIM_RSTR_CMP2)
897#define HRTIM_TIMRESETTRIGGER_CMP4 (HRTIM_RSTR_CMP4)
898#define HRTIM_TIMRESETTRIGGER_MASTER_PER (HRTIM_RSTR_MSTPER)
899#define HRTIM_TIMRESETTRIGGER_MASTER_CMP1 (HRTIM_RSTR_MSTCMP1)
900#define HRTIM_TIMRESETTRIGGER_MASTER_CMP2 (HRTIM_RSTR_MSTCMP2)
901#define HRTIM_TIMRESETTRIGGER_MASTER_CMP3 (HRTIM_RSTR_MSTCMP3)
902#define HRTIM_TIMRESETTRIGGER_MASTER_CMP4 (HRTIM_RSTR_MSTCMP4)
903#define HRTIM_TIMRESETTRIGGER_EEV_1 (HRTIM_RSTR_EXTEVNT1)
904#define HRTIM_TIMRESETTRIGGER_EEV_2 (HRTIM_RSTR_EXTEVNT2)
905#define HRTIM_TIMRESETTRIGGER_EEV_3 (HRTIM_RSTR_EXTEVNT3)
906#define HRTIM_TIMRESETTRIGGER_EEV_4 (HRTIM_RSTR_EXTEVNT4)
907#define HRTIM_TIMRESETTRIGGER_EEV_5 (HRTIM_RSTR_EXTEVNT5)
908#define HRTIM_TIMRESETTRIGGER_EEV_6 (HRTIM_RSTR_EXTEVNT6)
909#define HRTIM_TIMRESETTRIGGER_EEV_7 (HRTIM_RSTR_EXTEVNT7)
910#define HRTIM_TIMRESETTRIGGER_EEV_8 (HRTIM_RSTR_EXTEVNT8)
911#define HRTIM_TIMRESETTRIGGER_EEV_9 (HRTIM_RSTR_EXTEVNT9)
912#define HRTIM_TIMRESETTRIGGER_EEV_10 (HRTIM_RSTR_EXTEVNT10)
913#define HRTIM_TIMRESETTRIGGER_OTHER1_CMP1 (HRTIM_RSTR_TIMBCMP1)
914#define HRTIM_TIMRESETTRIGGER_OTHER1_CMP2 (HRTIM_RSTR_TIMBCMP2)
915#define HRTIM_TIMRESETTRIGGER_OTHER1_CMP4 (HRTIM_RSTR_TIMBCMP4)
916#define HRTIM_TIMRESETTRIGGER_OTHER2_CMP1 (HRTIM_RSTR_TIMCCMP1)
917#define HRTIM_TIMRESETTRIGGER_OTHER2_CMP2 (HRTIM_RSTR_TIMCCMP2)
918#define HRTIM_TIMRESETTRIGGER_OTHER2_CMP4 (HRTIM_RSTR_TIMCCMP4)
919#define HRTIM_TIMRESETTRIGGER_OTHER3_CMP1 (HRTIM_RSTR_TIMDCMP1)
920#define HRTIM_TIMRESETTRIGGER_OTHER3_CMP2 (HRTIM_RSTR_TIMDCMP2)
921#define HRTIM_TIMRESETTRIGGER_OTHER3_CMP4 (HRTIM_RSTR_TIMDCMP4)
922#define HRTIM_TIMRESETTRIGGER_OTHER4_CMP1 (HRTIM_RSTR_TIMECMP1)
923#define HRTIM_TIMRESETTRIGGER_OTHER4_CMP2 (HRTIM_RSTR_TIMECMP2)
924#define HRTIM_TIMRESETTRIGGER_OTHER4_CMP4 (HRTIM_RSTR_TIMECMP4)
936#define HRTIM_TIMUPDATEONRESET_DISABLED 0x00000000U
937#define HRTIM_TIMUPDATEONRESET_ENABLED (HRTIM_TIMCR_TRSTU)
949#define HRTIM_AUTODELAYEDMODE_REGULAR (0x00000000U)
950#define HRTIM_AUTODELAYEDMODE_AUTODELAYED_NOTIMEOUT (HRTIM_TIMCR_DELCMP2_0)
951#define HRTIM_AUTODELAYEDMODE_AUTODELAYED_TIMEOUTCMP1 (HRTIM_TIMCR_DELCMP2_1)
952#define HRTIM_AUTODELAYEDMODE_AUTODELAYED_TIMEOUTCMP3 (HRTIM_TIMCR_DELCMP2_1 | HRTIM_TIMCR_DELCMP2_0)
963#define HRTIM_BASICOCMODE_TOGGLE (0x00000001U)
964#define HRTIM_BASICOCMODE_INACTIVE (0x00000002U)
965#define HRTIM_BASICOCMODE_ACTIVE (0x00000003U)
967#define IS_HRTIM_BASICOCMODE(BASICOCMODE)\
968 (((BASICOCMODE) == HRTIM_BASICOCMODE_TOGGLE) || \
969 ((BASICOCMODE) == HRTIM_BASICOCMODE_INACTIVE) || \
970 ((BASICOCMODE) == HRTIM_BASICOCMODE_ACTIVE))
980#define HRTIM_OUTPUTPOLARITY_HIGH (0x00000000U)
981#define HRTIM_OUTPUTPOLARITY_LOW (HRTIM_OUTR_POL1)
992#define HRTIM_OUTPUTSET_NONE 0x00000000U
993#define HRTIM_OUTPUTSET_RESYNC (HRTIM_SET1R_RESYNC)
994#define HRTIM_OUTPUTSET_TIMPER (HRTIM_SET1R_PER)
995#define HRTIM_OUTPUTSET_TIMCMP1 (HRTIM_SET1R_CMP1)
996#define HRTIM_OUTPUTSET_TIMCMP2 (HRTIM_SET1R_CMP2)
997#define HRTIM_OUTPUTSET_TIMCMP3 (HRTIM_SET1R_CMP3)
998#define HRTIM_OUTPUTSET_TIMCMP4 (HRTIM_SET1R_CMP4)
999#define HRTIM_OUTPUTSET_MASTERPER (HRTIM_SET1R_MSTPER)
1000#define HRTIM_OUTPUTSET_MASTERCMP1 (HRTIM_SET1R_MSTCMP1)
1001#define HRTIM_OUTPUTSET_MASTERCMP2 (HRTIM_SET1R_MSTCMP2)
1002#define HRTIM_OUTPUTSET_MASTERCMP3 (HRTIM_SET1R_MSTCMP3)
1003#define HRTIM_OUTPUTSET_MASTERCMP4 (HRTIM_SET1R_MSTCMP4)
1004#define HRTIM_OUTPUTSET_TIMEV_1 (HRTIM_SET1R_TIMEVNT1)
1005#define HRTIM_OUTPUTSET_TIMEV_2 (HRTIM_SET1R_TIMEVNT2)
1006#define HRTIM_OUTPUTSET_TIMEV_3 (HRTIM_SET1R_TIMEVNT3)
1007#define HRTIM_OUTPUTSET_TIMEV_4 (HRTIM_SET1R_TIMEVNT4)
1008#define HRTIM_OUTPUTSET_TIMEV_5 (HRTIM_SET1R_TIMEVNT5)
1009#define HRTIM_OUTPUTSET_TIMEV_6 (HRTIM_SET1R_TIMEVNT6)
1010#define HRTIM_OUTPUTSET_TIMEV_7 (HRTIM_SET1R_TIMEVNT7)
1011#define HRTIM_OUTPUTSET_TIMEV_8 (HRTIM_SET1R_TIMEVNT8)
1012#define HRTIM_OUTPUTSET_TIMEV_9 (HRTIM_SET1R_TIMEVNT9)
1013#define HRTIM_OUTPUTSET_EEV_1 (HRTIM_SET1R_EXTVNT1)
1014#define HRTIM_OUTPUTSET_EEV_2 (HRTIM_SET1R_EXTVNT2)
1015#define HRTIM_OUTPUTSET_EEV_3 (HRTIM_SET1R_EXTVNT3)
1016#define HRTIM_OUTPUTSET_EEV_4 (HRTIM_SET1R_EXTVNT4)
1017#define HRTIM_OUTPUTSET_EEV_5 (HRTIM_SET1R_EXTVNT5)
1018#define HRTIM_OUTPUTSET_EEV_6 (HRTIM_SET1R_EXTVNT6)
1019#define HRTIM_OUTPUTSET_EEV_7 (HRTIM_SET1R_EXTVNT7)
1020#define HRTIM_OUTPUTSET_EEV_8 (HRTIM_SET1R_EXTVNT8)
1021#define HRTIM_OUTPUTSET_EEV_9 (HRTIM_SET1R_EXTVNT9)
1022#define HRTIM_OUTPUTSET_EEV_10 (HRTIM_SET1R_EXTVNT10)
1023#define HRTIM_OUTPUTSET_UPDATE (HRTIM_SET1R_UPDATE)
1034#define HRTIM_OUTPUTRESET_NONE 0x00000000U
1035#define HRTIM_OUTPUTRESET_RESYNC (HRTIM_RST1R_RESYNC)
1036#define HRTIM_OUTPUTRESET_TIMPER (HRTIM_RST1R_PER)
1037#define HRTIM_OUTPUTRESET_TIMCMP1 (HRTIM_RST1R_CMP1)
1038#define HRTIM_OUTPUTRESET_TIMCMP2 (HRTIM_RST1R_CMP2)
1039#define HRTIM_OUTPUTRESET_TIMCMP3 (HRTIM_RST1R_CMP3)
1040#define HRTIM_OUTPUTRESET_TIMCMP4 (HRTIM_RST1R_CMP4)
1041#define HRTIM_OUTPUTRESET_MASTERPER (HRTIM_RST1R_MSTPER)
1042#define HRTIM_OUTPUTRESET_MASTERCMP1 (HRTIM_RST1R_MSTCMP1)
1043#define HRTIM_OUTPUTRESET_MASTERCMP2 (HRTIM_RST1R_MSTCMP2)
1044#define HRTIM_OUTPUTRESET_MASTERCMP3 (HRTIM_RST1R_MSTCMP3)
1045#define HRTIM_OUTPUTRESET_MASTERCMP4 (HRTIM_RST1R_MSTCMP4)
1046#define HRTIM_OUTPUTRESET_TIMEV_1 (HRTIM_RST1R_TIMEVNT1)
1047#define HRTIM_OUTPUTRESET_TIMEV_2 (HRTIM_RST1R_TIMEVNT2)
1048#define HRTIM_OUTPUTRESET_TIMEV_3 (HRTIM_RST1R_TIMEVNT3)
1049#define HRTIM_OUTPUTRESET_TIMEV_4 (HRTIM_RST1R_TIMEVNT4)
1050#define HRTIM_OUTPUTRESET_TIMEV_5 (HRTIM_RST1R_TIMEVNT5)
1051#define HRTIM_OUTPUTRESET_TIMEV_6 (HRTIM_RST1R_TIMEVNT6)
1052#define HRTIM_OUTPUTRESET_TIMEV_7 (HRTIM_RST1R_TIMEVNT7)
1053#define HRTIM_OUTPUTRESET_TIMEV_8 (HRTIM_RST1R_TIMEVNT8)
1054#define HRTIM_OUTPUTRESET_TIMEV_9 (HRTIM_RST1R_TIMEVNT9)
1055#define HRTIM_OUTPUTRESET_EEV_1 (HRTIM_RST1R_EXTVNT1)
1056#define HRTIM_OUTPUTRESET_EEV_2 (HRTIM_RST1R_EXTVNT2)
1057#define HRTIM_OUTPUTRESET_EEV_3 (HRTIM_RST1R_EXTVNT3)
1058#define HRTIM_OUTPUTRESET_EEV_4 (HRTIM_RST1R_EXTVNT4)
1059#define HRTIM_OUTPUTRESET_EEV_5 (HRTIM_RST1R_EXTVNT5)
1060#define HRTIM_OUTPUTRESET_EEV_6 (HRTIM_RST1R_EXTVNT6)
1061#define HRTIM_OUTPUTRESET_EEV_7 (HRTIM_RST1R_EXTVNT7)
1062#define HRTIM_OUTPUTRESET_EEV_8 (HRTIM_RST1R_EXTVNT8)
1063#define HRTIM_OUTPUTRESET_EEV_9 (HRTIM_RST1R_EXTVNT9)
1064#define HRTIM_OUTPUTRESET_EEV_10 (HRTIM_RST1R_EXTVNT10)
1065#define HRTIM_OUTPUTRESET_UPDATE (HRTIM_RST1R_UPDATE)
1076#define HRTIM_OUTPUTIDLEMODE_NONE 0x00000000U
1077#define HRTIM_OUTPUTIDLEMODE_IDLE (HRTIM_OUTR_IDLM1)
1087#define HRTIM_OUTPUTIDLELEVEL_INACTIVE 0x00000000U
1088#define HRTIM_OUTPUTIDLELEVEL_ACTIVE (HRTIM_OUTR_IDLES1)
1098#define HRTIM_OUTPUTFAULTLEVEL_NONE 0x00000000U
1099#define HRTIM_OUTPUTFAULTLEVEL_ACTIVE (HRTIM_OUTR_FAULT1_0)
1100#define HRTIM_OUTPUTFAULTLEVEL_INACTIVE (HRTIM_OUTR_FAULT1_1)
1101#define HRTIM_OUTPUTFAULTLEVEL_HIGHZ (HRTIM_OUTR_FAULT1_1 | HRTIM_OUTR_FAULT1_0)
1112#define HRTIM_OUTPUTCHOPPERMODE_DISABLED 0x00000000U
1113#define HRTIM_OUTPUTCHOPPERMODE_ENABLED (HRTIM_OUTR_CHP1)
1124#define HRTIM_OUTPUTBURSTMODEENTRY_REGULAR 0x00000000U
1125#define HRTIM_OUTPUTBURSTMODEENTRY_DELAYED (HRTIM_OUTR_DIDL1)
1137#define HRTIM_CAPTURETRIGGER_NONE 0x00000000U
1138#define HRTIM_CAPTURETRIGGER_UPDATE (HRTIM_CPT1CR_UPDCPT)
1139#define HRTIM_CAPTURETRIGGER_EEV_1 (HRTIM_CPT1CR_EXEV1CPT)
1140#define HRTIM_CAPTURETRIGGER_EEV_2 (HRTIM_CPT1CR_EXEV2CPT)
1141#define HRTIM_CAPTURETRIGGER_EEV_3 (HRTIM_CPT1CR_EXEV3CPT)
1142#define HRTIM_CAPTURETRIGGER_EEV_4 (HRTIM_CPT1CR_EXEV4CPT)
1143#define HRTIM_CAPTURETRIGGER_EEV_5 (HRTIM_CPT1CR_EXEV5CPT)
1144#define HRTIM_CAPTURETRIGGER_EEV_6 (HRTIM_CPT1CR_EXEV6CPT)
1145#define HRTIM_CAPTURETRIGGER_EEV_7 (HRTIM_CPT1CR_EXEV7CPT)
1146#define HRTIM_CAPTURETRIGGER_EEV_8 (HRTIM_CPT1CR_EXEV8CPT)
1147#define HRTIM_CAPTURETRIGGER_EEV_9 (HRTIM_CPT1CR_EXEV9CPT)
1148#define HRTIM_CAPTURETRIGGER_EEV_10 (HRTIM_CPT1CR_EXEV10CPT)
1149#define HRTIM_CAPTURETRIGGER_TA1_SET (HRTIM_CPT1CR_TA1SET)
1150#define HRTIM_CAPTURETRIGGER_TA1_RESET (HRTIM_CPT1CR_TA1RST)
1151#define HRTIM_CAPTURETRIGGER_TIMERA_CMP1 (HRTIM_CPT1CR_TIMACMP1)
1152#define HRTIM_CAPTURETRIGGER_TIMERA_CMP2 (HRTIM_CPT1CR_TIMACMP2)
1153#define HRTIM_CAPTURETRIGGER_TB1_SET (HRTIM_CPT1CR_TB1SET)
1154#define HRTIM_CAPTURETRIGGER_TB1_RESET (HRTIM_CPT1CR_TB1RST)
1155#define HRTIM_CAPTURETRIGGER_TIMERB_CMP1 (HRTIM_CPT1CR_TIMBCMP1)
1156#define HRTIM_CAPTURETRIGGER_TIMERB_CMP2 (HRTIM_CPT1CR_TIMBCMP2)
1157#define HRTIM_CAPTURETRIGGER_TC1_SET (HRTIM_CPT1CR_TC1SET)
1158#define HRTIM_CAPTURETRIGGER_TC1_RESET (HRTIM_CPT1CR_TC1RST)
1159#define HRTIM_CAPTURETRIGGER_TIMERC_CMP1 (HRTIM_CPT1CR_TIMCCMP1)
1160#define HRTIM_CAPTURETRIGGER_TIMERC_CMP2 (HRTIM_CPT1CR_TIMCCMP2)
1161#define HRTIM_CAPTURETRIGGER_TD1_SET (HRTIM_CPT1CR_TD1SET)
1162#define HRTIM_CAPTURETRIGGER_TD1_RESET (HRTIM_CPT1CR_TD1RST)
1163#define HRTIM_CAPTURETRIGGER_TIMERD_CMP1 (HRTIM_CPT1CR_TIMDCMP1)
1164#define HRTIM_CAPTURETRIGGER_TIMERD_CMP2 (HRTIM_CPT1CR_TIMDCMP2)
1165#define HRTIM_CAPTURETRIGGER_TE1_SET (HRTIM_CPT1CR_TE1SET)
1166#define HRTIM_CAPTURETRIGGER_TE1_RESET (HRTIM_CPT1CR_TE1RST)
1167#define HRTIM_CAPTURETRIGGER_TIMERE_CMP1 (HRTIM_CPT1CR_TIMECMP1)
1168#define HRTIM_CAPTURETRIGGER_TIMERE_CMP2 (HRTIM_CPT1CR_TIMECMP2)
1179#define HRTIM_TIMEVENTFILTER_NONE (0x00000000U)
1180#define HRTIM_TIMEVENTFILTER_BLANKINGCMP1 (HRTIM_EEFR1_EE1FLTR_0)
1181#define HRTIM_TIMEVENTFILTER_BLANKINGCMP2 (HRTIM_EEFR1_EE1FLTR_1)
1182#define HRTIM_TIMEVENTFILTER_BLANKINGCMP3 (HRTIM_EEFR1_EE1FLTR_1 | HRTIM_EEFR1_EE1FLTR_0)
1183#define HRTIM_TIMEVENTFILTER_BLANKINGCMP4 (HRTIM_EEFR1_EE1FLTR_2)
1184#define HRTIM_TIMEVENTFILTER_BLANKINGFLTR1 (HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_0)
1185#define HRTIM_TIMEVENTFILTER_BLANKINGFLTR2 (HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_1)
1186#define HRTIM_TIMEVENTFILTER_BLANKINGFLTR3 (HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_1 | HRTIM_EEFR1_EE1FLTR_0)
1187#define HRTIM_TIMEVENTFILTER_BLANKINGFLTR4 (HRTIM_EEFR1_EE1FLTR_3)
1188#define HRTIM_TIMEVENTFILTER_BLANKINGFLTR5 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_0)
1189#define HRTIM_TIMEVENTFILTER_BLANKINGFLTR6 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_1)
1190#define HRTIM_TIMEVENTFILTER_BLANKINGFLTR7 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_1 | HRTIM_EEFR1_EE1FLTR_0)
1191#define HRTIM_TIMEVENTFILTER_BLANKINGFLTR8 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_2)
1192#define HRTIM_TIMEVENTFILTER_WINDOWINGCMP2 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_0)
1193#define HRTIM_TIMEVENTFILTER_WINDOWINGCMP3 (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_1)
1194#define HRTIM_TIMEVENTFILTER_WINDOWINGTIM (HRTIM_EEFR1_EE1FLTR_3 | HRTIM_EEFR1_EE1FLTR_2 | HRTIM_EEFR1_EE1FLTR_1 | HRTIM_EEFR1_EE1FLTR_0)
1206#define HRTIM_TIMEVENTLATCH_DISABLED (0x00000000U)
1207#define HRTIM_TIMEVENTLATCH_ENABLED HRTIM_EEFR1_EE1LTCH
1218#define HRTIM_TIMDEADTIME_PRESCALERRATIO_DIV1 (HRTIM_DTR_DTPRSC_1 | HRTIM_DTR_DTPRSC_0)
1219#define HRTIM_TIMDEADTIME_PRESCALERRATIO_DIV2 (HRTIM_DTR_DTPRSC_2)
1220#define HRTIM_TIMDEADTIME_PRESCALERRATIO_DIV4 (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_0)
1221#define HRTIM_TIMDEADTIME_PRESCALERRATIO_DIV8 (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_1)
1222#define HRTIM_TIMDEADTIME_PRESCALERRATIO_DIV16 (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_1 | HRTIM_DTR_DTPRSC_0)
1233#define HRTIM_TIMDEADTIME_RISINGSIGN_POSITIVE (0x00000000U)
1234#define HRTIM_TIMDEADTIME_RISINGSIGN_NEGATIVE (HRTIM_DTR_SDTR)
1245#define HRTIM_TIMDEADTIME_RISINGLOCK_WRITE (0x00000000U)
1246#define HRTIM_TIMDEADTIME_RISINGLOCK_READONLY (HRTIM_DTR_DTRLK)
1257#define HRTIM_TIMDEADTIME_RISINGSIGNLOCK_WRITE (0x00000000U)
1258#define HRTIM_TIMDEADTIME_RISINGSIGNLOCK_READONLY (HRTIM_DTR_DTRSLK)
1269#define HRTIM_TIMDEADTIME_FALLINGSIGN_POSITIVE (0x00000000U)
1270#define HRTIM_TIMDEADTIME_FALLINGSIGN_NEGATIVE (HRTIM_DTR_SDTF)
1281#define HRTIM_TIMDEADTIME_FALLINGLOCK_WRITE (0x00000000U)
1282#define HRTIM_TIMDEADTIME_FALLINGLOCK_READONLY (HRTIM_DTR_DTFLK)
1293#define HRTIM_TIMDEADTIME_FALLINGSIGNLOCK_WRITE (0x00000000U)
1294#define HRTIM_TIMDEADTIME_FALLINGSIGNLOCK_READONLY (HRTIM_DTR_DTFSLK)
1304#define HRTIM_CHOPPER_PRESCALERRATIO_DIV16 (0x000000U)
1305#define HRTIM_CHOPPER_PRESCALERRATIO_DIV32 (HRTIM_CHPR_CARFRQ_0)
1306#define HRTIM_CHOPPER_PRESCALERRATIO_DIV48 (HRTIM_CHPR_CARFRQ_1)
1307#define HRTIM_CHOPPER_PRESCALERRATIO_DIV64 (HRTIM_CHPR_CARFRQ_1 | HRTIM_CHPR_CARFRQ_0)
1308#define HRTIM_CHOPPER_PRESCALERRATIO_DIV80 (HRTIM_CHPR_CARFRQ_2)
1309#define HRTIM_CHOPPER_PRESCALERRATIO_DIV96 (HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_0)
1310#define HRTIM_CHOPPER_PRESCALERRATIO_DIV112 (HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_1)
1311#define HRTIM_CHOPPER_PRESCALERRATIO_DIV128 (HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_1 | HRTIM_CHPR_CARFRQ_0)
1312#define HRTIM_CHOPPER_PRESCALERRATIO_DIV144 (HRTIM_CHPR_CARFRQ_3)
1313#define HRTIM_CHOPPER_PRESCALERRATIO_DIV160 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_0)
1314#define HRTIM_CHOPPER_PRESCALERRATIO_DIV176 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_1)
1315#define HRTIM_CHOPPER_PRESCALERRATIO_DIV192 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_1 | HRTIM_CHPR_CARFRQ_0)
1316#define HRTIM_CHOPPER_PRESCALERRATIO_DIV208 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_2)
1317#define HRTIM_CHOPPER_PRESCALERRATIO_DIV224 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_0)
1318#define HRTIM_CHOPPER_PRESCALERRATIO_DIV240 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_1)
1319#define HRTIM_CHOPPER_PRESCALERRATIO_DIV256 (HRTIM_CHPR_CARFRQ_3 | HRTIM_CHPR_CARFRQ_2 | HRTIM_CHPR_CARFRQ_1 | HRTIM_CHPR_CARFRQ_0)
1330#define HRTIM_CHOPPER_DUTYCYCLE_0 (0x000000U)
1331#define HRTIM_CHOPPER_DUTYCYCLE_125 (HRTIM_CHPR_CARDTY_0)
1332#define HRTIM_CHOPPER_DUTYCYCLE_250 (HRTIM_CHPR_CARDTY_1)
1333#define HRTIM_CHOPPER_DUTYCYCLE_375 (HRTIM_CHPR_CARDTY_1 | HRTIM_CHPR_CARDTY_0)
1334#define HRTIM_CHOPPER_DUTYCYCLE_500 (HRTIM_CHPR_CARDTY_2)
1335#define HRTIM_CHOPPER_DUTYCYCLE_625 (HRTIM_CHPR_CARDTY_2 | HRTIM_CHPR_CARDTY_0)
1336#define HRTIM_CHOPPER_DUTYCYCLE_750 (HRTIM_CHPR_CARDTY_2 | HRTIM_CHPR_CARDTY_1)
1337#define HRTIM_CHOPPER_DUTYCYCLE_875 (HRTIM_CHPR_CARDTY_2 | HRTIM_CHPR_CARDTY_1 | HRTIM_CHPR_CARDTY_0)
1348#define HRTIM_CHOPPER_PULSEWIDTH_16 (0x000000U)
1349#define HRTIM_CHOPPER_PULSEWIDTH_32 (HRTIM_CHPR_STRPW_0)
1350#define HRTIM_CHOPPER_PULSEWIDTH_48 (HRTIM_CHPR_STRPW_1)
1351#define HRTIM_CHOPPER_PULSEWIDTH_64 (HRTIM_CHPR_STRPW_1 | HRTIM_CHPR_STRPW_0)
1352#define HRTIM_CHOPPER_PULSEWIDTH_80 (HRTIM_CHPR_STRPW_2)
1353#define HRTIM_CHOPPER_PULSEWIDTH_96 (HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_0)
1354#define HRTIM_CHOPPER_PULSEWIDTH_112 (HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_1)
1355#define HRTIM_CHOPPER_PULSEWIDTH_128 (HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_1 | HRTIM_CHPR_STRPW_0)
1356#define HRTIM_CHOPPER_PULSEWIDTH_144 (HRTIM_CHPR_STRPW_3)
1357#define HRTIM_CHOPPER_PULSEWIDTH_160 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_0)
1358#define HRTIM_CHOPPER_PULSEWIDTH_176 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_1)
1359#define HRTIM_CHOPPER_PULSEWIDTH_192 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_1 | HRTIM_CHPR_STRPW_0)
1360#define HRTIM_CHOPPER_PULSEWIDTH_208 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_2)
1361#define HRTIM_CHOPPER_PULSEWIDTH_224 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_0)
1362#define HRTIM_CHOPPER_PULSEWIDTH_240 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_1)
1363#define HRTIM_CHOPPER_PULSEWIDTH_256 (HRTIM_CHPR_STRPW_3 | HRTIM_CHPR_STRPW_2 | HRTIM_CHPR_STRPW_1 | HRTIM_CHPR_STRPW_0)
1375#define HRTIM_SYNCOPTION_NONE 0x00000000U
1376#define HRTIM_SYNCOPTION_MASTER 0x00000001U
1377#define HRTIM_SYNCOPTION_SLAVE 0x00000002U
1387#define HRTIM_SYNCINPUTSOURCE_NONE 0x00000000U
1388#define HRTIM_SYNCINPUTSOURCE_INTERNALEVENT HRTIM_MCR_SYNC_IN_1
1389#define HRTIM_SYNCINPUTSOURCE_EXTERNALEVENT (HRTIM_MCR_SYNC_IN_1 | HRTIM_MCR_SYNC_IN_0)
1400#define HRTIM_SYNCOUTPUTSOURCE_MASTER_START 0x00000000U
1401#define HRTIM_SYNCOUTPUTSOURCE_MASTER_CMP1 (HRTIM_MCR_SYNC_SRC_0)
1402#define HRTIM_SYNCOUTPUTSOURCE_TIMA_START (HRTIM_MCR_SYNC_SRC_1)
1403#define HRTIM_SYNCOUTPUTSOURCE_TIMA_CMP1 (HRTIM_MCR_SYNC_SRC_1 | HRTIM_MCR_SYNC_SRC_0)
1413#define HRTIM_SYNCOUTPUTPOLARITY_NONE 0x00000000U
1414#define HRTIM_SYNCOUTPUTPOLARITY_POSITIVE (HRTIM_MCR_SYNC_OUT_1)
1415#define HRTIM_SYNCOUTPUTPOLARITY_NEGATIVE (HRTIM_MCR_SYNC_OUT_1 | HRTIM_MCR_SYNC_OUT_0)
1425#define HRTIM_EVENTSRC_1 (0x00000000U)
1426#define HRTIM_EVENTSRC_2 (HRTIM_EECR1_EE1SRC_0)
1427#define HRTIM_EVENTSRC_3 (HRTIM_EECR1_EE1SRC_1)
1428#define HRTIM_EVENTSRC_4 (HRTIM_EECR1_EE1SRC_1 | HRTIM_EECR1_EE1SRC_0)
1438#define HRTIM_EVENTPOLARITY_HIGH (0x00000000U)
1439#define HRTIM_EVENTPOLARITY_LOW (HRTIM_EECR1_EE1POL)
1450#define HRTIM_EVENTSENSITIVITY_LEVEL (0x00000000U)
1451#define HRTIM_EVENTSENSITIVITY_RISINGEDGE (HRTIM_EECR1_EE1SNS_0)
1452#define HRTIM_EVENTSENSITIVITY_FALLINGEDGE (HRTIM_EECR1_EE1SNS_1)
1453#define HRTIM_EVENTSENSITIVITY_BOTHEDGES (HRTIM_EECR1_EE1SNS_1 | HRTIM_EECR1_EE1SNS_0)
1464#define HRTIM_EVENTFASTMODE_DISABLE (0x00000000U)
1465#define HRTIM_EVENTFASTMODE_ENABLE (HRTIM_EECR1_EE1FAST)
1476#define HRTIM_EVENTFILTER_NONE (0x00000000U)
1477#define HRTIM_EVENTFILTER_1 (HRTIM_EECR3_EE6F_0)
1478#define HRTIM_EVENTFILTER_2 (HRTIM_EECR3_EE6F_1)
1479#define HRTIM_EVENTFILTER_3 (HRTIM_EECR3_EE6F_1 | HRTIM_EECR3_EE6F_0)
1480#define HRTIM_EVENTFILTER_4 (HRTIM_EECR3_EE6F_2)
1481#define HRTIM_EVENTFILTER_5 (HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_0)
1482#define HRTIM_EVENTFILTER_6 (HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_1)
1483#define HRTIM_EVENTFILTER_7 (HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_1 | HRTIM_EECR3_EE6F_0)
1484#define HRTIM_EVENTFILTER_8 (HRTIM_EECR3_EE6F_3)
1485#define HRTIM_EVENTFILTER_9 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_0)
1486#define HRTIM_EVENTFILTER_10 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_1)
1487#define HRTIM_EVENTFILTER_11 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_1 | HRTIM_EECR3_EE6F_0)
1488#define HRTIM_EVENTFILTER_12 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_2)
1489#define HRTIM_EVENTFILTER_13 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_0)
1490#define HRTIM_EVENTFILTER_14 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_1)
1491#define HRTIM_EVENTFILTER_15 (HRTIM_EECR3_EE6F_3 | HRTIM_EECR3_EE6F_2 | HRTIM_EECR3_EE6F_1 | HRTIM_EECR3_EE6F_0)
1503#define HRTIM_EVENTPRESCALER_DIV1 (0x00000000U)
1504#define HRTIM_EVENTPRESCALER_DIV2 (HRTIM_EECR3_EEVSD_0)
1505#define HRTIM_EVENTPRESCALER_DIV4 (HRTIM_EECR3_EEVSD_1)
1506#define HRTIM_EVENTPRESCALER_DIV8 (HRTIM_EECR3_EEVSD_1 | HRTIM_EECR3_EEVSD_0)
1517#define HRTIM_FAULTSOURCE_DIGITALINPUT (0x00000000U)
1518#define HRTIM_FAULTSOURCE_INTERNAL (HRTIM_FLTINR1_FLT1SRC)
1528#define HRTIM_FAULTPOLARITY_LOW (0x00000000U)
1529#define HRTIM_FAULTPOLARITY_HIGH (HRTIM_FLTINR1_FLT1P)
1540#define HRTIM_FAULTFILTER_NONE (0x00000000U)
1541#define HRTIM_FAULTFILTER_1 (HRTIM_FLTINR1_FLT1F_0)
1542#define HRTIM_FAULTFILTER_2 (HRTIM_FLTINR1_FLT1F_1)
1543#define HRTIM_FAULTFILTER_3 (HRTIM_FLTINR1_FLT1F_1 | HRTIM_FLTINR1_FLT1F_0)
1544#define HRTIM_FAULTFILTER_4 (HRTIM_FLTINR1_FLT1F_2)
1545#define HRTIM_FAULTFILTER_5 (HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_0)
1546#define HRTIM_FAULTFILTER_6 (HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_1)
1547#define HRTIM_FAULTFILTER_7 (HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_1 | HRTIM_FLTINR1_FLT1F_0)
1548#define HRTIM_FAULTFILTER_8 (HRTIM_FLTINR1_FLT1F_3)
1549#define HRTIM_FAULTFILTER_9 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_0)
1550#define HRTIM_FAULTFILTER_10 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_1)
1551#define HRTIM_FAULTFILTER_11 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_1 | HRTIM_FLTINR1_FLT1F_0)
1552#define HRTIM_FAULTFILTER_12 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_2)
1553#define HRTIM_FAULTFILTER_13 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_0)
1554#define HRTIM_FAULTFILTER_14 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_1)
1555#define HRTIM_FAULTFILTER_15 (HRTIM_FLTINR1_FLT1F_3 | HRTIM_FLTINR1_FLT1F_2 | HRTIM_FLTINR1_FLT1F_1 | HRTIM_FLTINR1_FLT1F_0)
1566#define HRTIM_FAULTLOCK_READWRITE (0x00000000U)
1567#define HRTIM_FAULTLOCK_READONLY (HRTIM_FLTINR1_FLT1LCK)
1579#define HRTIM_FAULTPRESCALER_DIV1 (0x00000000U)
1580#define HRTIM_FAULTPRESCALER_DIV2 (HRTIM_FLTINR2_FLTSD_0)
1581#define HRTIM_FAULTPRESCALER_DIV4 (HRTIM_FLTINR2_FLTSD_1)
1582#define HRTIM_FAULTPRESCALER_DIV8 (HRTIM_FLTINR2_FLTSD_1 | HRTIM_FLTINR2_FLTSD_0)
1593#define HRTIM_BURSTMODE_SINGLESHOT (0x00000000U)
1594#define HRTIM_BURSTMODE_CONTINOUS (HRTIM_BMCR_BMOM)
1604#define HRTIM_BURSTMODECLOCKSOURCE_MASTER (0x00000000U)
1605#define HRTIM_BURSTMODECLOCKSOURCE_TIMER_A (HRTIM_BMCR_BMCLK_0)
1606#define HRTIM_BURSTMODECLOCKSOURCE_TIMER_B (HRTIM_BMCR_BMCLK_1)
1607#define HRTIM_BURSTMODECLOCKSOURCE_TIMER_C (HRTIM_BMCR_BMCLK_1 | HRTIM_BMCR_BMCLK_0)
1608#define HRTIM_BURSTMODECLOCKSOURCE_TIMER_D (HRTIM_BMCR_BMCLK_2)
1609#define HRTIM_BURSTMODECLOCKSOURCE_TIMER_E (HRTIM_BMCR_BMCLK_2 | HRTIM_BMCR_BMCLK_0)
1610#define HRTIM_BURSTMODECLOCKSOURCE_TIM16_OC (HRTIM_BMCR_BMCLK_2 | HRTIM_BMCR_BMCLK_1)
1611#define HRTIM_BURSTMODECLOCKSOURCE_TIM17_OC (HRTIM_BMCR_BMCLK_2 | HRTIM_BMCR_BMCLK_1 | HRTIM_BMCR_BMCLK_0)
1612#define HRTIM_BURSTMODECLOCKSOURCE_TIM7_TRGO (HRTIM_BMCR_BMCLK_3)
1613#define HRTIM_BURSTMODECLOCKSOURCE_FHRTIM (HRTIM_BMCR_BMCLK_3 | HRTIM_BMCR_BMCLK_1)
1624#define HRTIM_BURSTMODEPRESCALER_DIV1 (0x00000000U)
1625#define HRTIM_BURSTMODEPRESCALER_DIV2 (HRTIM_BMCR_BMPRSC_0)
1626#define HRTIM_BURSTMODEPRESCALER_DIV4 (HRTIM_BMCR_BMPRSC_1)
1627#define HRTIM_BURSTMODEPRESCALER_DIV8 (HRTIM_BMCR_BMPRSC_1 | HRTIM_BMCR_BMPRSC_0)
1628#define HRTIM_BURSTMODEPRESCALER_DIV16 (HRTIM_BMCR_BMPRSC_2)
1629#define HRTIM_BURSTMODEPRESCALER_DIV32 (HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_0)
1630#define HRTIM_BURSTMODEPRESCALER_DIV64 (HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_1)
1631#define HRTIM_BURSTMODEPRESCALER_DIV128 (HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_1 | HRTIM_BMCR_BMPRSC_0)
1632#define HRTIM_BURSTMODEPRESCALER_DIV256 (HRTIM_BMCR_BMPRSC_3)
1633#define HRTIM_BURSTMODEPRESCALER_DIV512 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_0)
1634#define HRTIM_BURSTMODEPRESCALER_DIV1024 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_1)
1635#define HRTIM_BURSTMODEPRESCALER_DIV2048 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_1 | HRTIM_BMCR_BMPRSC_0)
1636#define HRTIM_BURSTMODEPRESCALER_DIV4096 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_2)
1637#define HRTIM_BURSTMODEPRESCALER_DIV8192 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_0)
1638#define HRTIM_BURSTMODEPRESCALER_DIV16384 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_1)
1639#define HRTIM_BURSTMODEPRESCALER_DIV32768 (HRTIM_BMCR_BMPRSC_3 | HRTIM_BMCR_BMPRSC_2 | HRTIM_BMCR_BMPRSC_1 | HRTIM_BMCR_BMPRSC_0)
1651#define HRIM_BURSTMODEPRELOAD_DISABLED (0x00000000U)
1652#define HRIM_BURSTMODEPRELOAD_ENABLED (HRTIM_BMCR_BMPREN)
1663#define HRTIM_BURSTMODETRIGGER_NONE 0x00000000U
1664#define HRTIM_BURSTMODETRIGGER_MASTER_RESET (HRTIM_BMTRGR_MSTRST)
1665#define HRTIM_BURSTMODETRIGGER_MASTER_REPETITION (HRTIM_BMTRGR_MSTREP)
1666#define HRTIM_BURSTMODETRIGGER_MASTER_CMP1 (HRTIM_BMTRGR_MSTCMP1)
1667#define HRTIM_BURSTMODETRIGGER_MASTER_CMP2 (HRTIM_BMTRGR_MSTCMP2)
1668#define HRTIM_BURSTMODETRIGGER_MASTER_CMP3 (HRTIM_BMTRGR_MSTCMP3)
1669#define HRTIM_BURSTMODETRIGGER_MASTER_CMP4 (HRTIM_BMTRGR_MSTCMP4)
1670#define HRTIM_BURSTMODETRIGGER_TIMERA_RESET (HRTIM_BMTRGR_TARST)
1671#define HRTIM_BURSTMODETRIGGER_TIMERA_REPETITION (HRTIM_BMTRGR_TAREP)
1672#define HRTIM_BURSTMODETRIGGER_TIMERA_CMP1 (HRTIM_BMTRGR_TACMP1)
1673#define HRTIM_BURSTMODETRIGGER_TIMERA_CMP2 (HRTIM_BMTRGR_TACMP2)
1674#define HRTIM_BURSTMODETRIGGER_TIMERB_RESET (HRTIM_BMTRGR_TBRST)
1675#define HRTIM_BURSTMODETRIGGER_TIMERB_REPETITION (HRTIM_BMTRGR_TBREP)
1676#define HRTIM_BURSTMODETRIGGER_TIMERB_CMP1 (HRTIM_BMTRGR_TBCMP1)
1677#define HRTIM_BURSTMODETRIGGER_TIMERB_CMP2 (HRTIM_BMTRGR_TBCMP2)
1678#define HRTIM_BURSTMODETRIGGER_TIMERC_RESET (HRTIM_BMTRGR_TCRST)
1679#define HRTIM_BURSTMODETRIGGER_TIMERC_REPETITION (HRTIM_BMTRGR_TCREP)
1680#define HRTIM_BURSTMODETRIGGER_TIMERC_CMP1 (HRTIM_BMTRGR_TCCMP1)
1681#define HRTIM_BURSTMODETRIGGER_TIMERC_CMP2 (HRTIM_BMTRGR_TCCMP2)
1682#define HRTIM_BURSTMODETRIGGER_TIMERD_RESET (HRTIM_BMTRGR_TDRST)
1683#define HRTIM_BURSTMODETRIGGER_TIMERD_REPETITION (HRTIM_BMTRGR_TDREP)
1684#define HRTIM_BURSTMODETRIGGER_TIMERD_CMP1 (HRTIM_BMTRGR_TDCMP1)
1685#define HRTIM_BURSTMODETRIGGER_TIMERD_CMP2 (HRTIM_BMTRGR_TDCMP2)
1686#define HRTIM_BURSTMODETRIGGER_TIMERE_RESET (HRTIM_BMTRGR_TERST)
1687#define HRTIM_BURSTMODETRIGGER_TIMERE_REPETITION (HRTIM_BMTRGR_TEREP)
1688#define HRTIM_BURSTMODETRIGGER_TIMERE_CMP1 (HRTIM_BMTRGR_TECMP1)
1689#define HRTIM_BURSTMODETRIGGER_TIMERE_CMP2 (HRTIM_BMTRGR_TECMP2)
1690#define HRTIM_BURSTMODETRIGGER_TIMERA_EVENT7 (HRTIM_BMTRGR_TAEEV7)
1691#define HRTIM_BURSTMODETRIGGER_TIMERD_EVENT8 (HRTIM_BMTRGR_TDEEV8)
1692#define HRTIM_BURSTMODETRIGGER_EVENT_7 (HRTIM_BMTRGR_EEV7)
1693#define HRTIM_BURSTMODETRIGGER_EVENT_8 (HRTIM_BMTRGR_EEV8)
1694#define HRTIM_BURSTMODETRIGGER_EVENT_ONCHIP (HRTIM_BMTRGR_OCHPEV)
1705#define HRTIM_ADCTRIGGERUPDATE_MASTER 0x00000000U
1706#define HRTIM_ADCTRIGGERUPDATE_TIMER_A (HRTIM_CR1_ADC1USRC_0)
1707#define HRTIM_ADCTRIGGERUPDATE_TIMER_B (HRTIM_CR1_ADC1USRC_1)
1708#define HRTIM_ADCTRIGGERUPDATE_TIMER_C (HRTIM_CR1_ADC1USRC_1 | HRTIM_CR1_ADC1USRC_0)
1709#define HRTIM_ADCTRIGGERUPDATE_TIMER_D (HRTIM_CR1_ADC1USRC_2)
1710#define HRTIM_ADCTRIGGERUPDATE_TIMER_E (HRTIM_CR1_ADC1USRC_2 | HRTIM_CR1_ADC1USRC_0)
1722#define HRTIM_ADCTRIGGEREVENT13_NONE 0x00000000U
1723#define HRTIM_ADCTRIGGEREVENT13_MASTER_CMP1 (HRTIM_ADC1R_AD1MC1)
1724#define HRTIM_ADCTRIGGEREVENT13_MASTER_CMP2 (HRTIM_ADC1R_AD1MC2)
1725#define HRTIM_ADCTRIGGEREVENT13_MASTER_CMP3 (HRTIM_ADC1R_AD1MC3)
1726#define HRTIM_ADCTRIGGEREVENT13_MASTER_CMP4 (HRTIM_ADC1R_AD1MC4)
1727#define HRTIM_ADCTRIGGEREVENT13_MASTER_PERIOD (HRTIM_ADC1R_AD1MPER)
1728#define HRTIM_ADCTRIGGEREVENT13_EVENT_1 (HRTIM_ADC1R_AD1EEV1)
1729#define HRTIM_ADCTRIGGEREVENT13_EVENT_2 (HRTIM_ADC1R_AD1EEV2)
1730#define HRTIM_ADCTRIGGEREVENT13_EVENT_3 (HRTIM_ADC1R_AD1EEV3)
1731#define HRTIM_ADCTRIGGEREVENT13_EVENT_4 (HRTIM_ADC1R_AD1EEV4)
1732#define HRTIM_ADCTRIGGEREVENT13_EVENT_5 (HRTIM_ADC1R_AD1EEV5)
1733#define HRTIM_ADCTRIGGEREVENT13_TIMERA_CMP2 (HRTIM_ADC1R_AD1TAC2)
1734#define HRTIM_ADCTRIGGEREVENT13_TIMERA_CMP3 (HRTIM_ADC1R_AD1TAC3)
1735#define HRTIM_ADCTRIGGEREVENT13_TIMERA_CMP4 (HRTIM_ADC1R_AD1TAC4)
1736#define HRTIM_ADCTRIGGEREVENT13_TIMERA_PERIOD (HRTIM_ADC1R_AD1TAPER)
1737#define HRTIM_ADCTRIGGEREVENT13_TIMERA_RESET (HRTIM_ADC1R_AD1TARST)
1738#define HRTIM_ADCTRIGGEREVENT13_TIMERB_CMP2 (HRTIM_ADC1R_AD1TBC2)
1739#define HRTIM_ADCTRIGGEREVENT13_TIMERB_CMP3 (HRTIM_ADC1R_AD1TBC3)
1740#define HRTIM_ADCTRIGGEREVENT13_TIMERB_CMP4 (HRTIM_ADC1R_AD1TBC4)
1741#define HRTIM_ADCTRIGGEREVENT13_TIMERB_PERIOD (HRTIM_ADC1R_AD1TBPER)
1742#define HRTIM_ADCTRIGGEREVENT13_TIMERB_RESET (HRTIM_ADC1R_AD1TBRST)
1743#define HRTIM_ADCTRIGGEREVENT13_TIMERC_CMP2 (HRTIM_ADC1R_AD1TCC2)
1744#define HRTIM_ADCTRIGGEREVENT13_TIMERC_CMP3 (HRTIM_ADC1R_AD1TCC3)
1745#define HRTIM_ADCTRIGGEREVENT13_TIMERC_CMP4 (HRTIM_ADC1R_AD1TCC4)
1746#define HRTIM_ADCTRIGGEREVENT13_TIMERC_PERIOD (HRTIM_ADC1R_AD1TCPER)
1747#define HRTIM_ADCTRIGGEREVENT13_TIMERD_CMP2 (HRTIM_ADC1R_AD1TDC2)
1748#define HRTIM_ADCTRIGGEREVENT13_TIMERD_CMP3 (HRTIM_ADC1R_AD1TDC3)
1749#define HRTIM_ADCTRIGGEREVENT13_TIMERD_CMP4 (HRTIM_ADC1R_AD1TDC4)
1750#define HRTIM_ADCTRIGGEREVENT13_TIMERD_PERIOD (HRTIM_ADC1R_AD1TDPER)
1751#define HRTIM_ADCTRIGGEREVENT13_TIMERE_CMP2 (HRTIM_ADC1R_AD1TEC2)
1752#define HRTIM_ADCTRIGGEREVENT13_TIMERE_CMP3 (HRTIM_ADC1R_AD1TEC3)
1753#define HRTIM_ADCTRIGGEREVENT13_TIMERE_CMP4 (HRTIM_ADC1R_AD1TEC4)
1754#define HRTIM_ADCTRIGGEREVENT13_TIMERE_PERIOD (HRTIM_ADC1R_AD1TEPER)
1756#define HRTIM_ADCTRIGGEREVENT24_NONE 0x00000000U
1757#define HRTIM_ADCTRIGGEREVENT24_MASTER_CMP1 (HRTIM_ADC2R_AD2MC1)
1758#define HRTIM_ADCTRIGGEREVENT24_MASTER_CMP2 (HRTIM_ADC2R_AD2MC2)
1759#define HRTIM_ADCTRIGGEREVENT24_MASTER_CMP3 (HRTIM_ADC2R_AD2MC3)
1760#define HRTIM_ADCTRIGGEREVENT24_MASTER_CMP4 (HRTIM_ADC2R_AD2MC4)
1761#define HRTIM_ADCTRIGGEREVENT24_MASTER_PERIOD (HRTIM_ADC2R_AD2MPER)
1762#define HRTIM_ADCTRIGGEREVENT24_EVENT_6 (HRTIM_ADC2R_AD2EEV6)
1763#define HRTIM_ADCTRIGGEREVENT24_EVENT_7 (HRTIM_ADC2R_AD2EEV7)
1764#define HRTIM_ADCTRIGGEREVENT24_EVENT_8 (HRTIM_ADC2R_AD2EEV8)
1765#define HRTIM_ADCTRIGGEREVENT24_EVENT_9 (HRTIM_ADC2R_AD2EEV9)
1766#define HRTIM_ADCTRIGGEREVENT24_EVENT_10 (HRTIM_ADC2R_AD2EEV10)
1767#define HRTIM_ADCTRIGGEREVENT24_TIMERA_CMP2 (HRTIM_ADC2R_AD2TAC2)
1768#define HRTIM_ADCTRIGGEREVENT24_TIMERA_CMP3 (HRTIM_ADC2R_AD2TAC3)
1769#define HRTIM_ADCTRIGGEREVENT24_TIMERA_CMP4 (HRTIM_ADC2R_AD2TAC4)
1770#define HRTIM_ADCTRIGGEREVENT24_TIMERA_PERIOD (HRTIM_ADC2R_AD2TAPER)
1771#define HRTIM_ADCTRIGGEREVENT24_TIMERB_CMP2 (HRTIM_ADC2R_AD2TBC2)
1772#define HRTIM_ADCTRIGGEREVENT24_TIMERB_CMP3 (HRTIM_ADC2R_AD2TBC3)
1773#define HRTIM_ADCTRIGGEREVENT24_TIMERB_CMP4 (HRTIM_ADC2R_AD2TBC4)
1774#define HRTIM_ADCTRIGGEREVENT24_TIMERB_PERIOD (HRTIM_ADC2R_AD2TBPER)
1775#define HRTIM_ADCTRIGGEREVENT24_TIMERC_CMP2 (HRTIM_ADC2R_AD2TCC2)
1776#define HRTIM_ADCTRIGGEREVENT24_TIMERC_CMP3 (HRTIM_ADC2R_AD2TCC3)
1777#define HRTIM_ADCTRIGGEREVENT24_TIMERC_CMP4 (HRTIM_ADC2R_AD2TCC4)
1778#define HRTIM_ADCTRIGGEREVENT24_TIMERC_PERIOD (HRTIM_ADC2R_AD2TCPER)
1779#define HRTIM_ADCTRIGGEREVENT24_TIMERC_RESET (HRTIM_ADC2R_AD2TCRST)
1780#define HRTIM_ADCTRIGGEREVENT24_TIMERD_CMP2 (HRTIM_ADC2R_AD2TDC2)
1781#define HRTIM_ADCTRIGGEREVENT24_TIMERD_CMP3 (HRTIM_ADC2R_AD2TDC3)
1782#define HRTIM_ADCTRIGGEREVENT24_TIMERD_CMP4 (HRTIM_ADC2R_AD2TDC4)
1783#define HRTIM_ADCTRIGGEREVENT24_TIMERD_PERIOD (HRTIM_ADC2R_AD2TDPER)
1784#define HRTIM_ADCTRIGGEREVENT24_TIMERD_RESET (HRTIM_ADC2R_AD2TDRST)
1785#define HRTIM_ADCTRIGGEREVENT24_TIMERE_CMP2 (HRTIM_ADC2R_AD2TEC2)
1786#define HRTIM_ADCTRIGGEREVENT24_TIMERE_CMP3 (HRTIM_ADC2R_AD2TEC3)
1787#define HRTIM_ADCTRIGGEREVENT24_TIMERE_CMP4 (HRTIM_ADC2R_AD2TEC4)
1788#define HRTIM_ADCTRIGGEREVENT24_TIMERE_RESET (HRTIM_ADC2R_AD2TERST)
1800#define HRTIM_BURSTDMA_NONE 0x00000000U
1801#define HRTIM_BURSTDMA_CR (HRTIM_BDTUPR_TIMCR)
1802#define HRTIM_BURSTDMA_ICR (HRTIM_BDTUPR_TIMICR)
1803#define HRTIM_BURSTDMA_DIER (HRTIM_BDTUPR_TIMDIER)
1804#define HRTIM_BURSTDMA_CNT (HRTIM_BDTUPR_TIMCNT)
1805#define HRTIM_BURSTDMA_PER (HRTIM_BDTUPR_TIMPER)
1806#define HRTIM_BURSTDMA_REP (HRTIM_BDTUPR_TIMREP)
1807#define HRTIM_BURSTDMA_CMP1 (HRTIM_BDTUPR_TIMCMP1)
1808#define HRTIM_BURSTDMA_CMP2 (HRTIM_BDTUPR_TIMCMP2)
1809#define HRTIM_BURSTDMA_CMP3 (HRTIM_BDTUPR_TIMCMP3)
1810#define HRTIM_BURSTDMA_CMP4 (HRTIM_BDTUPR_TIMCMP4)
1811#define HRTIM_BURSTDMA_DTR (HRTIM_BDTUPR_TIMDTR)
1812#define HRTIM_BURSTDMA_SET1R (HRTIM_BDTUPR_TIMSET1R)
1813#define HRTIM_BURSTDMA_RST1R (HRTIM_BDTUPR_TIMRST1R)
1814#define HRTIM_BURSTDMA_SET2R (HRTIM_BDTUPR_TIMSET2R)
1815#define HRTIM_BURSTDMA_RST2R (HRTIM_BDTUPR_TIMRST2R)
1816#define HRTIM_BURSTDMA_EEFR1 (HRTIM_BDTUPR_TIMEEFR1)
1817#define HRTIM_BURSTDMA_EEFR2 (HRTIM_BDTUPR_TIMEEFR2)
1818#define HRTIM_BURSTDMA_RSTR (HRTIM_BDTUPR_TIMRSTR)
1819#define HRTIM_BURSTDMA_CHPR (HRTIM_BDTUPR_TIMCHPR)
1820#define HRTIM_BURSTDMA_OUTR (HRTIM_BDTUPR_TIMOUTR)
1821#define HRTIM_BURSTDMA_FLTR (HRTIM_BDTUPR_TIMFLTR)
1831#define HRTIM_BURSTMODECTL_DISABLED 0x00000000U
1832#define HRTIM_BURSTMODECTL_ENABLED (HRTIM_BMCR_BME)
1842#define HRTIM_FAULTMODECTL_DISABLED 0x00000000U
1843#define HRTIM_FAULTMODECTL_ENABLED 0x00000001U
1853#define HRTIM_TIMERUPDATE_MASTER (HRTIM_CR2_MSWU)
1854#define HRTIM_TIMERUPDATE_A (HRTIM_CR2_TASWU)
1855#define HRTIM_TIMERUPDATE_B (HRTIM_CR2_TBSWU)
1856#define HRTIM_TIMERUPDATE_C (HRTIM_CR2_TCSWU)
1857#define HRTIM_TIMERUPDATE_D (HRTIM_CR2_TDSWU)
1858#define HRTIM_TIMERUPDATE_E (HRTIM_CR2_TESWU)
1868#define HRTIM_TIMERRESET_MASTER (HRTIM_CR2_MRST)
1869#define HRTIM_TIMERRESET_TIMER_A (HRTIM_CR2_TARST)
1870#define HRTIM_TIMERRESET_TIMER_B (HRTIM_CR2_TBRST)
1871#define HRTIM_TIMERRESET_TIMER_C (HRTIM_CR2_TCRST)
1872#define HRTIM_TIMERRESET_TIMER_D (HRTIM_CR2_TDRST)
1873#define HRTIM_TIMERRESET_TIMER_E (HRTIM_CR2_TERST)
1883#define HRTIM_OUTPUTLEVEL_ACTIVE (0x00000001U)
1884#define HRTIM_OUTPUTLEVEL_INACTIVE (0x00000002U)
1886#define IS_HRTIM_OUTPUTLEVEL(OUTPUTLEVEL)\
1887 (((OUTPUTLEVEL) == HRTIM_OUTPUTLEVEL_ACTIVE) || \
1888 ((OUTPUTLEVEL) == HRTIM_OUTPUTLEVEL_INACTIVE))
1898#define HRTIM_OUTPUTSTATE_IDLE (0x00000001U)
1900#define HRTIM_OUTPUTSTATE_RUN (0x00000002U)
1902#define HRTIM_OUTPUTSTATE_FAULT (0x00000003U)
1913#define HRTIM_BURSTMODESTATUS_NORMAL 0x00000000U
1914#define HRTIM_BURSTMODESTATUS_ONGOING (HRTIM_BMCR_BMSTAT)
1925#define HRTIM_PUSHPULL_CURRENTSTATUS_OUTPUT1 0x00000000U
1926#define HRTIM_PUSHPULL_CURRENTSTATUS_OUTPUT2 (HRTIM_TIMISR_CPPSTAT)
1938#define HRTIM_PUSHPULL_IDLESTATUS_OUTPUT1 0x00000000U
1939#define HRTIM_PUSHPULL_IDLESTATUS_OUTPUT2 (HRTIM_TIMISR_IPPSTAT)
1948#define HRTIM_IT_NONE 0x00000000U
1949#define HRTIM_IT_FLT1 HRTIM_IER_FLT1
1950#define HRTIM_IT_FLT2 HRTIM_IER_FLT2
1951#define HRTIM_IT_FLT3 HRTIM_IER_FLT3
1952#define HRTIM_IT_FLT4 HRTIM_IER_FLT4
1953#define HRTIM_IT_FLT5 HRTIM_IER_FLT5
1954#define HRTIM_IT_SYSFLT HRTIM_IER_SYSFLT
1955#define HRTIM_IT_BMPER HRTIM_IER_BMPER
1964#define HRTIM_MASTER_IT_NONE 0x00000000U
1965#define HRTIM_MASTER_IT_MCMP1 HRTIM_MDIER_MCMP1IE
1966#define HRTIM_MASTER_IT_MCMP2 HRTIM_MDIER_MCMP2IE
1967#define HRTIM_MASTER_IT_MCMP3 HRTIM_MDIER_MCMP3IE
1968#define HRTIM_MASTER_IT_MCMP4 HRTIM_MDIER_MCMP4IE
1969#define HRTIM_MASTER_IT_MREP HRTIM_MDIER_MREPIE
1970#define HRTIM_MASTER_IT_SYNC HRTIM_MDIER_SYNCIE
1971#define HRTIM_MASTER_IT_MUPD HRTIM_MDIER_MUPDIE
1980#define HRTIM_TIM_IT_NONE 0x00000000U
1981#define HRTIM_TIM_IT_CMP1 HRTIM_TIMDIER_CMP1IE
1982#define HRTIM_TIM_IT_CMP2 HRTIM_TIMDIER_CMP2IE
1983#define HRTIM_TIM_IT_CMP3 HRTIM_TIMDIER_CMP3IE
1984#define HRTIM_TIM_IT_CMP4 HRTIM_TIMDIER_CMP4IE
1985#define HRTIM_TIM_IT_REP HRTIM_TIMDIER_REPIE
1986#define HRTIM_TIM_IT_UPD HRTIM_TIMDIER_UPDIE
1987#define HRTIM_TIM_IT_CPT1 HRTIM_TIMDIER_CPT1IE
1988#define HRTIM_TIM_IT_CPT2 HRTIM_TIMDIER_CPT2IE
1989#define HRTIM_TIM_IT_SET1 HRTIM_TIMDIER_SET1IE
1990#define HRTIM_TIM_IT_RST1 HRTIM_TIMDIER_RST1IE
1991#define HRTIM_TIM_IT_SET2 HRTIM_TIMDIER_SET2IE
1992#define HRTIM_TIM_IT_RST2 HRTIM_TIMDIER_RST2IE
1993#define HRTIM_TIM_IT_RST HRTIM_TIMDIER_RSTIE
1994#define HRTIM_TIM_IT_DLYPRT HRTIM_TIMDIER_DLYPRTIE
2003#define HRTIM_FLAG_FLT1 HRTIM_ISR_FLT1
2004#define HRTIM_FLAG_FLT2 HRTIM_ISR_FLT2
2005#define HRTIM_FLAG_FLT3 HRTIM_ISR_FLT3
2006#define HRTIM_FLAG_FLT4 HRTIM_ISR_FLT4
2007#define HRTIM_FLAG_FLT5 HRTIM_ISR_FLT5
2008#define HRTIM_FLAG_SYSFLT HRTIM_ISR_SYSFLT
2009#define HRTIM_FLAG_BMPER HRTIM_ISR_BMPER
2018#define HRTIM_MASTER_FLAG_MCMP1 HRTIM_MISR_MCMP1
2019#define HRTIM_MASTER_FLAG_MCMP2 HRTIM_MISR_MCMP2
2020#define HRTIM_MASTER_FLAG_MCMP3 HRTIM_MISR_MCMP3
2021#define HRTIM_MASTER_FLAG_MCMP4 HRTIM_MISR_MCMP4
2022#define HRTIM_MASTER_FLAG_MREP HRTIM_MISR_MREP
2023#define HRTIM_MASTER_FLAG_SYNC HRTIM_MISR_SYNC
2024#define HRTIM_MASTER_FLAG_MUPD HRTIM_MISR_MUPD
2033#define HRTIM_TIM_FLAG_CMP1 HRTIM_TIMISR_CMP1
2034#define HRTIM_TIM_FLAG_CMP2 HRTIM_TIMISR_CMP2
2035#define HRTIM_TIM_FLAG_CMP3 HRTIM_TIMISR_CMP3
2036#define HRTIM_TIM_FLAG_CMP4 HRTIM_TIMISR_CMP4
2037#define HRTIM_TIM_FLAG_REP HRTIM_TIMISR_REP
2038#define HRTIM_TIM_FLAG_UPD HRTIM_TIMISR_UPD
2039#define HRTIM_TIM_FLAG_CPT1 HRTIM_TIMISR_CPT1
2040#define HRTIM_TIM_FLAG_CPT2 HRTIM_TIMISR_CPT2
2041#define HRTIM_TIM_FLAG_SET1 HRTIM_TIMISR_SET1
2042#define HRTIM_TIM_FLAG_RST1 HRTIM_TIMISR_RST1
2043#define HRTIM_TIM_FLAG_SET2 HRTIM_TIMISR_SET2
2044#define HRTIM_TIM_FLAG_RST2 HRTIM_TIMISR_RST2
2045#define HRTIM_TIM_FLAG_RST HRTIM_TIMISR_RST
2046#define HRTIM_TIM_FLAG_DLYPRT HRTIM_TIMISR_DLYPRT
2055#define HRTIM_MASTER_DMA_NONE 0x00000000U
2056#define HRTIM_MASTER_DMA_MCMP1 HRTIM_MDIER_MCMP1DE
2057#define HRTIM_MASTER_DMA_MCMP2 HRTIM_MDIER_MCMP2DE
2058#define HRTIM_MASTER_DMA_MCMP3 HRTIM_MDIER_MCMP3DE
2059#define HRTIM_MASTER_DMA_MCMP4 HRTIM_MDIER_MCMP4DE
2060#define HRTIM_MASTER_DMA_MREP HRTIM_MDIER_MREPDE
2061#define HRTIM_MASTER_DMA_SYNC HRTIM_MDIER_SYNCDE
2062#define HRTIM_MASTER_DMA_MUPD HRTIM_MDIER_MUPDDE
2071#define HRTIM_TIM_DMA_NONE 0x00000000U
2072#define HRTIM_TIM_DMA_CMP1 HRTIM_TIMDIER_CMP1DE
2073#define HRTIM_TIM_DMA_CMP2 HRTIM_TIMDIER_CMP2DE
2074#define HRTIM_TIM_DMA_CMP3 HRTIM_TIMDIER_CMP3DE
2075#define HRTIM_TIM_DMA_CMP4 HRTIM_TIMDIER_CMP4DE
2076#define HRTIM_TIM_DMA_REP HRTIM_TIMDIER_REPDE
2077#define HRTIM_TIM_DMA_UPD HRTIM_TIMDIER_UPDDE
2078#define HRTIM_TIM_DMA_CPT1 HRTIM_TIMDIER_CPT1DE
2079#define HRTIM_TIM_DMA_CPT2 HRTIM_TIMDIER_CPT2DE
2080#define HRTIM_TIM_DMA_SET1 HRTIM_TIMDIER_SET1DE
2081#define HRTIM_TIM_DMA_RST1 HRTIM_TIMDIER_RST1DE
2082#define HRTIM_TIM_DMA_SET2 HRTIM_TIMDIER_SET2DE
2083#define HRTIM_TIM_DMA_RST2 HRTIM_TIMDIER_RST2DE
2084#define HRTIM_TIM_DMA_RST HRTIM_TIMDIER_RSTDE
2085#define HRTIM_TIM_DMA_DLYPRT HRTIM_TIMDIER_DLYPRTDE
2094 /* Private macros --------------------------------------------------------*/
2098#define IS_HRTIM_TIMERINDEX(TIMERINDEX)\
2099 (((TIMERINDEX) == HRTIM_TIMERINDEX_MASTER) || \
2100 ((TIMERINDEX) == HRTIM_TIMERINDEX_TIMER_A) || \
2101 ((TIMERINDEX) == HRTIM_TIMERINDEX_TIMER_B) || \
2102 ((TIMERINDEX) == HRTIM_TIMERINDEX_TIMER_C) || \
2103 ((TIMERINDEX) == HRTIM_TIMERINDEX_TIMER_D) || \
2104 ((TIMERINDEX) == HRTIM_TIMERINDEX_TIMER_E))
2105
2106#define IS_HRTIM_TIMING_UNIT(TIMERINDEX)\
2107 (((TIMERINDEX) == HRTIM_TIMERINDEX_TIMER_A) || \
2108 ((TIMERINDEX) == HRTIM_TIMERINDEX_TIMER_B) || \
2109 ((TIMERINDEX) == HRTIM_TIMERINDEX_TIMER_C) || \
2110 ((TIMERINDEX) == HRTIM_TIMERINDEX_TIMER_D) || \
2111 ((TIMERINDEX) == HRTIM_TIMERINDEX_TIMER_E))
2112
2113#define IS_HRTIM_TIMERID(TIMERID) (((TIMERID) & 0xFFC0FFFFU) == 0x00000000U)
2114
2115#define IS_HRTIM_COMPAREUNIT(COMPAREUNIT)\
2116 (((COMPAREUNIT) == HRTIM_COMPAREUNIT_1) || \
2117 ((COMPAREUNIT) == HRTIM_COMPAREUNIT_2) || \
2118 ((COMPAREUNIT) == HRTIM_COMPAREUNIT_3) || \
2119 ((COMPAREUNIT) == HRTIM_COMPAREUNIT_4))
2120
2121#define IS_HRTIM_CAPTUREUNIT(CAPTUREUNIT)\
2122 (((CAPTUREUNIT) == HRTIM_CAPTUREUNIT_1) || \
2123 ((CAPTUREUNIT) == HRTIM_CAPTUREUNIT_2))
2124
2125#define IS_HRTIM_OUTPUT(OUTPUT) (((OUTPUT) & 0xFFFFFC00U) == 0x00000000U)
2126
2127#define IS_HRTIM_TIMER_OUTPUT(TIMER, OUTPUT)\
2128 ((((TIMER) == HRTIM_TIMERINDEX_TIMER_A) && \
2129 (((OUTPUT) == HRTIM_OUTPUT_TA1) || \
2130 ((OUTPUT) == HRTIM_OUTPUT_TA2))) \
2131 || \
2132 (((TIMER) == HRTIM_TIMERINDEX_TIMER_B) && \
2133 (((OUTPUT) == HRTIM_OUTPUT_TB1) || \
2134 ((OUTPUT) == HRTIM_OUTPUT_TB2))) \
2135 || \
2136 (((TIMER) == HRTIM_TIMERINDEX_TIMER_C) && \
2137 (((OUTPUT) == HRTIM_OUTPUT_TC1) || \
2138 ((OUTPUT) == HRTIM_OUTPUT_TC2))) \
2139 || \
2140 (((TIMER) == HRTIM_TIMERINDEX_TIMER_D) && \
2141 (((OUTPUT) == HRTIM_OUTPUT_TD1) || \
2142 ((OUTPUT) == HRTIM_OUTPUT_TD2))) \
2143 || \
2144 (((TIMER) == HRTIM_TIMERINDEX_TIMER_E) && \
2145 (((OUTPUT) == HRTIM_OUTPUT_TE1) || \
2146 ((OUTPUT) == HRTIM_OUTPUT_TE2))))
2147
2148#define IS_HRTIM_EVENT(EVENT)\
2149 (((EVENT) == HRTIM_EVENT_NONE)|| \
2150 ((EVENT) == HRTIM_EVENT_1) || \
2151 ((EVENT) == HRTIM_EVENT_2) || \
2152 ((EVENT) == HRTIM_EVENT_3) || \
2153 ((EVENT) == HRTIM_EVENT_4) || \
2154 ((EVENT) == HRTIM_EVENT_5) || \
2155 ((EVENT) == HRTIM_EVENT_6) || \
2156 ((EVENT) == HRTIM_EVENT_7) || \
2157 ((EVENT) == HRTIM_EVENT_8) || \
2158 ((EVENT) == HRTIM_EVENT_9) || \
2159 ((EVENT) == HRTIM_EVENT_10))
2160
2161#define IS_HRTIM_FAULT(FAULT)\
2162 (((FAULT) == HRTIM_FAULT_1) || \
2163 ((FAULT) == HRTIM_FAULT_2) || \
2164 ((FAULT) == HRTIM_FAULT_3) || \
2165 ((FAULT) == HRTIM_FAULT_4) || \
2166 ((FAULT) == HRTIM_FAULT_5))
2167
2168#define IS_HRTIM_PRESCALERRATIO(PRESCALERRATIO)\
2169 (((PRESCALERRATIO) == HRTIM_PRESCALERRATIO_DIV1) || \
2170 ((PRESCALERRATIO) == HRTIM_PRESCALERRATIO_DIV2) || \
2171 ((PRESCALERRATIO) == HRTIM_PRESCALERRATIO_DIV4))
2172
2173#define IS_HRTIM_MODE(MODE)\
2174 (((MODE) == HRTIM_MODE_CONTINUOUS) || \
2175 ((MODE) == HRTIM_MODE_SINGLESHOT) || \
2176 ((MODE) == HRTIM_MODE_SINGLESHOT_RETRIGGERABLE))
2177
2178#define IS_HRTIM_MODE_ONEPULSE(MODE)\
2179 (((MODE) == HRTIM_MODE_SINGLESHOT) || \
2180 ((MODE) == HRTIM_MODE_SINGLESHOT_RETRIGGERABLE))
2181
2182
2183#define IS_HRTIM_HALFMODE(HALFMODE)\
2184 (((HALFMODE) == HRTIM_HALFMODE_DISABLED) || \
2185 ((HALFMODE) == HRTIM_HALFMODE_ENABLED))
2186
2187#define IS_HRTIM_SYNCSTART(SYNCSTART)\
2188 (((SYNCSTART) == HRTIM_SYNCSTART_DISABLED) || \
2189 ((SYNCSTART) == HRTIM_SYNCSTART_ENABLED))
2190
2191#define IS_HRTIM_SYNCRESET(SYNCRESET)\
2192 (((SYNCRESET) == HRTIM_SYNCRESET_DISABLED) || \
2193 ((SYNCRESET) == HRTIM_SYNCRESET_ENABLED))
2194
2195#define IS_HRTIM_DACSYNC(DACSYNC)\
2196 (((DACSYNC) == HRTIM_DACSYNC_NONE) || \
2197 ((DACSYNC) == HRTIM_DACSYNC_DACTRIGOUT_1) || \
2198 ((DACSYNC) == HRTIM_DACSYNC_DACTRIGOUT_2) || \
2199 ((DACSYNC) == HRTIM_DACSYNC_DACTRIGOUT_3))
2200
2201#define IS_HRTIM_PRELOAD(PRELOAD)\
2202 (((PRELOAD) == HRTIM_PRELOAD_DISABLED) || \
2203 ((PRELOAD) == HRTIM_PRELOAD_ENABLED))
2204
2205#define IS_HRTIM_UPDATEGATING_MASTER(UPDATEGATING)\
2206 (((UPDATEGATING) == HRTIM_UPDATEGATING_INDEPENDENT) || \
2207 ((UPDATEGATING) == HRTIM_UPDATEGATING_DMABURST) || \
2208 ((UPDATEGATING) == HRTIM_UPDATEGATING_DMABURST_UPDATE))
2209
2210#define IS_HRTIM_UPDATEGATING_TIM(UPDATEGATING)\
2211 (((UPDATEGATING) == HRTIM_UPDATEGATING_INDEPENDENT) || \
2212 ((UPDATEGATING) == HRTIM_UPDATEGATING_DMABURST) || \
2213 ((UPDATEGATING) == HRTIM_UPDATEGATING_DMABURST_UPDATE) || \
2214 ((UPDATEGATING) == HRTIM_UPDATEGATING_UPDEN1) || \
2215 ((UPDATEGATING) == HRTIM_UPDATEGATING_UPDEN2) || \
2216 ((UPDATEGATING) == HRTIM_UPDATEGATING_UPDEN3) || \
2217 ((UPDATEGATING) == HRTIM_UPDATEGATING_UPDEN1_UPDATE) || \
2218 ((UPDATEGATING) == HRTIM_UPDATEGATING_UPDEN2_UPDATE) || \
2219 ((UPDATEGATING) == HRTIM_UPDATEGATING_UPDEN3_UPDATE))
2220
2221#define IS_HRTIM_TIMERBURSTMODE(MODE) \
2222 (((MODE) == HRTIM_TIMERBURSTMODE_MAINTAINCLOCK) || \
2223 ((MODE) == HRTIM_TIMERBURSTMODE_RESETCOUNTER))
2224#define IS_HRTIM_UPDATEONREPETITION(UPDATEONREPETITION) \
2225 (((UPDATEONREPETITION) == HRTIM_UPDATEONREPETITION_DISABLED) || \
2226 ((UPDATEONREPETITION) == HRTIM_UPDATEONREPETITION_ENABLED))
2227
2228#define IS_HRTIM_TIMPUSHPULLMODE(TIMPUSHPULLMODE)\
2229 (((TIMPUSHPULLMODE) == HRTIM_TIMPUSHPULLMODE_DISABLED) || \
2230 ((TIMPUSHPULLMODE) == HRTIM_TIMPUSHPULLMODE_ENABLED))
2231#define IS_HRTIM_TIMFAULTENABLE(TIMFAULTENABLE) (((TIMFAULTENABLE) & 0xFFFFFFE0U) == 0x00000000U)
2232
2233#define IS_HRTIM_TIMFAULTLOCK(TIMFAULTLOCK)\
2234 (((TIMFAULTLOCK) == HRTIM_TIMFAULTLOCK_READWRITE) || \
2235 ((TIMFAULTLOCK) == HRTIM_TIMFAULTLOCK_READONLY))
2236
2237#define IS_HRTIM_TIMDEADTIMEINSERTION(TIMPUSHPULLMODE, TIMDEADTIMEINSERTION)\
2238 ((((TIMPUSHPULLMODE) == HRTIM_TIMPUSHPULLMODE_DISABLED) && \
2239 ((((TIMDEADTIMEINSERTION) == HRTIM_TIMDEADTIMEINSERTION_DISABLED) || \
2240 ((TIMDEADTIMEINSERTION) == HRTIM_TIMDEADTIMEINSERTION_ENABLED)))) \
2241 || \
2242 (((TIMPUSHPULLMODE) == HRTIM_TIMPUSHPULLMODE_ENABLED) && \
2243 ((TIMDEADTIMEINSERTION) == HRTIM_TIMDEADTIMEINSERTION_DISABLED)))
2244
2245#define IS_HRTIM_TIMDELAYEDPROTECTION(TIMPUSHPULLMODE, TIMDELAYEDPROTECTION)\
2246 ((((TIMDELAYEDPROTECTION) == HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DISABLED) || \
2247 ((TIMDELAYEDPROTECTION) == HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_EEV6) || \
2248 ((TIMDELAYEDPROTECTION) == HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_EEV6) || \
2249 ((TIMDELAYEDPROTECTION) == HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV6) || \
2250 ((TIMDELAYEDPROTECTION) == HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_DEEV7) || \
2251 ((TIMDELAYEDPROTECTION) == HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_DEEV7) || \
2252 ((TIMDELAYEDPROTECTION) == HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV7)) \
2253 || \
2254 (((TIMPUSHPULLMODE) == HRTIM_TIMPUSHPULLMODE_ENABLED) && \
2255 (((TIMDELAYEDPROTECTION) == HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV6) || \
2256 ((TIMDELAYEDPROTECTION) == HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV7))))
2257
2258#define IS_HRTIM_TIMUPDATETRIGGER(TIMUPDATETRIGGER) (((TIMUPDATETRIGGER) & 0xFE07FFFFU) == 0x00000000U)
2259
2260#define IS_HRTIM_TIMRESETTRIGGER(TIMRESETTRIGGER) (((TIMRESETTRIGGER) & 0x80000001U) == 0x00000000U)
2261
2262
2263#define IS_HRTIM_TIMUPDATEONRESET(TIMUPDATEONRESET) \
2264 (((TIMUPDATEONRESET) == HRTIM_TIMUPDATEONRESET_DISABLED) || \
2265 ((TIMUPDATEONRESET) == HRTIM_TIMUPDATEONRESET_ENABLED))
2266
2267#define IS_HRTIM_AUTODELAYEDMODE(AUTODELAYEDMODE)\
2268 (((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_REGULAR) || \
2269 ((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_AUTODELAYED_NOTIMEOUT) || \
2270 ((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_AUTODELAYED_TIMEOUTCMP1) || \
2271 ((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_AUTODELAYED_TIMEOUTCMP3))
2272
2273/* Auto delayed mode is only available for compare units 2 and 4U */
2274#define IS_HRTIM_COMPAREUNIT_AUTODELAYEDMODE(COMPAREUNIT, AUTODELAYEDMODE) \
2275 ((((COMPAREUNIT) == HRTIM_COMPAREUNIT_2) && \
2276 (((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_REGULAR) || \
2277 ((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_AUTODELAYED_NOTIMEOUT) || \
2278 ((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_AUTODELAYED_TIMEOUTCMP1) || \
2279 ((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_AUTODELAYED_TIMEOUTCMP3))) \
2280 || \
2281 (((COMPAREUNIT) == HRTIM_COMPAREUNIT_4) && \
2282 (((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_REGULAR) || \
2283 ((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_AUTODELAYED_NOTIMEOUT) || \
2284 ((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_AUTODELAYED_TIMEOUTCMP1) || \
2285 ((AUTODELAYEDMODE) == HRTIM_AUTODELAYEDMODE_AUTODELAYED_TIMEOUTCMP3))))
2286
2287#define IS_HRTIM_OUTPUTPOLARITY(OUTPUTPOLARITY)\
2288 (((OUTPUTPOLARITY) == HRTIM_OUTPUTPOLARITY_HIGH) || \
2289 ((OUTPUTPOLARITY) == HRTIM_OUTPUTPOLARITY_LOW))
2290
2291#define IS_HRTIM_OUTPUTPULSE(OUTPUTPULSE) ((OUTPUTPULSE) <= 0x0000FFFFU)
2292
2293#define IS_HRTIM_OUTPUTSET(OUTPUTSET)\
2294 (((OUTPUTSET) == HRTIM_OUTPUTSET_NONE) || \
2295 ((OUTPUTSET) == HRTIM_OUTPUTSET_RESYNC) || \
2296 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMPER) || \
2297 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMCMP1) || \
2298 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMCMP2) || \
2299 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMCMP3) || \
2300 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMCMP4) || \
2301 ((OUTPUTSET) == HRTIM_OUTPUTSET_MASTERPER) || \
2302 ((OUTPUTSET) == HRTIM_OUTPUTSET_MASTERCMP1) || \
2303 ((OUTPUTSET) == HRTIM_OUTPUTSET_MASTERCMP2) || \
2304 ((OUTPUTSET) == HRTIM_OUTPUTSET_MASTERCMP3) || \
2305 ((OUTPUTSET) == HRTIM_OUTPUTSET_MASTERCMP4) || \
2306 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMEV_1) || \
2307 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMEV_2) || \
2308 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMEV_3) || \
2309 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMEV_4) || \
2310 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMEV_5) || \
2311 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMEV_6) || \
2312 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMEV_7) || \
2313 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMEV_8) || \
2314 ((OUTPUTSET) == HRTIM_OUTPUTSET_TIMEV_9) || \
2315 ((OUTPUTSET) == HRTIM_OUTPUTSET_EEV_1) || \
2316 ((OUTPUTSET) == HRTIM_OUTPUTSET_EEV_2) || \
2317 ((OUTPUTSET) == HRTIM_OUTPUTSET_EEV_3) || \
2318 ((OUTPUTSET) == HRTIM_OUTPUTSET_EEV_4) || \
2319 ((OUTPUTSET) == HRTIM_OUTPUTSET_EEV_5) || \
2320 ((OUTPUTSET) == HRTIM_OUTPUTSET_EEV_6) || \
2321 ((OUTPUTSET) == HRTIM_OUTPUTSET_EEV_7) || \
2322 ((OUTPUTSET) == HRTIM_OUTPUTSET_EEV_8) || \
2323 ((OUTPUTSET) == HRTIM_OUTPUTSET_EEV_9) || \
2324 ((OUTPUTSET) == HRTIM_OUTPUTSET_EEV_10) || \
2325 ((OUTPUTSET) == HRTIM_OUTPUTSET_UPDATE))
2326
2327#define IS_HRTIM_OUTPUTRESET(OUTPUTRESET)\
2328 (((OUTPUTRESET) == HRTIM_OUTPUTRESET_NONE) || \
2329 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_RESYNC) || \
2330 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMPER) || \
2331 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMCMP1) || \
2332 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMCMP2) || \
2333 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMCMP3) || \
2334 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMCMP4) || \
2335 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_MASTERPER) || \
2336 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_MASTERCMP1) || \
2337 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_MASTERCMP2) || \
2338 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_MASTERCMP3) || \
2339 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_MASTERCMP4) || \
2340 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMEV_1) || \
2341 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMEV_2) || \
2342 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMEV_3) || \
2343 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMEV_4) || \
2344 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMEV_5) || \
2345 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMEV_6) || \
2346 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMEV_7) || \
2347 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMEV_8) || \
2348 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_TIMEV_9) || \
2349 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_EEV_1) || \
2350 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_EEV_2) || \
2351 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_EEV_3) || \
2352 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_EEV_4) || \
2353 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_EEV_5) || \
2354 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_EEV_6) || \
2355 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_EEV_7) || \
2356 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_EEV_8) || \
2357 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_EEV_9) || \
2358 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_EEV_10) || \
2359 ((OUTPUTRESET) == HRTIM_OUTPUTRESET_UPDATE))
2360
2361#define IS_HRTIM_OUTPUTIDLEMODE(OUTPUTIDLEMODE)\
2362 (((OUTPUTIDLEMODE) == HRTIM_OUTPUTIDLEMODE_NONE) || \
2363 ((OUTPUTIDLEMODE) == HRTIM_OUTPUTIDLEMODE_IDLE))
2364
2365#define IS_HRTIM_OUTPUTIDLELEVEL(OUTPUTIDLELEVEL)\
2366 (((OUTPUTIDLELEVEL) == HRTIM_OUTPUTIDLELEVEL_INACTIVE) || \
2367 ((OUTPUTIDLELEVEL) == HRTIM_OUTPUTIDLELEVEL_ACTIVE))
2368
2369#define IS_HRTIM_OUTPUTFAULTLEVEL(OUTPUTFAULTLEVEL)\
2370 (((OUTPUTFAULTLEVEL) == HRTIM_OUTPUTFAULTLEVEL_NONE) || \
2371 ((OUTPUTFAULTLEVEL) == HRTIM_OUTPUTFAULTLEVEL_ACTIVE) || \
2372 ((OUTPUTFAULTLEVEL) == HRTIM_OUTPUTFAULTLEVEL_INACTIVE) || \
2373 ((OUTPUTFAULTLEVEL) == HRTIM_OUTPUTFAULTLEVEL_HIGHZ))
2374
2375#define IS_HRTIM_OUTPUTCHOPPERMODE(OUTPUTCHOPPERMODE)\
2376 (((OUTPUTCHOPPERMODE) == HRTIM_OUTPUTCHOPPERMODE_DISABLED) || \
2377 ((OUTPUTCHOPPERMODE) == HRTIM_OUTPUTCHOPPERMODE_ENABLED))
2378
2379#define IS_HRTIM_OUTPUTBURSTMODEENTRY(OUTPUTBURSTMODEENTRY)\
2380 (((OUTPUTBURSTMODEENTRY) == HRTIM_OUTPUTBURSTMODEENTRY_REGULAR) || \
2381 ((OUTPUTBURSTMODEENTRY) == HRTIM_OUTPUTBURSTMODEENTRY_DELAYED))
2382
2383
2384#define IS_HRTIM_TIMER_CAPTURETRIGGER(TIMER, CAPTURETRIGGER) \
2385 (((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_NONE) || \
2386 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_UPDATE) || \
2387 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_EEV_1) || \
2388 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_EEV_2) || \
2389 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_EEV_3) || \
2390 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_EEV_4) || \
2391 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_EEV_5) || \
2392 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_EEV_6) || \
2393 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_EEV_7) || \
2394 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_EEV_8) || \
2395 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_EEV_9) || \
2396 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_EEV_10) \
2397 || \
2398 (((TIMER) == HRTIM_TIMERINDEX_TIMER_A) && \
2399 (((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TB1_SET) || \
2400 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TB1_RESET) || \
2401 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERB_CMP1) || \
2402 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERB_CMP2) || \
2403 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TC1_SET) || \
2404 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TC1_RESET) || \
2405 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERC_CMP1) || \
2406 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERC_CMP2) || \
2407 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TD1_SET) || \
2408 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TD1_RESET) || \
2409 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERD_CMP1) || \
2410 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERD_CMP2) || \
2411 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TE1_SET) || \
2412 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TE1_RESET) || \
2413 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERE_CMP1) || \
2414 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERE_CMP2))) \
2415 || \
2416 (((TIMER) == HRTIM_TIMERINDEX_TIMER_B) && \
2417 (((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TA1_SET) || \
2418 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TA1_RESET) || \
2419 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERA_CMP1) || \
2420 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERA_CMP2) || \
2421 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TC1_SET) || \
2422 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TC1_RESET) || \
2423 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERC_CMP1) || \
2424 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERC_CMP2) || \
2425 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TD1_SET) || \
2426 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TD1_RESET) || \
2427 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERD_CMP1) || \
2428 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERD_CMP2) || \
2429 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TE1_SET) || \
2430 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TE1_RESET) || \
2431 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERE_CMP1) || \
2432 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERE_CMP2))) \
2433 || \
2434 (((TIMER) == HRTIM_TIMERINDEX_TIMER_C) && \
2435 (((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TA1_SET) || \
2436 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TA1_RESET) || \
2437 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERA_CMP1) || \
2438 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERA_CMP2) || \
2439 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TB1_SET) || \
2440 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TB1_RESET) || \
2441 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERB_CMP1) || \
2442 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERB_CMP2) || \
2443 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TD1_SET) || \
2444 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TD1_RESET) || \
2445 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERD_CMP1) || \
2446 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERD_CMP2) || \
2447 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TE1_SET) || \
2448 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TE1_RESET) || \
2449 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERE_CMP1) || \
2450 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERE_CMP2))) \
2451 || \
2452 (((TIMER) == HRTIM_TIMERINDEX_TIMER_D) && \
2453 (((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TA1_SET) || \
2454 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TA1_RESET) || \
2455 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERA_CMP1) || \
2456 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERA_CMP2) || \
2457 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TB1_SET) || \
2458 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TB1_RESET) || \
2459 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERB_CMP1) || \
2460 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERB_CMP2) || \
2461 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TC1_SET) || \
2462 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TC1_RESET) || \
2463 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERC_CMP1) || \
2464 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERC_CMP2) || \
2465 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TE1_SET) || \
2466 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TE1_RESET) || \
2467 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERE_CMP1) || \
2468 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERE_CMP2))) \
2469 || \
2470 (((TIMER) == HRTIM_TIMERINDEX_TIMER_E) && \
2471 (((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TA1_SET) || \
2472 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TA1_RESET) || \
2473 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERA_CMP1) || \
2474 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERA_CMP2) || \
2475 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TB1_SET) || \
2476 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TB1_RESET) || \
2477 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERB_CMP1) || \
2478 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERB_CMP2) || \
2479 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TC1_SET) || \
2480 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TC1_RESET) || \
2481 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERC_CMP1) || \
2482 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERC_CMP2) || \
2483 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TD1_SET) || \
2484 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TD1_RESET) || \
2485 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERD_CMP1) || \
2486 ((CAPTURETRIGGER) == HRTIM_CAPTURETRIGGER_TIMERD_CMP2))))
2487
2488#define IS_HRTIM_TIMEVENTFILTER(TIMEVENTFILTER)\
2489 (((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_NONE) || \
2490 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGCMP1) || \
2491 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGCMP2) || \
2492 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGCMP3) || \
2493 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGCMP4) || \
2494 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGFLTR1) || \
2495 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGFLTR2) || \
2496 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGFLTR3) || \
2497 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGFLTR4) || \
2498 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGFLTR5) || \
2499 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGFLTR6) || \
2500 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGFLTR7) || \
2501 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_BLANKINGFLTR8) || \
2502 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_WINDOWINGCMP2) || \
2503 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_WINDOWINGCMP3) || \
2504 ((TIMEVENTFILTER) == HRTIM_TIMEVENTFILTER_WINDOWINGTIM))
2505
2506#define IS_HRTIM_TIMEVENTLATCH(TIMEVENTLATCH)\
2507 (((TIMEVENTLATCH) == HRTIM_TIMEVENTLATCH_DISABLED) || \
2508 ((TIMEVENTLATCH) == HRTIM_TIMEVENTLATCH_ENABLED))
2509
2510#define IS_HRTIM_TIMDEADTIME_PRESCALERRATIO(PRESCALERRATIO)\
2511 (((PRESCALERRATIO) == HRTIM_TIMDEADTIME_PRESCALERRATIO_DIV1) || \
2512 ((PRESCALERRATIO) == HRTIM_TIMDEADTIME_PRESCALERRATIO_DIV2) || \
2513 ((PRESCALERRATIO) == HRTIM_TIMDEADTIME_PRESCALERRATIO_DIV4) || \
2514 ((PRESCALERRATIO) == HRTIM_TIMDEADTIME_PRESCALERRATIO_DIV8) || \
2515 ((PRESCALERRATIO) == HRTIM_TIMDEADTIME_PRESCALERRATIO_DIV16))
2516
2517#define IS_HRTIM_TIMDEADTIME_RISINGSIGN(RISINGSIGN)\
2518 (((RISINGSIGN) == HRTIM_TIMDEADTIME_RISINGSIGN_POSITIVE) || \
2519 ((RISINGSIGN) == HRTIM_TIMDEADTIME_RISINGSIGN_NEGATIVE))
2520
2521#define IS_HRTIM_TIMDEADTIME_RISINGLOCK(RISINGLOCK)\
2522 (((RISINGLOCK) == HRTIM_TIMDEADTIME_RISINGLOCK_WRITE) || \
2523 ((RISINGLOCK) == HRTIM_TIMDEADTIME_RISINGLOCK_READONLY))
2524
2525#define IS_HRTIM_TIMDEADTIME_RISINGSIGNLOCK(RISINGSIGNLOCK)\
2526 (((RISINGSIGNLOCK) == HRTIM_TIMDEADTIME_RISINGSIGNLOCK_WRITE) || \
2527 ((RISINGSIGNLOCK) == HRTIM_TIMDEADTIME_RISINGSIGNLOCK_READONLY))
2528
2529#define IS_HRTIM_TIMDEADTIME_FALLINGSIGN(FALLINGSIGN)\
2530 (((FALLINGSIGN) == HRTIM_TIMDEADTIME_FALLINGSIGN_POSITIVE) || \
2531 ((FALLINGSIGN) == HRTIM_TIMDEADTIME_FALLINGSIGN_NEGATIVE))
2532
2533#define IS_HRTIM_TIMDEADTIME_FALLINGLOCK(FALLINGLOCK)\
2534 (((FALLINGLOCK) == HRTIM_TIMDEADTIME_FALLINGLOCK_WRITE) || \
2535 ((FALLINGLOCK) == HRTIM_TIMDEADTIME_FALLINGLOCK_READONLY))
2536
2537#define IS_HRTIM_TIMDEADTIME_FALLINGSIGNLOCK(FALLINGSIGNLOCK)\
2538 (((FALLINGSIGNLOCK) == HRTIM_TIMDEADTIME_FALLINGSIGNLOCK_WRITE) || \
2539 ((FALLINGSIGNLOCK) == HRTIM_TIMDEADTIME_FALLINGSIGNLOCK_READONLY))
2540
2541#define IS_HRTIM_CHOPPER_PRESCALERRATIO(PRESCALERRATIO)\
2542 (((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV16) || \
2543 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV32) || \
2544 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV48) || \
2545 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV64) || \
2546 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV80) || \
2547 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV96) || \
2548 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV112) || \
2549 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV128) || \
2550 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV144) || \
2551 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV160) || \
2552 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV176) || \
2553 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV192) || \
2554 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV208) || \
2555 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV224) || \
2556 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV240) || \
2557 ((PRESCALERRATIO) == HRTIM_CHOPPER_PRESCALERRATIO_DIV256))
2558
2559#define IS_HRTIM_CHOPPER_DUTYCYCLE(DUTYCYCLE)\
2560 (((DUTYCYCLE) == HRTIM_CHOPPER_DUTYCYCLE_0) || \
2561 ((DUTYCYCLE) == HRTIM_CHOPPER_DUTYCYCLE_125) || \
2562 ((DUTYCYCLE) == HRTIM_CHOPPER_DUTYCYCLE_250) || \
2563 ((DUTYCYCLE) == HRTIM_CHOPPER_DUTYCYCLE_375) || \
2564 ((DUTYCYCLE) == HRTIM_CHOPPER_DUTYCYCLE_500) || \
2565 ((DUTYCYCLE) == HRTIM_CHOPPER_DUTYCYCLE_625) || \
2566 ((DUTYCYCLE) == HRTIM_CHOPPER_DUTYCYCLE_750) || \
2567 ((DUTYCYCLE) == HRTIM_CHOPPER_DUTYCYCLE_875))
2568
2569#define IS_HRTIM_CHOPPER_PULSEWIDTH(PULSEWIDTH)\
2570 (((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_16) || \
2571 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_32) || \
2572 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_48) || \
2573 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_64) || \
2574 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_80) || \
2575 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_96) || \
2576 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_112) || \
2577 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_128) || \
2578 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_144) || \
2579 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_160) || \
2580 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_176) || \
2581 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_192) || \
2582 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_208) || \
2583 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_224) || \
2584 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_240) || \
2585 ((PULSEWIDTH) == HRTIM_CHOPPER_PULSEWIDTH_256))
2586
2587#define IS_HRTIM_SYNCINPUTSOURCE(SYNCINPUTSOURCE)\
2588 (((SYNCINPUTSOURCE) == HRTIM_SYNCINPUTSOURCE_NONE) || \
2589 ((SYNCINPUTSOURCE) == HRTIM_SYNCINPUTSOURCE_INTERNALEVENT) || \
2590 ((SYNCINPUTSOURCE) == HRTIM_SYNCINPUTSOURCE_EXTERNALEVENT))
2591
2592#define IS_HRTIM_SYNCOUTPUTSOURCE(SYNCOUTPUTSOURCE)\
2593 (((SYNCOUTPUTSOURCE) == HRTIM_SYNCOUTPUTSOURCE_MASTER_START) || \
2594 ((SYNCOUTPUTSOURCE) == HRTIM_SYNCOUTPUTSOURCE_MASTER_CMP1) || \
2595 ((SYNCOUTPUTSOURCE) == HRTIM_SYNCOUTPUTSOURCE_TIMA_START) || \
2596 ((SYNCOUTPUTSOURCE) == HRTIM_SYNCOUTPUTSOURCE_TIMA_CMP1))
2597
2598#define IS_HRTIM_SYNCOUTPUTPOLARITY(SYNCOUTPUTPOLARITY)\
2599 (((SYNCOUTPUTPOLARITY) == HRTIM_SYNCOUTPUTPOLARITY_NONE) || \
2600 ((SYNCOUTPUTPOLARITY) == HRTIM_SYNCOUTPUTPOLARITY_POSITIVE) || \
2601 ((SYNCOUTPUTPOLARITY) == HRTIM_SYNCOUTPUTPOLARITY_NEGATIVE))
2602
2603#define IS_HRTIM_EVENTSRC(EVENTSRC)\
2604 (((EVENTSRC) == HRTIM_EVENTSRC_1) || \
2605 ((EVENTSRC) == HRTIM_EVENTSRC_2) || \
2606 ((EVENTSRC) == HRTIM_EVENTSRC_3) || \
2607 ((EVENTSRC) == HRTIM_EVENTSRC_4))
2608
2609#define IS_HRTIM_EVENTPOLARITY(EVENTSENSITIVITY, EVENTPOLARITY)\
2610 ((((EVENTSENSITIVITY) == HRTIM_EVENTSENSITIVITY_LEVEL) && \
2611 (((EVENTPOLARITY) == HRTIM_EVENTPOLARITY_HIGH) || \
2612 ((EVENTPOLARITY) == HRTIM_EVENTPOLARITY_LOW))) \
2613 || \
2614 (((EVENTSENSITIVITY) == HRTIM_EVENTSENSITIVITY_RISINGEDGE) || \
2615 ((EVENTSENSITIVITY) == HRTIM_EVENTSENSITIVITY_FALLINGEDGE)|| \
2616 ((EVENTSENSITIVITY) == HRTIM_EVENTSENSITIVITY_BOTHEDGES)))
2617
2618#define IS_HRTIM_EVENTSENSITIVITY(EVENTSENSITIVITY)\
2619 (((EVENTSENSITIVITY) == HRTIM_EVENTSENSITIVITY_LEVEL) || \
2620 ((EVENTSENSITIVITY) == HRTIM_EVENTSENSITIVITY_RISINGEDGE) || \
2621 ((EVENTSENSITIVITY) == HRTIM_EVENTSENSITIVITY_FALLINGEDGE) || \
2622 ((EVENTSENSITIVITY) == HRTIM_EVENTSENSITIVITY_BOTHEDGES))
2623
2624#define IS_HRTIM_EVENTFASTMODE(EVENT, FASTMODE)\
2625 (((((EVENT) == HRTIM_EVENT_1) || \
2626 ((EVENT) == HRTIM_EVENT_2) || \
2627 ((EVENT) == HRTIM_EVENT_3) || \
2628 ((EVENT) == HRTIM_EVENT_4) || \
2629 ((EVENT) == HRTIM_EVENT_5)) && \
2630 (((FASTMODE) == HRTIM_EVENTFASTMODE_ENABLE) || \
2631 ((FASTMODE) == HRTIM_EVENTFASTMODE_DISABLE))) \
2632 || \
2633 (((EVENT) == HRTIM_EVENT_6) || \
2634 ((EVENT) == HRTIM_EVENT_7) || \
2635 ((EVENT) == HRTIM_EVENT_8) || \
2636 ((EVENT) == HRTIM_EVENT_9) || \
2637 ((EVENT) == HRTIM_EVENT_10)))
2638
2639
2640#define IS_HRTIM_EVENTFILTER(EVENT, FILTER)\
2641 ((((EVENT) == HRTIM_EVENT_1) || \
2642 ((EVENT) == HRTIM_EVENT_2) || \
2643 ((EVENT) == HRTIM_EVENT_3) || \
2644 ((EVENT) == HRTIM_EVENT_4) || \
2645 ((EVENT) == HRTIM_EVENT_5)) \
2646 || \
2647 ((((EVENT) == HRTIM_EVENT_6) || \
2648 ((EVENT) == HRTIM_EVENT_7) || \
2649 ((EVENT) == HRTIM_EVENT_8) || \
2650 ((EVENT) == HRTIM_EVENT_9) || \
2651 ((EVENT) == HRTIM_EVENT_10)) && \
2652 (((FILTER) == HRTIM_EVENTFILTER_NONE) || \
2653 ((FILTER) == HRTIM_EVENTFILTER_1) || \
2654 ((FILTER) == HRTIM_EVENTFILTER_2) || \
2655 ((FILTER) == HRTIM_EVENTFILTER_3) || \
2656 ((FILTER) == HRTIM_EVENTFILTER_4) || \
2657 ((FILTER) == HRTIM_EVENTFILTER_5) || \
2658 ((FILTER) == HRTIM_EVENTFILTER_6) || \
2659 ((FILTER) == HRTIM_EVENTFILTER_7) || \
2660 ((FILTER) == HRTIM_EVENTFILTER_8) || \
2661 ((FILTER) == HRTIM_EVENTFILTER_9) || \
2662 ((FILTER) == HRTIM_EVENTFILTER_10) || \
2663 ((FILTER) == HRTIM_EVENTFILTER_11) || \
2664 ((FILTER) == HRTIM_EVENTFILTER_12) || \
2665 ((FILTER) == HRTIM_EVENTFILTER_13) || \
2666 ((FILTER) == HRTIM_EVENTFILTER_14) || \
2667 ((FILTER) == HRTIM_EVENTFILTER_15))))
2668
2669#define IS_HRTIM_EVENTPRESCALER(EVENTPRESCALER)\
2670 (((EVENTPRESCALER) == HRTIM_EVENTPRESCALER_DIV1) || \
2671 ((EVENTPRESCALER) == HRTIM_EVENTPRESCALER_DIV2) || \
2672 ((EVENTPRESCALER) == HRTIM_EVENTPRESCALER_DIV4) || \
2673 ((EVENTPRESCALER) == HRTIM_EVENTPRESCALER_DIV8))
2674
2675#define IS_HRTIM_FAULTSOURCE(FAULTSOURCE)\
2676 (((FAULTSOURCE) == HRTIM_FAULTSOURCE_DIGITALINPUT) || \
2677 ((FAULTSOURCE) == HRTIM_FAULTSOURCE_INTERNAL))
2678
2679#define IS_HRTIM_FAULTPOLARITY(HRTIM_FAULTPOLARITY)\
2680 (((HRTIM_FAULTPOLARITY) == HRTIM_FAULTPOLARITY_LOW) || \
2681 ((HRTIM_FAULTPOLARITY) == HRTIM_FAULTPOLARITY_HIGH))
2682
2683#define IS_HRTIM_FAULTMODECTL(FAULTMODECTL)\
2684 (((FAULTMODECTL) == HRTIM_FAULTMODECTL_DISABLED) || \
2685 ((FAULTMODECTL) == HRTIM_FAULTMODECTL_ENABLED))
2686
2687#define IS_HRTIM_FAULTFILTER(FAULTFILTER)\
2688 (((FAULTFILTER) == HRTIM_FAULTFILTER_NONE) || \
2689 ((FAULTFILTER) == HRTIM_FAULTFILTER_1) || \
2690 ((FAULTFILTER) == HRTIM_FAULTFILTER_2) || \
2691 ((FAULTFILTER) == HRTIM_FAULTFILTER_3) || \
2692 ((FAULTFILTER) == HRTIM_FAULTFILTER_4) || \
2693 ((FAULTFILTER) == HRTIM_FAULTFILTER_5) || \
2694 ((FAULTFILTER) == HRTIM_FAULTFILTER_6) || \
2695 ((FAULTFILTER) == HRTIM_FAULTFILTER_7) || \
2696 ((FAULTFILTER) == HRTIM_FAULTFILTER_8) || \
2697 ((FAULTFILTER) == HRTIM_FAULTFILTER_9) || \
2698 ((FAULTFILTER) == HRTIM_FAULTFILTER_10) || \
2699 ((FAULTFILTER) == HRTIM_FAULTFILTER_11) || \
2700 ((FAULTFILTER) == HRTIM_FAULTFILTER_12) || \
2701 ((FAULTFILTER) == HRTIM_FAULTFILTER_13) || \
2702 ((FAULTFILTER) == HRTIM_FAULTFILTER_14) || \
2703 ((FAULTFILTER) == HRTIM_FAULTFILTER_15))
2704
2705#define IS_HRTIM_FAULTLOCK(FAULTLOCK)\
2706 (((FAULTLOCK) == HRTIM_FAULTLOCK_READWRITE) || \
2707 ((FAULTLOCK) == HRTIM_FAULTLOCK_READONLY))
2708
2709#define IS_HRTIM_FAULTPRESCALER(FAULTPRESCALER)\
2710 (((FAULTPRESCALER) == HRTIM_FAULTPRESCALER_DIV1) || \
2711 ((FAULTPRESCALER) == HRTIM_FAULTPRESCALER_DIV2) || \
2712 ((FAULTPRESCALER) == HRTIM_FAULTPRESCALER_DIV4) || \
2713 ((FAULTPRESCALER) == HRTIM_FAULTPRESCALER_DIV8))
2714
2715#define IS_HRTIM_BURSTMODE(BURSTMODE)\
2716 (((BURSTMODE) == HRTIM_BURSTMODE_SINGLESHOT) || \
2717 ((BURSTMODE) == HRTIM_BURSTMODE_CONTINOUS))
2718
2719#define IS_HRTIM_BURSTMODECLOCKSOURCE(BURSTMODECLOCKSOURCE)\
2720 (((BURSTMODECLOCKSOURCE) == HRTIM_BURSTMODECLOCKSOURCE_MASTER) || \
2721 ((BURSTMODECLOCKSOURCE) == HRTIM_BURSTMODECLOCKSOURCE_TIMER_A) || \
2722 ((BURSTMODECLOCKSOURCE) == HRTIM_BURSTMODECLOCKSOURCE_TIMER_B) || \
2723 ((BURSTMODECLOCKSOURCE) == HRTIM_BURSTMODECLOCKSOURCE_TIMER_C) || \
2724 ((BURSTMODECLOCKSOURCE) == HRTIM_BURSTMODECLOCKSOURCE_TIMER_D) || \
2725 ((BURSTMODECLOCKSOURCE) == HRTIM_BURSTMODECLOCKSOURCE_TIMER_E) || \
2726 ((BURSTMODECLOCKSOURCE) == HRTIM_BURSTMODECLOCKSOURCE_TIM16_OC) || \
2727 ((BURSTMODECLOCKSOURCE) == HRTIM_BURSTMODECLOCKSOURCE_TIM17_OC) || \
2728 ((BURSTMODECLOCKSOURCE) == HRTIM_BURSTMODECLOCKSOURCE_TIM7_TRGO) || \
2729 ((BURSTMODECLOCKSOURCE) == HRTIM_BURSTMODECLOCKSOURCE_FHRTIM))
2730
2731#define IS_HRTIM_HRTIM_BURSTMODEPRESCALER(BURSTMODEPRESCALER)\
2732 (((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV1) || \
2733 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV2) || \
2734 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV4) || \
2735 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV8) || \
2736 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV16) || \
2737 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV32) || \
2738 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV64) || \
2739 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV128) || \
2740 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV256) || \
2741 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV512) || \
2742 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV1024) || \
2743 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV2048) || \
2744 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV4096) || \
2745 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV8192) || \
2746 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV16384) || \
2747 ((BURSTMODEPRESCALER) == HRTIM_BURSTMODEPRESCALER_DIV32768))
2748
2749#define IS_HRTIM_BURSTMODEPRELOAD(BURSTMODEPRELOAD)\
2750 (((BURSTMODEPRELOAD) == HRIM_BURSTMODEPRELOAD_DISABLED) || \
2751 ((BURSTMODEPRELOAD) == HRIM_BURSTMODEPRELOAD_ENABLED))
2752
2753#define IS_HRTIM_BURSTMODETRIGGER(BURSTMODETRIGGER)\
2754 (((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_NONE) || \
2755 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_MASTER_RESET) || \
2756 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_MASTER_REPETITION) || \
2757 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_MASTER_CMP1) || \
2758 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_MASTER_CMP2) || \
2759 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_MASTER_CMP3) || \
2760 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_MASTER_CMP4) || \
2761 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERA_RESET) || \
2762 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERA_REPETITION) || \
2763 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERA_CMP1) || \
2764 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERA_CMP2) || \
2765 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERB_RESET) || \
2766 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERB_REPETITION) || \
2767 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERB_CMP1) || \
2768 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERB_CMP2) || \
2769 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERC_RESET) || \
2770 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERC_REPETITION) || \
2771 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERC_CMP1) || \
2772 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERC_CMP2) || \
2773 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERD_RESET) || \
2774 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERD_REPETITION) || \
2775 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERD_CMP1) || \
2776 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERD_CMP2) || \
2777 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERE_RESET) || \
2778 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERE_REPETITION) || \
2779 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERE_CMP1) || \
2780 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERE_CMP2) || \
2781 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERA_EVENT7) || \
2782 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_TIMERD_EVENT8) || \
2783 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_EVENT_7) || \
2784 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_EVENT_8) || \
2785 ((BURSTMODETRIGGER) == HRTIM_BURSTMODETRIGGER_EVENT_ONCHIP))
2786
2787#define IS_HRTIM_ADCTRIGGERUPDATE(ADCTRIGGERUPDATE)\
2788 (((ADCTRIGGERUPDATE) == HRTIM_ADCTRIGGERUPDATE_MASTER) || \
2789 ((ADCTRIGGERUPDATE) == HRTIM_ADCTRIGGERUPDATE_TIMER_A) || \
2790 ((ADCTRIGGERUPDATE) == HRTIM_ADCTRIGGERUPDATE_TIMER_B) || \
2791 ((ADCTRIGGERUPDATE) == HRTIM_ADCTRIGGERUPDATE_TIMER_C) || \
2792 ((ADCTRIGGERUPDATE) == HRTIM_ADCTRIGGERUPDATE_TIMER_D) || \
2793 ((ADCTRIGGERUPDATE) == HRTIM_ADCTRIGGERUPDATE_TIMER_E))
2794
2795#define IS_HRTIM_CALIBRATIONRATE(CALIBRATIONRATE)\
2796 (((CALIBRATIONRATE) == HRTIM_SINGLE_CALIBRATION) || \
2797 ((CALIBRATIONRATE) == HRTIM_CALIBRATIONRATE_7300) || \
2798 ((CALIBRATIONRATE) == HRTIM_CALIBRATIONRATE_910) || \
2799 ((CALIBRATIONRATE) == HRTIM_CALIBRATIONRATE_114) || \
2800 ((CALIBRATIONRATE) == HRTIM_CALIBRATIONRATE_14))
2801
2802#define IS_HRTIM_TIMER_BURSTDMA(TIMER, BURSTDMA) \
2803 ((((TIMER) == HRTIM_TIMERINDEX_MASTER) && (((BURSTDMA) & 0xFFFFC000U) == 0x00000000U)) \
2804 || (((TIMER) == HRTIM_TIMERINDEX_TIMER_A) && (((BURSTDMA) & 0xFFE00000U) == 0x00000000U)) \
2805 || (((TIMER) == HRTIM_TIMERINDEX_TIMER_B) && (((BURSTDMA) & 0xFFE00000U) == 0x00000000U)) \
2806 || (((TIMER) == HRTIM_TIMERINDEX_TIMER_C) && (((BURSTDMA) & 0xFFE00000U) == 0x00000000U)) \
2807 || (((TIMER) == HRTIM_TIMERINDEX_TIMER_D) && (((BURSTDMA) & 0xFFE00000U) == 0x00000000U)) \
2808 || (((TIMER) == HRTIM_TIMERINDEX_TIMER_E) && (((BURSTDMA) & 0xFFE00000U) == 0x00000000U)))
2809
2810#define IS_HRTIM_BURSTMODECTL(BURSTMODECTL)\
2811 (((BURSTMODECTL) == HRTIM_BURSTMODECTL_DISABLED) || \
2812 ((BURSTMODECTL) == HRTIM_BURSTMODECTL_ENABLED))
2813
2814#define IS_HRTIM_TIMERUPDATE(TIMERUPDATE) (((TIMERUPDATE) & 0xFFFFFFC0U) == 0x00000000U)
2815
2816#define IS_HRTIM_TIMERRESET(TIMERRESET) (((TIMERRESET) & 0xFFFFC0FFU) == 0x00000000U)
2817
2818#define IS_HRTIM_IT(IT) (((IT) & 0xFFFCFFC0U) == 0x00000000U)
2819
2820
2821#define IS_HRTIM_MASTER_IT(MASTER_IT) (((MASTER_IT) & 0xFFFFFF80U) == 0x00000000U)
2822
2823
2824#define IS_HRTIM_TIM_IT(TIM_IT) (((TIM_IT) & 0xFFFF8020U) == 0x00000000U)
2825
2826
2827#define IS_HRTIM_MASTER_DMA(MASTER_DMA) (((MASTER_DMA) & 0xFF80FFFFU) == 0x00000000U)
2828
2829#define IS_HRTIM_TIM_DMA(TIM_DMA) (((TIM_DMA) & 0x8020FFFFU) == 0x00000000U)
2834/* Exported macros -----------------------------------------------------------*/
2844#if (USE_HAL_HRTIM_REGISTER_CALLBACKS == 1)
2845#define __HAL_HRTIM_RESET_HANDLE_STATE(__HANDLE__) do{ \
2846 (__HANDLE__)->State = HAL_HRTIM_STATE_RESET; \
2847 (__HANDLE__)->MspInitCallback = NULL; \
2848 (__HANDLE__)->MspDeInitCallback = NULL; \
2849 } while(0)
2850#else
2851#define __HAL_HRTIM_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_HRTIM_STATE_RESET)
2852#endif
2853
2866#define __HAL_HRTIM_ENABLE(__HANDLE__, __TIMERS__) ((__HANDLE__)->Instance->sMasterRegs.MCR |= (__TIMERS__))
2867
2868/* The counter of a timing unit is disabled only if all the timer outputs */
2869/* are disabled and no capture is configured */
2870#define HRTIM_TAOEN_MASK (HRTIM_OENR_TA2OEN | HRTIM_OENR_TA1OEN)
2871#define HRTIM_TBOEN_MASK (HRTIM_OENR_TB2OEN | HRTIM_OENR_TB1OEN)
2872#define HRTIM_TCOEN_MASK (HRTIM_OENR_TC2OEN | HRTIM_OENR_TC1OEN)
2873#define HRTIM_TDOEN_MASK (HRTIM_OENR_TD2OEN | HRTIM_OENR_TD1OEN)
2874#define HRTIM_TEOEN_MASK (HRTIM_OENR_TE2OEN | HRTIM_OENR_TE1OEN)
2875#define __HAL_HRTIM_DISABLE(__HANDLE__, __TIMERS__)\
2876 do {\
2877 if (((__TIMERS__) & HRTIM_TIMERID_MASTER) == HRTIM_TIMERID_MASTER)\
2878 {\
2879 ((__HANDLE__)->Instance->sMasterRegs.MCR &= ~HRTIM_TIMERID_MASTER);\
2880 }\
2881 if (((__TIMERS__) & HRTIM_TIMERID_TIMER_A) == HRTIM_TIMERID_TIMER_A)\
2882 {\
2883 if (((__HANDLE__)->Instance->sCommonRegs.OENR & HRTIM_TAOEN_MASK) == (uint32_t)RESET)\
2884 {\
2885 ((__HANDLE__)->Instance->sMasterRegs.MCR &= ~HRTIM_TIMERID_TIMER_A);\
2886 }\
2887 }\
2888 if (((__TIMERS__) & HRTIM_TIMERID_TIMER_B) == HRTIM_TIMERID_TIMER_B)\
2889 {\
2890 if (((__HANDLE__)->Instance->sCommonRegs.OENR & HRTIM_TBOEN_MASK) == (uint32_t)RESET)\
2891 {\
2892 ((__HANDLE__)->Instance->sMasterRegs.MCR &= ~HRTIM_TIMERID_TIMER_B);\
2893 }\
2894 }\
2895 if (((__TIMERS__) & HRTIM_TIMERID_TIMER_C) == HRTIM_TIMERID_TIMER_C)\
2896 {\
2897 if (((__HANDLE__)->Instance->sCommonRegs.OENR & HRTIM_TCOEN_MASK) == (uint32_t)RESET)\
2898 {\
2899 ((__HANDLE__)->Instance->sMasterRegs.MCR &= ~HRTIM_TIMERID_TIMER_C);\
2900 }\
2901 }\
2902 if (((__TIMERS__) & HRTIM_TIMERID_TIMER_D) == HRTIM_TIMERID_TIMER_D)\
2903 {\
2904 if (((__HANDLE__)->Instance->sCommonRegs.OENR & HRTIM_TDOEN_MASK) == (uint32_t)RESET)\
2905 {\
2906 ((__HANDLE__)->Instance->sMasterRegs.MCR &= ~HRTIM_TIMERID_TIMER_D);\
2907 }\
2908 }\
2909 if (((__TIMERS__) & HRTIM_TIMERID_TIMER_E) == HRTIM_TIMERID_TIMER_E)\
2910 {\
2911 if (((__HANDLE__)->Instance->sCommonRegs.OENR & HRTIM_TEOEN_MASK) == (uint32_t)RESET)\
2912 {\
2913 ((__HANDLE__)->Instance->sMasterRegs.MCR &= ~HRTIM_TIMERID_TIMER_E);\
2914 }\
2915 }\
2916 } while(0U)
2917
2918
2932#define __HAL_HRTIM_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->sCommonRegs.IER |= (__INTERRUPT__))
2933#define __HAL_HRTIM_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->sCommonRegs.IER &= ~(__INTERRUPT__))
2934
2948#define __HAL_HRTIM_MASTER_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->sMasterRegs.MDIER |= (__INTERRUPT__))
2949#define __HAL_HRTIM_MASTER_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->sMasterRegs.MDIER &= ~(__INTERRUPT__))
2950
2972#define __HAL_HRTIM_TIMER_ENABLE_IT(__HANDLE__, __TIMER__, __INTERRUPT__) ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].TIMxDIER |= (__INTERRUPT__))
2973#define __HAL_HRTIM_TIMER_DISABLE_IT(__HANDLE__, __TIMER__, __INTERRUPT__) ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].TIMxDIER &= ~(__INTERRUPT__))
2974
2988#define __HAL_HRTIM_GET_ITSTATUS(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->sCommonRegs.IER & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
2989
3003#define __HAL_HRTIM_MASTER_GET_ITSTATUS(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->sMasterRegs.MDIER & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
3004
3033#define __HAL_HRTIM_TIMER_GET_ITSTATUS(__HANDLE__, __TIMER__, __INTERRUPT__) ((((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].TIMxDIER & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
3034
3048#define __HAL_HRTIM_CLEAR_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->sCommonRegs.ICR = (__INTERRUPT__))
3049
3063#define __HAL_HRTIM_MASTER_CLEAR_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->sMasterRegs.MICR = (__INTERRUPT__))
3064
3086#define __HAL_HRTIM_TIMER_CLEAR_IT(__HANDLE__, __TIMER__, __INTERRUPT__) ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].TIMxICR = (__INTERRUPT__))
3087
3088/* DMA HANDLING */
3102#define __HAL_HRTIM_MASTER_ENABLE_DMA(__HANDLE__, __DMA__) ((__HANDLE__)->Instance->sMasterRegs.MDIER |= (__DMA__))
3103#define __HAL_HRTIM_MASTER_DISABLE_DMA(__HANDLE__, __DMA__) ((__HANDLE__)->Instance->sMasterRegs.MDIER &= ~(__DMA__))
3104
3126#define __HAL_HRTIM_TIMER_ENABLE_DMA(__HANDLE__, __TIMER__, __DMA__) ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].TIMxDIER |= (__DMA__))
3127#define __HAL_HRTIM_TIMER_DISABLE_DMA(__HANDLE__, __TIMER__, __DMA__) ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].TIMxDIER &= ~(__DMA__))
3128
3129#define __HAL_HRTIM_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->sCommonRegs.ISR & (__FLAG__)) == (__FLAG__))
3130#define __HAL_HRTIM_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->sCommonRegs.ICR = (__FLAG__))
3131
3132#define __HAL_HRTIM_MASTER_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->sMasterRegs.MISR & (__FLAG__)) == (__FLAG__))
3133#define __HAL_HRTIM_MASTER_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->sMasterRegs.MICR = (__FLAG__))
3134
3135#define __HAL_HRTIM_TIMER_GET_FLAG(__HANDLE__, __TIMER__, __FLAG__) (((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].TIMxISR & (__FLAG__)) == (__FLAG__))
3136#define __HAL_HRTIM_TIMER_CLEAR_FLAG(__HANDLE__, __TIMER__, __FLAG__) ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].TIMxICR = (__FLAG__))
3137
3147#define __HAL_HRTIM_SETCOUNTER(__HANDLE__, __TIMER__, __COUNTER__) \
3148 (((__TIMER__) == HRTIM_TIMERINDEX_MASTER) ? ((__HANDLE__)->Instance->sMasterRegs.MCNTR = (__COUNTER__)) :\
3149 ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].CNTxR = (__COUNTER__)))
3150
3159#define __HAL_HRTIM_GETCOUNTER(__HANDLE__, __TIMER__) \
3160 (((__TIMER__) == HRTIM_TIMERINDEX_MASTER) ? ((__HANDLE__)->Instance->sMasterRegs.MCNTR) :\
3161 ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].CNTxR))
3162
3172#define __HAL_HRTIM_SETPERIOD(__HANDLE__, __TIMER__, __PERIOD__) \
3173 (((__TIMER__) == HRTIM_TIMERINDEX_MASTER) ? ((__HANDLE__)->Instance->sMasterRegs.MPER = (__PERIOD__)) :\
3174 ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].PERxR = (__PERIOD__)))
3175
3184#define __HAL_HRTIM_GETPERIOD(__HANDLE__, __TIMER__) \
3185 (((__TIMER__) == HRTIM_TIMERINDEX_MASTER) ? ((__HANDLE__)->Instance->sMasterRegs.MPER) :\
3186 ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].PERxR))
3187
3201#define __HAL_HRTIM_SETCLOCKPRESCALER(__HANDLE__, __TIMER__, __PRESCALER__) \
3202 (((__TIMER__) == HRTIM_TIMERINDEX_MASTER) ? (MODIFY_REG((__HANDLE__)->Instance->sMasterRegs.MCR, HRTIM_MCR_CK_PSC, (__PRESCALER__))) :\
3203 (MODIFY_REG((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].TIMxCR, HRTIM_TIMCR_CK_PSC, (__PRESCALER__))))
3204
3213#define __HAL_HRTIM_GETCLOCKPRESCALER(__HANDLE__, __TIMER__) \
3214 (((__TIMER__) == HRTIM_TIMERINDEX_MASTER) ? ((__HANDLE__)->Instance->sMasterRegs.MCR & HRTIM_MCR_CK_PSC) :\
3215 ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].TIMxCR & HRTIM_TIMCR_CK_PSC))
3216
3231#define __HAL_HRTIM_SETCOMPARE(__HANDLE__, __TIMER__, __COMPAREUNIT__, __COMPARE__) \
3232 (((__TIMER__) == HRTIM_TIMERINDEX_MASTER) ? \
3233 (((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_1) ? ((__HANDLE__)->Instance->sMasterRegs.MCMP1R = (__COMPARE__)) :\
3234 ((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_2) ? ((__HANDLE__)->Instance->sMasterRegs.MCMP2R = (__COMPARE__)) :\
3235 ((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_3) ? ((__HANDLE__)->Instance->sMasterRegs.MCMP3R = (__COMPARE__)) :\
3236 ((__HANDLE__)->Instance->sMasterRegs.MCMP4R = (__COMPARE__))) \
3237 : \
3238 (((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_1) ? ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].CMP1xR = (__COMPARE__)) :\
3239 ((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_2) ? ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].CMP2xR = (__COMPARE__)) :\
3240 ((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_3) ? ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].CMP3xR = (__COMPARE__)) :\
3241 ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].CMP4xR = (__COMPARE__))))
3242
3256#define __HAL_HRTIM_GETCOMPARE(__HANDLE__, __TIMER__, __COMPAREUNIT__) \
3257 (((__TIMER__) == HRTIM_TIMERINDEX_MASTER) ? \
3258 (((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_1) ? ((__HANDLE__)->Instance->sMasterRegs.MCMP1R) :\
3259 ((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_2) ? ((__HANDLE__)->Instance->sMasterRegs.MCMP2R) :\
3260 ((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_3) ? ((__HANDLE__)->Instance->sMasterRegs.MCMP3R) :\
3261 ((__HANDLE__)->Instance->sMasterRegs.MCMP4R)) \
3262 : \
3263 (((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_1) ? ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].CMP1xR) :\
3264 ((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_2) ? ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].CMP2xR) :\
3265 ((__COMPAREUNIT__) == HRTIM_COMPAREUNIT_3) ? ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].CMP3xR) :\
3266 ((__HANDLE__)->Instance->sTimerxRegs[(__TIMER__)].CMP4xR)))
3267
3272/* Exported functions --------------------------------------------------------*/
3281/* Initialization and Configuration functions ********************************/
3282HAL_StatusTypeDef HAL_HRTIM_Init(HRTIM_HandleTypeDef *hhrtim);
3283
3284HAL_StatusTypeDef HAL_HRTIM_DeInit (HRTIM_HandleTypeDef *hhrtim);
3285
3286void HAL_HRTIM_MspInit(HRTIM_HandleTypeDef *hhrtim);
3287
3288void HAL_HRTIM_MspDeInit(HRTIM_HandleTypeDef *hhrtim);
3289
3290HAL_StatusTypeDef HAL_HRTIM_TimeBaseConfig(HRTIM_HandleTypeDef *hhrtim,
3291 uint32_t TimerIdx,
3292 const HRTIM_TimeBaseCfgTypeDef * pTimeBaseCfg);
3301/* Simple time base related functions *****************************************/
3302HAL_StatusTypeDef HAL_HRTIM_SimpleBaseStart(HRTIM_HandleTypeDef *hhrtim,
3303 uint32_t TimerIdx);
3304
3305HAL_StatusTypeDef HAL_HRTIM_SimpleBaseStop(HRTIM_HandleTypeDef *hhrtim,
3306 uint32_t TimerIdx);
3307
3308HAL_StatusTypeDef HAL_HRTIM_SimpleBaseStart_IT(HRTIM_HandleTypeDef *hhrtim,
3309 uint32_t TimerIdx);
3310
3311HAL_StatusTypeDef HAL_HRTIM_SimpleBaseStop_IT(HRTIM_HandleTypeDef *hhrtim,
3312 uint32_t TimerIdx);
3313
3314HAL_StatusTypeDef HAL_HRTIM_SimpleBaseStart_DMA(HRTIM_HandleTypeDef *hhrtim,
3315 uint32_t TimerIdx,
3316 uint32_t SrcAddr,
3317 uint32_t DestAddr,
3318 uint32_t Length);
3319
3320HAL_StatusTypeDef HAL_HRTIM_SimpleBaseStop_DMA(HRTIM_HandleTypeDef *hhrtim,
3321 uint32_t TimerIdx);
3322
3330/* Simple output compare related functions ************************************/
3331HAL_StatusTypeDef HAL_HRTIM_SimpleOCChannelConfig(HRTIM_HandleTypeDef *hhrtim,
3332 uint32_t TimerIdx,
3333 uint32_t OCChannel,
3334 const HRTIM_SimpleOCChannelCfgTypeDef* pSimpleOCChannelCfg);
3335
3336HAL_StatusTypeDef HAL_HRTIM_SimpleOCStart(HRTIM_HandleTypeDef *hhrtim,
3337 uint32_t TimerIdx,
3338 uint32_t OCChannel);
3339
3340HAL_StatusTypeDef HAL_HRTIM_SimpleOCStop(HRTIM_HandleTypeDef *hhrtim,
3341 uint32_t TimerIdx,
3342 uint32_t OCChannel);
3343
3344HAL_StatusTypeDef HAL_HRTIM_SimpleOCStart_IT(HRTIM_HandleTypeDef *hhrtim,
3345 uint32_t TimerIdx,
3346 uint32_t OCChannel);
3347
3348HAL_StatusTypeDef HAL_HRTIM_SimpleOCStop_IT(HRTIM_HandleTypeDef *hhrtim,
3349 uint32_t TimerIdx,
3350 uint32_t OCChannel);
3351
3352HAL_StatusTypeDef HAL_HRTIM_SimpleOCStart_DMA(HRTIM_HandleTypeDef *hhrtim,
3353 uint32_t TimerIdx,
3354 uint32_t OCChannel,
3355 uint32_t SrcAddr,
3356 uint32_t DestAddr,
3357 uint32_t Length);
3358
3359HAL_StatusTypeDef HAL_HRTIM_SimpleOCStop_DMA(HRTIM_HandleTypeDef *hhrtim,
3360 uint32_t TimerIdx,
3361 uint32_t OCChannel);
3362
3370/* Simple PWM output related functions ****************************************/
3371HAL_StatusTypeDef HAL_HRTIM_SimplePWMChannelConfig(HRTIM_HandleTypeDef *hhrtim,
3372 uint32_t TimerIdx,
3373 uint32_t PWMChannel,
3374 const HRTIM_SimplePWMChannelCfgTypeDef* pSimplePWMChannelCfg);
3375
3376HAL_StatusTypeDef HAL_HRTIM_SimplePWMStart(HRTIM_HandleTypeDef *hhrtim,
3377 uint32_t TimerIdx,
3378 uint32_t PWMChannel);
3379
3380HAL_StatusTypeDef HAL_HRTIM_SimplePWMStop(HRTIM_HandleTypeDef *hhrtim,
3381 uint32_t TimerIdx,
3382 uint32_t PWMChannel);
3383
3384HAL_StatusTypeDef HAL_HRTIM_SimplePWMStart_IT(HRTIM_HandleTypeDef *hhrtim,
3385 uint32_t TimerIdx,
3386 uint32_t PWMChannel);
3387
3388HAL_StatusTypeDef HAL_HRTIM_SimplePWMStop_IT(HRTIM_HandleTypeDef *hhrtim,
3389 uint32_t TimerIdx,
3390 uint32_t PWMChannel);
3391
3392HAL_StatusTypeDef HAL_HRTIM_SimplePWMStart_DMA(HRTIM_HandleTypeDef *hhrtim,
3393 uint32_t TimerIdx,
3394 uint32_t PWMChannel,
3395 uint32_t SrcAddr,
3396 uint32_t DestAddr,
3397 uint32_t Length);
3398
3399HAL_StatusTypeDef HAL_HRTIM_SimplePWMStop_DMA(HRTIM_HandleTypeDef *hhrtim,
3400 uint32_t TimerIdx,
3401 uint32_t PWMChannel);
3402
3410/* Simple capture related functions *******************************************/
3411HAL_StatusTypeDef HAL_HRTIM_SimpleCaptureChannelConfig(HRTIM_HandleTypeDef *hhrtim,
3412 uint32_t TimerIdx,
3413 uint32_t CaptureChannel,
3414 const HRTIM_SimpleCaptureChannelCfgTypeDef* pSimpleCaptureChannelCfg);
3415
3416HAL_StatusTypeDef HAL_HRTIM_SimpleCaptureStart(HRTIM_HandleTypeDef *hhrtim,
3417 uint32_t TimerIdx,
3418 uint32_t CaptureChannel);
3419
3420HAL_StatusTypeDef HAL_HRTIM_SimpleCaptureStop(HRTIM_HandleTypeDef *hhrtim,
3421 uint32_t TimerIdx,
3422 uint32_t CaptureChannel);
3423
3424HAL_StatusTypeDef HAL_HRTIM_SimpleCaptureStart_IT(HRTIM_HandleTypeDef *hhrtim,
3425 uint32_t TimerIdx,
3426 uint32_t CaptureChannel);
3427
3428HAL_StatusTypeDef HAL_HRTIM_SimpleCaptureStop_IT(HRTIM_HandleTypeDef *hhrtim,
3429 uint32_t TimerIdx,
3430 uint32_t CaptureChannel);
3431
3432HAL_StatusTypeDef HAL_HRTIM_SimpleCaptureStart_DMA(HRTIM_HandleTypeDef *hhrtim,
3433 uint32_t TimerIdx,
3434 uint32_t CaptureChannel,
3435 uint32_t SrcAddr,
3436 uint32_t DestAddr,
3437 uint32_t Length);
3438
3439HAL_StatusTypeDef HAL_HRTIM_SimpleCaptureStop_DMA(HRTIM_HandleTypeDef *hhrtim,
3440 uint32_t TimerIdx,
3441 uint32_t CaptureChannel);
3442
3450/* Simple one pulse related functions *****************************************/
3451HAL_StatusTypeDef HAL_HRTIM_SimpleOnePulseChannelConfig(HRTIM_HandleTypeDef *hhrtim,
3452 uint32_t TimerIdx,
3453 uint32_t OnePulseChannel,
3454 const HRTIM_SimpleOnePulseChannelCfgTypeDef* pSimpleOnePulseChannelCfg);
3455
3456HAL_StatusTypeDef HAL_HRTIM_SimpleOnePulseStart(HRTIM_HandleTypeDef *hhrtim,
3457 uint32_t TimerIdx,
3458 uint32_t OnePulseChannel);
3459
3460HAL_StatusTypeDef HAL_HRTIM_SimpleOnePulseStop(HRTIM_HandleTypeDef *hhrtim,
3461 uint32_t TimerIdx,
3462 uint32_t OnePulseChannel);
3463
3464HAL_StatusTypeDef HAL_HRTIM_SimpleOnePulseStart_IT(HRTIM_HandleTypeDef *hhrtim,
3465 uint32_t TimerIdx,
3466 uint32_t OnePulseChannel);
3467
3468HAL_StatusTypeDef HAL_HRTIM_SimpleOnePulseStop_IT(HRTIM_HandleTypeDef *hhrtim,
3469 uint32_t TimerIdx,
3470 uint32_t OnePulseChannel);
3471
3479HAL_StatusTypeDef HAL_HRTIM_BurstModeConfig(HRTIM_HandleTypeDef *hhrtim,
3480 const HRTIM_BurstModeCfgTypeDef* pBurstModeCfg);
3481
3482HAL_StatusTypeDef HAL_HRTIM_EventConfig(HRTIM_HandleTypeDef *hhrtim,
3483 uint32_t Event,
3484 const HRTIM_EventCfgTypeDef* pEventCfg);
3485
3486HAL_StatusTypeDef HAL_HRTIM_EventPrescalerConfig(HRTIM_HandleTypeDef *hhrtim,
3487 uint32_t Prescaler);
3488
3489HAL_StatusTypeDef HAL_HRTIM_FaultConfig(HRTIM_HandleTypeDef *hhrtim,
3490 uint32_t Fault,
3491 const HRTIM_FaultCfgTypeDef* pFaultCfg);
3492
3493HAL_StatusTypeDef HAL_HRTIM_FaultPrescalerConfig(HRTIM_HandleTypeDef *hhrtim,
3494 uint32_t Prescaler);
3495
3496void HAL_HRTIM_FaultModeCtl(HRTIM_HandleTypeDef * hhrtim,
3497 uint32_t Faults,
3498 uint32_t Enable);
3499
3500HAL_StatusTypeDef HAL_HRTIM_ADCTriggerConfig(HRTIM_HandleTypeDef *hhrtim,
3501 uint32_t ADCTrigger,
3502 const HRTIM_ADCTriggerCfgTypeDef* pADCTriggerCfg);
3503
3511/* Waveform related functions *************************************************/
3512HAL_StatusTypeDef HAL_HRTIM_WaveformTimerConfig(HRTIM_HandleTypeDef *hhrtim,
3513 uint32_t TimerIdx,
3514 const HRTIM_TimerCfgTypeDef * pTimerCfg);
3515
3516HAL_StatusTypeDef HAL_HRTIM_WaveformCompareConfig(HRTIM_HandleTypeDef *hhrtim,
3517 uint32_t TimerIdx,
3518 uint32_t CompareUnit,
3519 const HRTIM_CompareCfgTypeDef* pCompareCfg);
3520
3521HAL_StatusTypeDef HAL_HRTIM_WaveformCaptureConfig(HRTIM_HandleTypeDef *hhrtim,
3522 uint32_t TimerIdx,
3523 uint32_t CaptureUnit,
3524 const HRTIM_CaptureCfgTypeDef* pCaptureCfg);
3525
3526HAL_StatusTypeDef HAL_HRTIM_WaveformOutputConfig(HRTIM_HandleTypeDef *hhrtim,
3527 uint32_t TimerIdx,
3528 uint32_t Output,
3529 const HRTIM_OutputCfgTypeDef * pOutputCfg);
3530
3531HAL_StatusTypeDef HAL_HRTIM_WaveformSetOutputLevel(HRTIM_HandleTypeDef *hhrtim,
3532 uint32_t TimerIdx,
3533 uint32_t Output,
3534 uint32_t OutputLevel);
3535
3536HAL_StatusTypeDef HAL_HRTIM_TimerEventFilteringConfig(HRTIM_HandleTypeDef *hhrtim,
3537 uint32_t TimerIdx,
3538 uint32_t Event,
3539 const HRTIM_TimerEventFilteringCfgTypeDef * pTimerEventFilteringCfg);
3540
3541HAL_StatusTypeDef HAL_HRTIM_DeadTimeConfig(HRTIM_HandleTypeDef *hhrtim,
3542 uint32_t TimerIdx,
3543 const HRTIM_DeadTimeCfgTypeDef* pDeadTimeCfg);
3544
3545HAL_StatusTypeDef HAL_HRTIM_ChopperModeConfig(HRTIM_HandleTypeDef *hhrtim,
3546 uint32_t TimerIdx,
3547 const HRTIM_ChopperModeCfgTypeDef* pChopperModeCfg);
3548
3549HAL_StatusTypeDef HAL_HRTIM_BurstDMAConfig(HRTIM_HandleTypeDef *hhrtim,
3550 uint32_t TimerIdx,
3551 uint32_t RegistersToUpdate);
3552
3553
3554HAL_StatusTypeDef HAL_HRTIM_WaveformCountStart(HRTIM_HandleTypeDef *hhrtim,
3555 uint32_t Timers);
3556
3557HAL_StatusTypeDef HAL_HRTIM_WaveformCountStop(HRTIM_HandleTypeDef *hhrtim,
3558 uint32_t Timers);
3559
3560HAL_StatusTypeDef HAL_HRTIM_WaveformCountStart_IT(HRTIM_HandleTypeDef *hhrtim,
3561 uint32_t Timers);
3562
3563HAL_StatusTypeDef HAL_HRTIM_WaveformCountStop_IT(HRTIM_HandleTypeDef *hhrtim,
3564 uint32_t Timers);
3565
3566HAL_StatusTypeDef HAL_HRTIM_WaveformCountStart_DMA(HRTIM_HandleTypeDef *hhrtim,
3567 uint32_t Timers);
3568
3569HAL_StatusTypeDef HAL_HRTIM_WaveformCountStop_DMA(HRTIM_HandleTypeDef *hhrtim,
3570 uint32_t Timers);
3571
3572HAL_StatusTypeDef HAL_HRTIM_WaveformOutputStart(HRTIM_HandleTypeDef *hhrtim,
3573 uint32_t OutputsToStart);
3574
3575HAL_StatusTypeDef HAL_HRTIM_WaveformOutputStop(HRTIM_HandleTypeDef *hhrtim,
3576 uint32_t OutputsToStop);
3577
3578HAL_StatusTypeDef HAL_HRTIM_BurstModeCtl(HRTIM_HandleTypeDef *hhrtim,
3579 uint32_t Enable);
3580
3581HAL_StatusTypeDef HAL_HRTIM_BurstModeSoftwareTrigger(HRTIM_HandleTypeDef *hhrtim);
3582
3583HAL_StatusTypeDef HAL_HRTIM_SoftwareCapture(HRTIM_HandleTypeDef *hhrtim,
3584 uint32_t TimerIdx,
3585 uint32_t CaptureUnit);
3586
3587HAL_StatusTypeDef HAL_HRTIM_SoftwareUpdate(HRTIM_HandleTypeDef *hhrtim,
3588 uint32_t Timers);
3589
3590HAL_StatusTypeDef HAL_HRTIM_SoftwareReset(HRTIM_HandleTypeDef *hhrtim,
3591 uint32_t Timers);
3592
3593HAL_StatusTypeDef HAL_HRTIM_BurstDMATransfer(HRTIM_HandleTypeDef *hhrtim,
3594 uint32_t TimerIdx,
3595 uint32_t BurstBufferAddress,
3596 uint32_t BurstBufferLength);
3597
3598HAL_StatusTypeDef HAL_HRTIM_UpdateEnable(HRTIM_HandleTypeDef *hhrtim,
3599 uint32_t Timers);
3600
3601HAL_StatusTypeDef HAL_HRTIM_UpdateDisable(HRTIM_HandleTypeDef *hhrtim,
3602 uint32_t Timers);
3603
3611/* HRTIM peripheral state functions */
3612HAL_HRTIM_StateTypeDef HAL_HRTIM_GetState(const HRTIM_HandleTypeDef* hhrtim);
3613
3614uint32_t HAL_HRTIM_GetCapturedValue(const HRTIM_HandleTypeDef * hhrtim,
3615 uint32_t TimerIdx,
3616 uint32_t CaptureUnit);
3617
3618uint32_t HAL_HRTIM_WaveformGetOutputLevel(const HRTIM_HandleTypeDef *hhrtim,
3619 uint32_t TimerIdx,
3620 uint32_t Output);
3621
3622uint32_t HAL_HRTIM_WaveformGetOutputState(const HRTIM_HandleTypeDef * hhrtim,
3623 uint32_t TimerIdx,
3624 uint32_t Output);
3625
3626uint32_t HAL_HRTIM_GetDelayedProtectionStatus(const HRTIM_HandleTypeDef *hhrtim,
3627 uint32_t TimerIdx,
3628 uint32_t Output);
3629
3630uint32_t HAL_HRTIM_GetBurstStatus(const HRTIM_HandleTypeDef *hhrtim);
3631
3632uint32_t HAL_HRTIM_GetCurrentPushPullStatus(const HRTIM_HandleTypeDef *hhrtim,
3633 uint32_t TimerIdx);
3634
3635uint32_t HAL_HRTIM_GetIdlePushPullStatus(const HRTIM_HandleTypeDef *hhrtim,
3636 uint32_t TimerIdx);
3637
3645/* IRQ handler */
3646void HAL_HRTIM_IRQHandler(HRTIM_HandleTypeDef *hhrtim,
3647 uint32_t TimerIdx);
3648
3649/* HRTIM events related callback functions */
3650void HAL_HRTIM_Fault1Callback(HRTIM_HandleTypeDef *hhrtim);
3651void HAL_HRTIM_Fault2Callback(HRTIM_HandleTypeDef *hhrtim);
3652void HAL_HRTIM_Fault3Callback(HRTIM_HandleTypeDef *hhrtim);
3653void HAL_HRTIM_Fault4Callback(HRTIM_HandleTypeDef *hhrtim);
3654void HAL_HRTIM_Fault5Callback(HRTIM_HandleTypeDef *hhrtim);
3655void HAL_HRTIM_SystemFaultCallback(HRTIM_HandleTypeDef *hhrtim);
3656void HAL_HRTIM_BurstModePeriodCallback(HRTIM_HandleTypeDef *hhrtim);
3657void HAL_HRTIM_SynchronizationEventCallback(HRTIM_HandleTypeDef *hhrtim);
3658
3659/* Timer events related callback functions */
3660void HAL_HRTIM_RegistersUpdateCallback(HRTIM_HandleTypeDef *hhrtim,
3661 uint32_t TimerIdx);
3662void HAL_HRTIM_RepetitionEventCallback(HRTIM_HandleTypeDef *hhrtim,
3663 uint32_t TimerIdx);
3664void HAL_HRTIM_Compare1EventCallback(HRTIM_HandleTypeDef *hhrtim,
3665 uint32_t TimerIdx);
3666void HAL_HRTIM_Compare2EventCallback(HRTIM_HandleTypeDef *hhrtim,
3667 uint32_t TimerIdx);
3668void HAL_HRTIM_Compare3EventCallback(HRTIM_HandleTypeDef *hhrtim,
3669 uint32_t TimerIdx);
3670void HAL_HRTIM_Compare4EventCallback(HRTIM_HandleTypeDef *hhrtim,
3671 uint32_t TimerIdx);
3672void HAL_HRTIM_Capture1EventCallback(HRTIM_HandleTypeDef *hhrtim,
3673 uint32_t TimerIdx);
3674void HAL_HRTIM_Capture2EventCallback(HRTIM_HandleTypeDef *hhrtim,
3675 uint32_t TimerIdx);
3676void HAL_HRTIM_DelayedProtectionCallback(HRTIM_HandleTypeDef *hhrtim,
3677 uint32_t TimerIdx);
3678void HAL_HRTIM_CounterResetCallback(HRTIM_HandleTypeDef *hhrtim,
3679 uint32_t TimerIdx);
3680void HAL_HRTIM_Output1SetCallback(HRTIM_HandleTypeDef *hhrtim,
3681 uint32_t TimerIdx);
3682void HAL_HRTIM_Output1ResetCallback(HRTIM_HandleTypeDef *hhrtim,
3683 uint32_t TimerIdx);
3684void HAL_HRTIM_Output2SetCallback(HRTIM_HandleTypeDef *hhrtim,
3685 uint32_t TimerIdx);
3686void HAL_HRTIM_Output2ResetCallback(HRTIM_HandleTypeDef *hhrtim,
3687 uint32_t TimerIdx);
3688void HAL_HRTIM_BurstDMATransferCallback(HRTIM_HandleTypeDef *hhrtim,
3689 uint32_t TimerIdx);
3690void HAL_HRTIM_ErrorCallback(HRTIM_HandleTypeDef *hhrtim);
3691
3692#if (USE_HAL_HRTIM_REGISTER_CALLBACKS == 1)
3693HAL_StatusTypeDef HAL_HRTIM_RegisterCallback(HRTIM_HandleTypeDef * hhrtim,
3694 HAL_HRTIM_CallbackIDTypeDef CallbackID,
3695 pHRTIM_CallbackTypeDef pCallback);
3696
3697HAL_StatusTypeDef HAL_HRTIM_UnRegisterCallback(HRTIM_HandleTypeDef * hhrtim,
3698 HAL_HRTIM_CallbackIDTypeDef CallbackID);
3699
3700HAL_StatusTypeDef HAL_HRTIM_TIMxRegisterCallback(HRTIM_HandleTypeDef * hhrtim,
3701 HAL_HRTIM_CallbackIDTypeDef CallbackID,
3702 pHRTIM_TIMxCallbackTypeDef pCallback);
3703
3704HAL_StatusTypeDef HAL_HRTIM_TIMxUnRegisterCallback(HRTIM_HandleTypeDef * hhrtim,
3705 HAL_HRTIM_CallbackIDTypeDef CallbackID);
3706#endif /* USE_HAL_HRTIM_REGISTER_CALLBACKS */
3707
3724#endif /* HRTIM1 */
3725
3726#ifdef __cplusplus
3727}
3728#endif
3729
3730#endif /* STM32H7xx_HAL_HRTIM_H */
#define __IO
Definition: core_cm4.h:239
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32h7xx_hal_def.h:47
HAL_LockTypeDef
HAL Lock structures definition.
Definition: stm32h7xx_hal_def.h:58
Definition: stm32h742xx.h:1662
DMA handle Structure definition.
Definition: stm32h7xx_hal_dma.h:138