Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/pwm/
Dpwm_mcux_sctimer.c44 uint32_t duty_cycle) in mcux_sctimer_new_channel() argument
67 LOG_DBG("SETUP dutycycle to %u\n", duty_cycle); in mcux_sctimer_new_channel()
68 data->channel[channel].dutyCyclePercent = duty_cycle; in mcux_sctimer_new_channel()
87 uint8_t duty_cycle; in mcux_sctimer_pwm_set_cycles() local
106 duty_cycle = 100 * pulse_cycles / period_cycles; in mcux_sctimer_pwm_set_cycles()
108 if (duty_cycle == 0 && data->configured_chan == 1) { in mcux_sctimer_pwm_set_cycles()
146 duty_cycle); in mcux_sctimer_pwm_set_cycles()
162 duty_cycle); in mcux_sctimer_pwm_set_cycles()
186 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_nxp_s32_emios.c597 BUILD_ASSERT(DT_NODE_HAS_PROP(node_id, duty_cycle), \
611 BUILD_ASSERT(DT_PROP(node_id, duty_cycle) <= DT_PROP(node_id, period), \
625 BUILD_ASSERT((DT_PROP(node_id, duty_cycle) + DT_PROP(node_id, dead_time)) <= \
628 BUILD_ASSERT(DT_PROP(node_id, dead_time) <= DT_PROP(node_id, duty_cycle), \
649 BUILD_ASSERT((DT_PROP(node_id, duty_cycle) + DT_PROP(node_id, phase_shift)) <= \
677 BUILD_ASSERT(!DT_NODE_HAS_PROP(node_id, duty_cycle), \
731 .DutyCycle = DT_PROP(node_id, duty_cycle), \
Dpwm_led_esp32.c295 double duty_cycle = (double) pulse_cycles / (double) period_cycles; in pwm_led_esp32_set_cycles() local
297 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.6.0/drivers/spi/
Dspi_esp32_spim.h30 int duty_cycle; member
Dspi_esp32_spim.c316 .duty_cycle = cfg->duty_cycle == 0 ? 128 : cfg->duty_cycle, in spi_esp32_configure()
510 .duty_cycle = 0, \