Searched refs:duty_cycle (Results 1 – 8 of 8) sorted by relevance
/Zephyr-Core-3.5.0/drivers/pwm/ |
D | pwm_mcux_sctimer.c | 43 uint8_t duty_cycle; in mcux_sctimer_pwm_set_cycles() local 61 duty_cycle = 100 * pulse_cycles / period_cycles; in mcux_sctimer_pwm_set_cycles() 63 if (duty_cycle == 0) { in mcux_sctimer_pwm_set_cycles() 79 duty_cycle != data->channel[channel].dutyCyclePercent) { in mcux_sctimer_pwm_set_cycles() 99 LOG_DBG("SETUP dutycycle to %u\n", duty_cycle); in mcux_sctimer_pwm_set_cycles() 100 data->channel[channel].dutyCyclePercent = duty_cycle; in mcux_sctimer_pwm_set_cycles() 111 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_nxp_s32_emios.c | 597 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), \
|
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.5.0/drivers/spi/ |
D | spi_esp32_spim.h | 30 int duty_cycle; member
|
D | spi_esp32_spim.c | 313 .duty_cycle = cfg->duty_cycle == 0 ? 128 : cfg->duty_cycle, in spi_esp32_configure() 507 .duty_cycle = 0, \
|