Searched refs:duty_cycle (Results 1 – 8 of 8) sorted by relevance
/Zephyr-Core-3.6.0/drivers/pwm/ |
D | pwm_mcux_sctimer.c | 44 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()
|
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 | 295 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()
|
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.6.0/drivers/spi/ |
D | spi_esp32_spim.h | 30 int duty_cycle; member
|
D | spi_esp32_spim.c | 316 .duty_cycle = cfg->duty_cycle == 0 ? 128 : cfg->duty_cycle, in spi_esp32_configure() 510 .duty_cycle = 0, \
|