Home
last modified time | relevance | path

Searched refs:dutyCyclePercent (Results 1 – 19 of 19) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/tpm/
Dfsl_tpm.c316 …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()
349 if (chnlParams.dutyCyclePercent == 0U) in TPM_SetupSinglePwmChannel()
354 else if (chnlParams.dutyCyclePercent == 100U) in TPM_SetupSinglePwmChannel()
362 cnv = (mod * chnlParams.dutyCyclePercent) / 100U; in TPM_SetupSinglePwmChannel()
428 if (chnlParams.dutyCyclePercent == 100U) in TPM_SetupSinglePwmChannel()
434 cnv = (mod * chnlParams.dutyCyclePercent) / 100U; in TPM_SetupSinglePwmChannel()
581 uint8_t dutyCyclePercent) in TPM_UpdatePwmDutycycle() argument
597 if (((dutyCyclePercent == 100U) && (mod == counterMax)) || (dutyCyclePercent > 100U)) in TPM_UpdatePwmDutycycle()
[all …]
Dfsl_tpm.h112 uint8_t dutyCyclePercent; /*!< PWM pulse width, value should be between 0 to 100 member
467 uint8_t dutyCyclePercent);
/hal_nxp-3.5.0/mcux/mcux-sdk/components/pwm/
Dfsl_adapter_pwm_ctimer.c94 (ctimer_match_t)channel, setupConfig->dutyCyclePercent, in HAL_PwmSetupPwm()
114 uint8_t dutyCyclePercent) in HAL_PwmUpdateDutycycle() argument
124 duty = dutyCyclePercent; in HAL_PwmUpdateDutycycle()
128 duty = (uint8_t)100 - dutyCyclePercent; in HAL_PwmUpdateDutycycle()
Dfsl_adapter_pwm_ftm.c95 .dutyCyclePercent = setupConfig->dutyCyclePercent, in HAL_PwmSetupPwm()
121 uint8_t dutyCyclePercent) in HAL_PwmUpdateDutycycle() argument
130 dutyCyclePercent); in HAL_PwmUpdateDutycycle()
Dfsl_adapter_pwm_tpm.c93 .dutyCyclePercent = setupConfig->dutyCyclePercent, in HAL_PwmSetupPwm()
119 uint8_t dutyCyclePercent) in HAL_PwmUpdateDutycycle() argument
128 dutyCyclePercent); in HAL_PwmUpdateDutycycle()
Dfsl_adapter_pwm.h58 uint8_t dutyCyclePercent; /*!< PWM duty cycle percent */ member
156 uint8_t dutyCyclePercent);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ctimer/
Dfsl_ctimer.c193 uint8_t dutyCyclePercent, in CTIMER_SetupPwm() argument
234 if (dutyCyclePercent == 0U) in CTIMER_SetupPwm()
240 pulsePeriod = (period * (100U - (uint32_t)dutyCyclePercent)) / 100U; in CTIMER_SetupPwm()
350 uint8_t dutyCyclePercent) in CTIMER_UpdatePwmDutycycle() argument
358 if (dutyCyclePercent == 0U) in CTIMER_UpdatePwmDutycycle()
364 pulsePeriod = (period * (100U - (uint32_t)dutyCyclePercent)) / 100U; in CTIMER_UpdatePwmDutycycle()
Dfsl_ctimer.h271 uint8_t dutyCyclePercent,
303 uint8_t dutyCyclePercent);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sctimer/
Dfsl_sctimer.c307 if (pwmParams->dutyCyclePercent >= 100U) in SCTIMER_SetupPwm()
313 pulsePeriod = (uint32_t)(((uint64_t)period * pwmParams->dutyCyclePercent) / 100U); in SCTIMER_SetupPwm()
403 void SCTIMER_UpdatePwmDutycycle(SCT_Type *base, sctimer_out_t output, uint8_t dutyCyclePercent, uin… in SCTIMER_UpdatePwmDutycycle() argument
406 assert(dutyCyclePercent <= 100U); in SCTIMER_UpdatePwmDutycycle()
426 if (dutyCyclePercent >= 100U) in SCTIMER_UpdatePwmDutycycle()
442 pulsePeriod = (uint32_t)(((uint64_t)period * dutyCyclePercent) / 100U); in SCTIMER_UpdatePwmDutycycle()
Dfsl_sctimer.h88 uint8_t dutyCyclePercent; /*!< PWM pulse width, value should be between 0 to 100 member
401 void SCTIMER_UpdatePwmDutycycle(SCT_Type *base, sctimer_out_t output, uint8_t dutyCyclePercent, uin…
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/qtmr_1/
Dfsl_qtmr.c170 uint8_t dutyCyclePercent, in QTMR_SetupPwm() argument
178 if (dutyCyclePercent <= 100U) in QTMR_SetupPwm()
185 highCount = periodCount * dutyCyclePercent / 100U; in QTMR_SetupPwm()
232 if (dutyCyclePercent == 100U) in QTMR_SetupPwm()
237 else if (dutyCyclePercent == 0U) in QTMR_SetupPwm()
251 s_qtmrGetPwmDutyCycle[channel] = dutyCyclePercent; in QTMR_SetupPwm()
Dfsl_qtmr.h253 uint8_t dutyCyclePercent,
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ftm/
Dfsl_ftm.c473 if (chnlParams->dutyCyclePercent > 100U) in FTM_SetupPwm()
478 if (chnlParams->dutyCyclePercent == 100U) in FTM_SetupPwm()
485 cnv = (mod * chnlParams->dutyCyclePercent) / 100U; in FTM_SetupPwm()
528 if ((chnlParams->firstEdgeDelayPercent + chnlParams->dutyCyclePercent) > 100U) in FTM_SetupPwm()
597 uint8_t dutyCyclePercent) in FTM_UpdatePwmDutycycle() argument
610 if (dutyCyclePercent > 100U) in FTM_UpdatePwmDutycycle()
614 if (dutyCyclePercent == 100U) in FTM_UpdatePwmDutycycle()
621 cnv = (mod * dutyCyclePercent) / 100U; in FTM_UpdatePwmDutycycle()
Dfsl_ftm.h77 uint8_t dutyCyclePercent; /*!< PWM pulse width, value should be between 0 to 100 member
506 uint8_t dutyCyclePercent);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/qtmr_2/
Dfsl_qtmr.c160 …TMR_Type *base, uint32_t pwmFreqHz, uint8_t dutyCyclePercent, bool outputPolarity, uint32_t srcClo… in QTMR_SetupPwm() argument
166 if (dutyCyclePercent <= 100U) in QTMR_SetupPwm()
173 highCount = (periodCount * dutyCyclePercent) / 100U; in QTMR_SetupPwm()
Dfsl_qtmr.h217 …TMR_Type *base, uint32_t pwmFreqHz, uint8_t dutyCyclePercent, bool outputPolarity, uint32_t srcClo…
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/pwm/
Dfsl_pwm.c59 static inline uint16_t dutyCycleToReloadValue(uint8_t dutyCyclePercent) in dutyCycleToReloadValue() argument
62 return ((65535U * dutyCyclePercent) + 50U) / 100U; in dutyCycleToReloadValue()
322 pwmHighPulse = (pulseCnt * chnlParams->dutyCyclePercent) / 100U; in PWM_SetupPwm()
483 s_pwmGetPwmDutyCycle[subModule][chnlParams->pwmChannel] = chnlParams->dutyCyclePercent; in PWM_SetupPwm()
601 uint8_t dutyCyclePercent) in PWM_UpdatePwmDutycycle() argument
603 assert(dutyCyclePercent <= 100U); in PWM_UpdatePwmDutycycle()
605 uint16_t reloadValue = dutyCycleToReloadValue(dutyCyclePercent); in PWM_UpdatePwmDutycycle()
Dfsl_pwm.h342 uint8_t dutyCyclePercent; /*!< PWM pulse width, value should be between 0 to 100 member
544 uint8_t dutyCyclePercent);
/hal_nxp-3.5.0/mcux/mcux-sdk/components/led/
Dfsl_component_led.c445 setupConfig.dutyCyclePercent = 0; in LED_Init()