Searched refs:duty_cycle (Results 1 – 7 of 7) sorted by relevance
/Zephyr-Core-3.4.0/drivers/pwm/ |
D | pwm_mcux_sctimer.c | 40 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()
|
D | pwm_mcux_tpm.c | 50 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()
|
D | pwm_rv32m1_tpm.c | 49 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()
|
D | pwm_led_esp32.c | 281 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()
|
D | pwm_mc_esp32.c | 248 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/ |
D | spi_esp32_spim.h | 30 int duty_cycle; member
|
D | spi_esp32_spim.c | 312 .duty_cycle = cfg->duty_cycle == 0 ? 128 : cfg->duty_cycle, in spi_esp32_configure() 496 .duty_cycle = 0, \
|