Lines Matching refs:channel
40 tpm_chnl_pwm_signal_param_t channel[MAX_CHANNELS]; member
43 static int rv32m1_tpm_set_cycles(const struct device *dev, uint32_t channel, in rv32m1_tpm_set_cycles() argument
56 if (channel >= config->channel_count) { in rv32m1_tpm_set_cycles()
62 data->channel[channel].dutyCyclePercent = duty_cycle; in rv32m1_tpm_set_cycles()
65 data->channel[channel].level = kTPM_HighTrue; in rv32m1_tpm_set_cycles()
67 data->channel[channel].level = kTPM_LowTrue; in rv32m1_tpm_set_cycles()
100 status = TPM_SetupPwm(config->base, data->channel, in rv32m1_tpm_set_cycles()
110 TPM_UpdateChnlEdgeLevelSelect(config->base, channel, in rv32m1_tpm_set_cycles()
111 data->channel[channel].level); in rv32m1_tpm_set_cycles()
112 TPM_UpdatePwmDutycycle(config->base, channel, config->mode, in rv32m1_tpm_set_cycles()
120 uint32_t channel, uint64_t *cycles) in rv32m1_tpm_get_cycles_per_sec() argument
134 tpm_chnl_pwm_signal_param_t *channel = data->channel; in rv32m1_tpm_init() local
139 if (config->channel_count > ARRAY_SIZE(data->channel)) { in rv32m1_tpm_init()
161 channel->chnlNumber = i; in rv32m1_tpm_init()
162 channel->level = kTPM_NoPwmSignal; in rv32m1_tpm_init()
163 channel->dutyCyclePercent = 0; in rv32m1_tpm_init()
164 channel->firstEdgeDelayPercent = 0; in rv32m1_tpm_init()
165 channel++; in rv32m1_tpm_init()