Lines Matching refs:cnv
434 uint32_t cnv, cnvFirstEdge; in FTM_SetupPwm() local
481 cnv = mod + 1U; in FTM_SetupPwm()
485 cnv = (mod * chnlParams->dutyCyclePercent) / 100U; in FTM_SetupPwm()
503 base->CONTROLS[chnlParams->chnlNumber].CnV = cnv; in FTM_SetupPwm()
523 cnvFirstEdge = (mod > cnv) ? ((mod - cnv) / 2U) : 0U; in FTM_SetupPwm()
562 base->CONTROLS[(((uint32_t)chnlParams->chnlNumber) * 2U) + 1U].CnV = cnvFirstEdge + cnv; in FTM_SetupPwm()
599 uint32_t cnv, cnvFirstEdge = 0, mod; in FTM_UpdatePwmDutycycle() local
617 cnv = mod + 1U; in FTM_UpdatePwmDutycycle()
621 cnv = (mod * dutyCyclePercent) / 100U; in FTM_UpdatePwmDutycycle()
626 base->CONTROLS[chnlNumber].CnV = cnv; in FTM_UpdatePwmDutycycle()
638 cnvFirstEdge = (mod > cnv) ? ((mod - cnv) / 2U) : 0U; in FTM_UpdatePwmDutycycle()
643 …if (((cnvFirstEdge != 0U) && (cnv == (mod + 1U))) || (((cnvFirstEdge + cnv) > mod) && (cnv < mod))) in FTM_UpdatePwmDutycycle()
650 base->CONTROLS[((uint32_t)chnlNumber * 2U) + 1U].CnV = cnvFirstEdge + cnv; in FTM_UpdatePwmDutycycle()