Lines Matching refs:channel_cfg
88 const struct dac_channel_cfg *channel_cfg) in dac_stm32_channel_setup() argument
94 if ((channel_cfg->channel_id - STM32_FIRST_CHANNEL >= in dac_stm32_channel_setup()
96 (channel_cfg->channel_id < STM32_FIRST_CHANNEL)) { in dac_stm32_channel_setup()
97 LOG_ERR("Channel %d is not valid", channel_cfg->channel_id); in dac_stm32_channel_setup()
101 if ((channel_cfg->resolution == 8) || in dac_stm32_channel_setup()
102 (channel_cfg->resolution == 12)) { in dac_stm32_channel_setup()
103 data->resolution = channel_cfg->resolution; in dac_stm32_channel_setup()
109 channel = table_channels[channel_cfg->channel_id - STM32_FIRST_CHANNEL]; in dac_stm32_channel_setup()
111 if (channel_cfg->buffered) { in dac_stm32_channel_setup()
121 if (channel_cfg->internal) { in dac_stm32_channel_setup()
129 if (channel_cfg->internal) { in dac_stm32_channel_setup()