64 ((ftmBase)->FMS) &= 0U;
66 ((ftmBase)->MODE) = 0x00000004U;
67 ((ftmBase)->SC) &= 0U;
68 ((ftmBase)->CNT) = 0U;
69 ((ftmBase)->MOD) = 0U;
70 ((ftmBase)->CNTIN) = 0U;
71 ((ftmBase)->STATUS) &= 0U;
72 ((ftmBase)->SYNC) = 0U;
73 ((ftmBase)->OUTINIT) = 0U;
74 ((ftmBase)->OUTMASK) = 0U;
75 ((ftmBase)->COMBINE) = 0U;
76 ((ftmBase)->DEADTIME) = 0U;
77 ((ftmBase)->EXTTRIG) &= 0U;
78 ((ftmBase)->POL) = 0U;
79 ((ftmBase)->FILTER) = 0U;
80 ((ftmBase)->FLTCTRL) = 0U;
81 ((ftmBase)->QDCTRL) = 0U;
82 ((ftmBase)->CONF) = 0U;
83 ((ftmBase)->FLTPOL) = 0U;
84 ((ftmBase)->SYNCONF) = 0U;
85 ((ftmBase)->INVCTRL) = 0U;
86 ((ftmBase)->SWOCTRL) = 0U;
87 ((ftmBase)->PWMLOAD) = 0U;
88 ((ftmBase)->HCR) = 0U;
92 ((ftmBase)->CONTROLS[chnIndex].CnSC) &= 0U;
93 ((ftmBase)->CONTROLS[chnIndex].CnV) = 0U;
117 else if (channel < 6U)
128 ((ftmBase)->EXTTRIG) |= value;
132 ((ftmBase)->EXTTRIG) &= ~value;
#define FTM_FILTER_CH3FVAL(x)
#define FTM_EXTTRIG_CH6TRIG_MASK
void FTM_HAL_SetChnTriggerCmd(FTM_Type *const ftmBase, uint8_t channel, bool enable)
Enables or disables the generation of the FTM peripheral timer channel trigger when the FTM counter i...
#define FTM_FILTER_CH2FVAL_MASK
static void FTM_HAL_Enable(FTM_Type *const ftmBase, bool enable)
Enables the FTM peripheral timer group.
#define FTM_FILTER_CH3FVAL_MASK
#define FTM_EXTTRIG_CH2TRIG_MASK
#define FTM_FILTER_CH1FVAL(x)
#define CHAN1_IDX
Channel number for CHAN2.
#define FEATURE_FTM_CHANNEL_COUNT
#define FTM_FILTER_CH0FVAL(x)
void FTM_HAL_SetChnInputCaptureFilter(FTM_Type *const ftmBase, uint8_t channel, uint8_t value)
Sets the FTM peripheral timer channel input capture filter value.
#define FTM_EXTTRIG_CH0TRIG_MASK
#define CHAN4_IDX
Channel number for CHAN5.
#define CHAN3_IDX
Channel number for CHAN4.
static void FTM_HAL_SetClockPs(FTM_Type *const ftmBase, ftm_clock_ps_t ps)
Sets the FTM clock divider.
void FTM_HAL_Init(FTM_Type *const ftmBase, ftm_clock_ps_t ftmClockPrescaler)
Initializes the FTM. This function will enable the flexTimer module and selects one pre-scale factor ...
#define FTM_FILTER_CH1FVAL_MASK
#define FTM_FILTER_CH2FVAL(x)
void FTM_HAL_Reset(FTM_Type *const ftmBase)
Resets the FTM registers. All the register use in the driver should be reset to default value of each...
#define FTM_FILTER_CH0FVAL_MASK
#define FTM_RMW_FILTER(base, mask, value)
FILTER - Read and modify and write Filter (RW)
#define CHAN2_IDX
Channel number for CHAN3.
#define CHAN0_IDX
Channel number for CHAN1.
ftm_clock_ps_t
FlexTimer pre-scaler factor selection for the clock source. In quadrature decoder mode set FTM_CLOCK_...