Home
last modified time | relevance | path

Searched refs:duty_cycle (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.4.0/drivers/pwm/
Dpwm_mcux_sctimer.c40 uint8_t duty_cycle; in mcux_sctimer_pwm_set_cycles() local
58 duty_cycle = 100 * pulse_cycles / period_cycles; in mcux_sctimer_pwm_set_cycles()
60 if (duty_cycle == 0) { in mcux_sctimer_pwm_set_cycles()
76 duty_cycle != data->channel[channel].dutyCyclePercent) { in mcux_sctimer_pwm_set_cycles()
96 LOG_DBG("SETUP dutycycle to %u\n", duty_cycle); in mcux_sctimer_pwm_set_cycles()
97 data->channel[channel].dutyCyclePercent = duty_cycle; in mcux_sctimer_pwm_set_cycles()
108 SCTIMER_UpdatePwmDutycycle(config->base, channel, duty_cycle, in mcux_sctimer_pwm_set_cycles()
Dpwm_mcux_tpm.c50 uint8_t duty_cycle; in mcux_tpm_set_cycles() local
62 duty_cycle = pulse_cycles * 100U / period_cycles; in mcux_tpm_set_cycles()
63 data->channel[channel].dutyCyclePercent = duty_cycle; in mcux_tpm_set_cycles()
72 pulse_cycles, period_cycles, duty_cycle, flags); in mcux_tpm_set_cycles()
114 duty_cycle); in mcux_tpm_set_cycles()
Dpwm_rv32m1_tpm.c49 uint8_t duty_cycle; in rv32m1_tpm_set_cycles() local
61 duty_cycle = pulse_cycles * 100U / period_cycles; in rv32m1_tpm_set_cycles()
62 data->channel[channel].dutyCyclePercent = duty_cycle; in rv32m1_tpm_set_cycles()
71 pulse_cycles, period_cycles, duty_cycle, flags); in rv32m1_tpm_set_cycles()
113 duty_cycle); in rv32m1_tpm_set_cycles()
Dpwm_led_esp32.c281 double duty_cycle = (double) pulse_cycles / (double) period_cycles; in pwm_led_esp32_set_cycles() local
283 channel->duty_val = (uint32_t)((double) (1 << channel->resolution) * duty_cycle); in pwm_led_esp32_set_cycles()
Dpwm_mc_esp32.c248 double duty_cycle = (double)pulse_cycles * 100 / (double)period_cycles; in mcpwm_esp32_set_cycles() local
250 channel->duty = (uint32_t)duty_cycle; in mcpwm_esp32_set_cycles()
/Zephyr-Core-3.4.0/drivers/spi/
Dspi_esp32_spim.h30 int duty_cycle; member
Dspi_esp32_spim.c312 .duty_cycle = cfg->duty_cycle == 0 ? 128 : cfg->duty_cycle, in spi_esp32_configure()
496 .duty_cycle = 0, \