Lines Matching full:channel_idx
205 static int mcpwm_esp32_get_cycles_per_sec(const struct device *dev, uint32_t channel_idx, in mcpwm_esp32_get_cycles_per_sec() argument
209 struct mcpwm_esp32_channel_config *channel = &config->channel_config[channel_idx]; in mcpwm_esp32_get_cycles_per_sec()
213 LOG_ERR("Error getting channel %d", channel_idx); in mcpwm_esp32_get_cycles_per_sec()
235 static int mcpwm_esp32_set_cycles(const struct device *dev, uint32_t channel_idx, in mcpwm_esp32_set_cycles() argument
242 struct mcpwm_esp32_channel_config *channel = &config->channel_config[channel_idx]; in mcpwm_esp32_set_cycles()
245 LOG_ERR("Error getting channel %d", channel_idx); in mcpwm_esp32_set_cycles()
250 mcpwm_esp32_get_cycles_per_sec(dev, channel_idx, &clk_freq); in mcpwm_esp32_set_cycles()
288 static int mcpwm_esp32_configure_capture(const struct device *dev, uint32_t channel_idx, in mcpwm_esp32_configure_capture() argument
294 struct mcpwm_esp32_channel_config *channel = &config->channel_config[channel_idx]; in mcpwm_esp32_configure_capture()
298 LOG_ERR("Error getting channel %d", channel_idx); in mcpwm_esp32_configure_capture()
328 static int mcpwm_esp32_disable_capture(const struct device *dev, uint32_t channel_idx) in mcpwm_esp32_disable_capture() argument
332 struct mcpwm_esp32_channel_config *channel = &config->channel_config[channel_idx]; in mcpwm_esp32_disable_capture()
336 LOG_ERR("Error getting channel %d", channel_idx); in mcpwm_esp32_disable_capture()
351 static int mcpwm_esp32_enable_capture(const struct device *dev, uint32_t channel_idx) in mcpwm_esp32_enable_capture() argument
355 struct mcpwm_esp32_channel_config *channel = &config->channel_config[channel_idx]; in mcpwm_esp32_enable_capture()
359 LOG_ERR("Error getting channel %d", channel_idx); in mcpwm_esp32_enable_capture()