The following code snippet is from the SDK 2.4 ftm_quad_decoder example in the 'demo_apps' folder.
/* Set the modulo values for Quad Decoder. */
FTM_SetQuadDecoderModuloValue(DEMO_FTM_BASEADDR, 0U, DEMO_QUAD_DECODER_MODULO);
/* Enable the Quad Decoder mode. */
phaseParamsConfigStruct.enablePhaseFilter = true;
phaseParamsConfigStruct.phaseFilterVal = 16;
phaseParamsConfigStruct.phasePolarity = kFTM_QuadPhaseNormal;
FTM_SetupQuadDecode(DEMO_FTM_BASEADDR, &phaseParamsConfigStruct, /* Phase A. */
&phaseParamsConfigStruct, /* Phase B. */
kFTM_QuadPhaseEncode);
The assignment
phaseParamsConfigStruct.phaseFilterVal = 16;
has not affect.
The width of the phaseFilterVal is only 4 bits. 16 is the same as zero.