/* param base PWM peripheral base address param subModule PWM submodule to configure param pwmSignal Signal (PWM A or PWM B) to update param currPwmMode The current PWM mode set during PWM setup param dutyCyclePercent New PWM pulse width, value should be between 0 to 100 0=inactive signal(0% duty cycle)... 100=active signal (100% duty cycle)  */
void PWM_UpdatePwmDutycycle(PWM_Type *base, pwm_submodule_t subModule, pwm_channels_t pwmSignal, pwm_mode_t currPwmMode, uint8_t dutyCyclePercent)
/* param base PWM peripheral base address param subModule PWM submodule to configure param pwmSignal Signal (PWM A or PWM B) to update param currPwmMode The current PWM mode set during PWM setup param dutyCyclePercent New PWM pulse width, value should be between 0 to 100 0=inactive signal(0% duty cycle)... 100=active signal (100% duty cycle)  */
void PWM_UpdatePwmDutycycle(PWM_Type *base, pwm_submodule_t subModule, pwm_channels_t pwmSignal, pwm_mode_t currPwmMode, uint8_t dutyCyclePercent)
{
    assert(dutyCyclePercent <= 100U);
    assert(pwmSignal != kPWM_PwmX);
    uint16_t reloadValue = dutyCycleToReloadValue(dutyCyclePercent);
    PWM_UpdatePwmDutycycleHighAccuracy(base, subModule, pwmSignal, currPwmMode, reloadValue);
}