Lines Matching refs:channel
98 uint32_t channel, uint32_t period_cycles, in pwm_period_check() argument
110 if ((i != channel) && in pwm_period_check()
120 static int pwm_nrf_sw_set_cycles(const struct device *dev, uint32_t channel, in pwm_nrf_sw_set_cycles() argument
136 if (channel >= config->map_size) { in pwm_nrf_sw_set_cycles()
137 LOG_ERR("Invalid channel: %u.", channel); in pwm_nrf_sw_set_cycles()
144 ret = pwm_period_check(data, config->map_size, channel, period_cycles, in pwm_nrf_sw_set_cycles()
166 gpiote = config->gpiote[channel].p_reg; in pwm_nrf_sw_set_cycles()
167 psel_ch = config->psel_ch[channel]; in pwm_nrf_sw_set_cycles()
168 gpiote_ch = data->gpiote_ch[channel]; in pwm_nrf_sw_set_cycles()
169 ppi_chs = data->ppi_ch[channel]; in pwm_nrf_sw_set_cycles()
172 channel, period_cycles, pulse_cycles); in pwm_nrf_sw_set_cycles()
195 data->pulse_cycles[channel] = 0U; in pwm_nrf_sw_set_cycles()
217 nrf_rtc_compare_event_get(1 + channel)); in pwm_nrf_sw_set_cycles()
226 nrf_rtc_cc_set(rtc, 1 + channel, pulse_cycles - 1); in pwm_nrf_sw_set_cycles()
231 nrf_timer_compare_event_get(1 + channel)); in pwm_nrf_sw_set_cycles()
235 nrf_timer_cc_set(timer, 1 + channel, pulse_cycles); in pwm_nrf_sw_set_cycles()
272 nrf_rtc_compare_event_get(1 + channel)); in pwm_nrf_sw_set_cycles()
288 nrf_timer_compare_event_get(1 + channel)); in pwm_nrf_sw_set_cycles()
311 data->pulse_cycles[channel] = pulse_cycles; in pwm_nrf_sw_set_cycles()
317 uint32_t channel, uint64_t *cycles) in pwm_nrf_sw_get_cycles_per_sec() argument