Lines Matching refs:channel
57 ftm_chnl_pwm_config_param_t channel[MAX_CHANNELS]; member
64 static int mcux_ftm_set_cycles(const struct device *dev, uint32_t channel, in mcux_ftm_set_cycles() argument
72 uint32_t pair = channel / 2U; in mcux_ftm_set_cycles()
86 if (channel >= config->channel_count) { in mcux_ftm_set_cycles()
99 data->channel[channel].dutyValue = pulse_cycles; in mcux_ftm_set_cycles()
102 data->channel[channel].level = kFTM_HighTrue; in mcux_ftm_set_cycles()
104 data->channel[channel].level = kFTM_LowTrue; in mcux_ftm_set_cycles()
112 if (irqs & BIT_MASK(ARRAY_SIZE(data->channel))) { in mcux_ftm_set_cycles()
135 status = FTM_SetupPwmMode(config->base, data->channel, in mcux_ftm_set_cycles()
148 uint32_t channel, pwm_flags_t flags, in mcux_ftm_configure_capture() argument
155 uint32_t pair = channel / 2U; in mcux_ftm_configure_capture()
157 if (channel & 0x1U) { in mcux_ftm_configure_capture()
217 static int mcux_ftm_enable_capture(const struct device *dev, uint32_t channel) in mcux_ftm_enable_capture() argument
221 uint32_t pair = channel / 2U; in mcux_ftm_enable_capture()
223 if (channel & 0x1U) { in mcux_ftm_enable_capture()
255 static int mcux_ftm_disable_capture(const struct device *dev, uint32_t channel) in mcux_ftm_disable_capture() argument
259 uint32_t pair = channel / 2U; in mcux_ftm_disable_capture()
261 if (channel & 0x1U) { in mcux_ftm_disable_capture()
281 static void mcux_ftm_capture_first_edge(const struct device *dev, uint32_t channel, in mcux_ftm_capture_first_edge() argument
287 uint32_t pair = channel / 2U; in mcux_ftm_capture_first_edge()
301 static void mcux_ftm_capture_second_edge(const struct device *dev, uint32_t channel, in mcux_ftm_capture_second_edge() argument
309 uint32_t pair = channel / 2U; in mcux_ftm_capture_second_edge()
428 uint32_t channel, uint64_t *cycles) in mcux_ftm_get_cycles_per_sec() argument
442 ftm_chnl_pwm_config_param_t *channel = data->channel; in mcux_ftm_init() local
452 if (config->channel_count > ARRAY_SIZE(data->channel)) { in mcux_ftm_init()
469 channel->chnlNumber = i; in mcux_ftm_init()
470 channel->level = kFTM_NoPwmSignal; in mcux_ftm_init()
471 channel->dutyValue = 0; in mcux_ftm_init()
472 channel->firstEdgeValue = 0; in mcux_ftm_init()
473 channel++; in mcux_ftm_init()