Lines Matching refs:channel
45 tpm_chnl_pwm_signal_param_t channel[MAX_CHANNELS]; member
48 static int mcux_tpm_set_cycles(const struct device *dev, uint32_t channel, in mcux_tpm_set_cycles() argument
61 if (channel >= config->channel_count) { in mcux_tpm_set_cycles()
67 data->channel[channel].dutyCyclePercent = duty_cycle; in mcux_tpm_set_cycles()
70 data->channel[channel].level = kTPM_HighTrue; in mcux_tpm_set_cycles()
72 data->channel[channel].level = kTPM_LowTrue; in mcux_tpm_set_cycles()
105 status = TPM_SetupPwm(config->base, data->channel, in mcux_tpm_set_cycles()
115 TPM_UpdateChnlEdgeLevelSelect(config->base, channel, in mcux_tpm_set_cycles()
116 data->channel[channel].level); in mcux_tpm_set_cycles()
117 TPM_UpdatePwmDutycycle(config->base, channel, config->mode, in mcux_tpm_set_cycles()
125 uint32_t channel, uint64_t *cycles) in mcux_tpm_get_cycles_per_sec() argument
139 tpm_chnl_pwm_signal_param_t *channel = data->channel; in mcux_tpm_init() local
144 if (config->channel_count > ARRAY_SIZE(data->channel)) { in mcux_tpm_init()
166 channel->chnlNumber = i; in mcux_tpm_init()
168 channel->level = kTPM_NoPwmSignal; in mcux_tpm_init()
170 channel->level = kTPM_HighTrue; in mcux_tpm_init()
171 channel->pauseLevel = kTPM_ClearOnPause; in mcux_tpm_init()
173 channel->dutyCyclePercent = 0; in mcux_tpm_init()
175 channel->firstEdgeDelayPercent = 0; in mcux_tpm_init()
177 channel++; in mcux_tpm_init()