Hi,
FTMx_CnSC , and CnV are accessed through the "CONTROLS" register from the FTM_Type structure. Please check the fsl_ftm.c driver file for the FRDMKV31F , where you will see that these registers are accessed like in the following example:
void FTM_SetupOutputCompare(FTM_Type *base,
ftm_chnl_t chnlNumber,
ftm_output_compare_mode_t compareMode,
uint32_t compareValue)
{
uint32_t reg;
.
.
.
base->CONTROLS[chnlNumber].CnSC = reg;
base->CONTROLS[chnlNumber].CnV = compareValue;
.
.
.
}
Best Regards,
Ricardo Delsordo