Home
last modified time | relevance | path

Searched refs:chnlParams (Results 1 – 6 of 6) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ftm/
Dfsl_ftm.c424 const ftm_chnl_pwm_signal_param_t *chnlParams, in FTM_SetupPwm() argument
430 assert(NULL != chnlParams); in FTM_SetupPwm()
467 if (((uint8_t)chnlParams->chnlNumber >= (uint8_t)FSL_FEATURE_FTM_CHANNEL_COUNTn(base)) || in FTM_SetupPwm()
473 if (chnlParams->dutyCyclePercent > 100U) in FTM_SetupPwm()
478 if (chnlParams->dutyCyclePercent == 100U) in FTM_SetupPwm()
485 cnv = (mod * chnlParams->dutyCyclePercent) / 100U; in FTM_SetupPwm()
491 reg = base->CONTROLS[chnlParams->chnlNumber].CnSC; in FTM_SetupPwm()
495 reg |= (uint32_t)chnlParams->level << FTM_CnSC_ELSA_SHIFT; in FTM_SetupPwm()
501 base->CONTROLS[chnlParams->chnlNumber].CnSC = reg; in FTM_SetupPwm()
503 base->CONTROLS[chnlParams->chnlNumber].CnV = cnv; in FTM_SetupPwm()
[all …]
Dfsl_ftm.h484 const ftm_chnl_pwm_signal_param_t *chnlParams,
535 const ftm_chnl_pwm_config_param_t *chnlParams,
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/tpm/
Dfsl_tpm.c279 tpm_chnl_pwm_signal_param_t chnlParams) in TPM_SetupSinglePwmChannel() argument
289 …uint8_t)((uint32_t)kTPM_ChnlMSBMask | TPM_CnSC_ELSB(chnlParams.pauseLevel) | TPM_CnSC_ELSA(chnlPar… in TPM_SetupSinglePwmChannel()
291 controlBits = ((uint8_t)kTPM_ChnlMSBMask | ((uint8_t)chnlParams.level << TPM_CnSC_ELSA_SHIFT)); in TPM_SetupSinglePwmChannel()
293 chnlId = (uint8_t)chnlParams.chnlNumber; in TPM_SetupSinglePwmChannel()
316 …if (((chnlParams.dutyCyclePercent == 100U) && (mod == counterMax)) || (chnlParams.dutyCyclePercent… in TPM_SetupSinglePwmChannel()
335 if (((chnlParams.firstEdgeDelayPercent + chnlParams.dutyCyclePercent) > 100U) || in TPM_SetupSinglePwmChannel()
336 ((chnlParams.firstEdgeDelayPercent > 0U) && (chnlParams.dutyCyclePercent == 0U)) || in TPM_SetupSinglePwmChannel()
337 ((chnlParams.firstEdgeDelayPercent == 0U) && (chnlParams.deadTimeValue[0] != 0U))) in TPM_SetupSinglePwmChannel()
349 if (chnlParams.dutyCyclePercent == 0U) in TPM_SetupSinglePwmChannel()
354 else if (chnlParams.dutyCyclePercent == 100U) in TPM_SetupSinglePwmChannel()
[all …]
Dfsl_tpm.h445 const tpm_chnl_pwm_signal_param_t *chnlParams,
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/pwm/
Dfsl_pwm.c289 const pwm_signal_param_t *chnlParams, in PWM_SetupPwm() argument
295 assert(chnlParams); in PWM_SetupPwm()
307 if (chnlParams[i].pwmChannel == kPWM_PwmX) in PWM_SetupPwm()
322 pwmHighPulse = (pulseCnt * chnlParams->dutyCyclePercent) / 100U; in PWM_SetupPwm()
342 if (chnlParams->pwmChannel == kPWM_PwmA) in PWM_SetupPwm()
367 if (chnlParams->pwmChannel == kPWM_PwmA) in PWM_SetupPwm()
393 if (chnlParams->pwmChannel == kPWM_PwmA) in PWM_SetupPwm()
418 if (chnlParams->pwmChannel == kPWM_PwmA) in PWM_SetupPwm()
436 if (chnlParams->pwmChannel == kPWM_PwmA) in PWM_SetupPwm()
440 base->SM[subModule].DTCNT0 = PWM_DTCNT0_DTCNT0(chnlParams->deadtimeValue); in PWM_SetupPwm()
[all …]
Dfsl_pwm.h497 const pwm_signal_param_t *chnlParams,