Lines Matching refs:channel
38 pwm_signal_param_t channel[CHANNEL_COUNT]; member
42 static int mcux_pwm_set_cycles_internal(const struct device *dev, uint32_t channel, in mcux_pwm_set_cycles_internal() argument
56 if (period_cycles != data->period_cycles[channel] in mcux_pwm_set_cycles_internal()
57 || level != data->channel[channel].level) { in mcux_pwm_set_cycles_internal()
61 data->period_cycles[channel] = period_cycles; in mcux_pwm_set_cycles_internal()
68 data->channel[channel].pwmchannelenable = true; in mcux_pwm_set_cycles_internal()
79 data->channel[channel].dutyCyclePercent = 0; in mcux_pwm_set_cycles_internal()
80 data->channel[channel].level = level; in mcux_pwm_set_cycles_internal()
83 &data->channel[channel], 1U, in mcux_pwm_set_cycles_internal()
91 if (channel == 0) { in mcux_pwm_set_cycles_internal()
124 if (channel == 0) { in mcux_pwm_set_cycles_internal()
145 static int mcux_pwm_set_cycles(const struct device *dev, uint32_t channel, in mcux_pwm_set_cycles() argument
152 if (channel >= CHANNEL_COUNT) { in mcux_pwm_set_cycles()
170 result = mcux_pwm_set_cycles_internal(dev, channel, period_cycles, pulse_cycles, flags); in mcux_pwm_set_cycles()
176 uint32_t channel, uint64_t *cycles) in mcux_pwm_get_cycles_per_sec() argument
233 data->channel[0].pwmChannel = kPWM_PwmA; in pwm_mcux_init()
234 data->channel[0].level = kPWM_HighTrue; in pwm_mcux_init()
235 data->channel[1].pwmChannel = kPWM_PwmB; in pwm_mcux_init()
236 data->channel[1].level = kPWM_HighTrue; in pwm_mcux_init()