Home
last modified time | relevance | path

Searched refs:chan_cfg (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/drivers/adc/
Dadc_emul.c95 struct adc_emul_chan_cfg *chan_cfg; member
113 struct adc_emul_chan_cfg *chan_cfg; in adc_emul_const_value_set() local
120 chan_cfg = &data->chan_cfg[chan]; in adc_emul_const_value_set()
124 chan_cfg->input = ADC_EMUL_CONST_VALUE; in adc_emul_const_value_set()
125 chan_cfg->const_value = value; in adc_emul_const_value_set()
136 struct adc_emul_chan_cfg *chan_cfg; in adc_emul_const_raw_value_set() local
143 chan_cfg = &data->chan_cfg[chan]; in adc_emul_const_raw_value_set()
147 chan_cfg->input = ADC_EMUL_CONST_RAW_VALUE; in adc_emul_const_raw_value_set()
148 chan_cfg->const_value = raw_value; in adc_emul_const_raw_value_set()
160 struct adc_emul_chan_cfg *chan_cfg; in adc_emul_value_func_set() local
[all …]
Dadc_numaker.c53 const struct adc_channel_cfg *chan_cfg) in adc_numaker_channel_setup() argument
58 if (chan_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_numaker_channel_setup()
59 if ((ADC_ACQ_TIME_UNIT(chan_cfg->acquisition_time) != ADC_ACQ_TIME_TICKS) || in adc_numaker_channel_setup()
60 (ADC_ACQ_TIME_VALUE(chan_cfg->acquisition_time) > 255)) { in adc_numaker_channel_setup()
65 data->acq_time = ADC_ACQ_TIME_VALUE(chan_cfg->acquisition_time); in adc_numaker_channel_setup()
67 if (chan_cfg->gain != ADC_GAIN_1) { in adc_numaker_channel_setup()
72 if (chan_cfg->reference != ADC_REF_INTERNAL) { in adc_numaker_channel_setup()
77 if (chan_cfg->channel_id >= cfg->channel_cnt) { in adc_numaker_channel_setup()
78 LOG_ERR("Invalid channel (%u)", chan_cfg->channel_id); in adc_numaker_channel_setup()
82 data->is_differential = (chan_cfg->differential) ? true : false; in adc_numaker_channel_setup()
Dadc_ambiq.c224 static int adc_ambiq_channel_setup(const struct device *dev, const struct adc_channel_cfg *chan_cfg) in adc_ambiq_channel_setup() argument
228 if (chan_cfg->channel_id >= cfg->num_channels) { in adc_ambiq_channel_setup()
229 LOG_ERR("unsupported channel id '%d'", chan_cfg->channel_id); in adc_ambiq_channel_setup()
233 if (chan_cfg->gain != ADC_GAIN_1) { in adc_ambiq_channel_setup()
238 if (chan_cfg->reference != ADC_REF_INTERNAL) { in adc_ambiq_channel_setup()
243 if (chan_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_ambiq_channel_setup()
244 LOG_ERR("unsupported acquisition_time '%d'", chan_cfg->acquisition_time); in adc_ambiq_channel_setup()
248 if (chan_cfg->differential) { in adc_ambiq_channel_setup()
Dadc_gd32.c242 const struct adc_channel_cfg *chan_cfg) in adc_gd32_channel_setup() argument
246 if (chan_cfg->gain != ADC_GAIN_1) { in adc_gd32_channel_setup()
251 if (chan_cfg->reference != ADC_REF_INTERNAL) { in adc_gd32_channel_setup()
256 if (chan_cfg->differential) { in adc_gd32_channel_setup()
261 if (chan_cfg->channel_id >= cfg->channels) { in adc_gd32_channel_setup()
262 LOG_ERR("Invalid channel (%u)", chan_cfg->channel_id); in adc_gd32_channel_setup()
266 return adc_gd32_configure_sampt(cfg, chan_cfg->channel_id, in adc_gd32_channel_setup()
267 chan_cfg->acquisition_time); in adc_gd32_channel_setup()
/Zephyr-latest/drivers/i2c/
Di2c_tca954x.c138 const struct tca954x_channel_config *chan_cfg = dev->config; in tca954x_channel_init() local
142 if (!device_is_ready(chan_cfg->root)) { in tca954x_channel_init()
143 LOG_ERR("I2C mux root %s not ready", chan_cfg->root->name); in tca954x_channel_init()
147 if ((chan_cfg->chan_mask >= BIT(root_cfg->nchans) && !chan_cfg->has_enable) || in tca954x_channel_init()
148 (chan_cfg->chan_mask > (BIT(2) | (root_cfg->nchans - 1)) && chan_cfg->has_enable)) { in tca954x_channel_init()
/Zephyr-latest/drivers/dma/
Ddma_sam_xdmac.c384 uint32_t chan_cfg = xdmac->XDMAC_CHID[channel].XDMAC_CC; in sam_xdmac_get_status() local
388 if ((chan_cfg & XDMAC_CC_TYPE_Msk) == 0) { in sam_xdmac_get_status()
390 } else if ((chan_cfg & XDMAC_CC_DSYNC_Msk) == XDMAC_CC_DSYNC_MEM2PER) { in sam_xdmac_get_status()
396 status->busy = ((chan_cfg & XDMAC_CC_INITD_Msk) != 0) || (ublen > 0); in sam_xdmac_get_status()