Searched refs:chan_cfg (Results 1 – 5 of 5) sorted by relevance
93 struct adc_emul_chan_cfg *chan_cfg; member111 struct adc_emul_chan_cfg *chan_cfg; in adc_emul_const_value_set() local118 chan_cfg = &data->chan_cfg[chan]; in adc_emul_const_value_set()122 chan_cfg->input = ADC_EMUL_CONST_VALUE; in adc_emul_const_value_set()123 chan_cfg->const_value = value; in adc_emul_const_value_set()135 struct adc_emul_chan_cfg *chan_cfg; in adc_emul_value_func_set() local142 chan_cfg = &data->chan_cfg[chan]; in adc_emul_value_func_set()146 chan_cfg->func = func; in adc_emul_value_func_set()147 chan_cfg->func_data = func_data; in adc_emul_value_func_set()148 chan_cfg->input = ADC_EMUL_CUSTOM_FUNC; in adc_emul_value_func_set()[all …]
51 const struct adc_channel_cfg *chan_cfg) in adc_numaker_channel_setup() argument56 if (chan_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_numaker_channel_setup()61 if (chan_cfg->gain != ADC_GAIN_1) { in adc_numaker_channel_setup()66 if (chan_cfg->reference != ADC_REF_INTERNAL) { in adc_numaker_channel_setup()71 if (chan_cfg->channel_id >= cfg->channel_cnt) { in adc_numaker_channel_setup()72 LOG_ERR("Invalid channel (%u)", chan_cfg->channel_id); in adc_numaker_channel_setup()76 data->is_differential = (chan_cfg->differential) ? true : false; in adc_numaker_channel_setup()
242 const struct adc_channel_cfg *chan_cfg) in adc_gd32_channel_setup() argument246 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()
137 const struct tca954x_channel_config *chan_cfg = dev->config; in tca954x_channel_init() local141 if (!device_is_ready(chan_cfg->root)) { in tca954x_channel_init()142 LOG_ERR("I2C mux root %s not ready", chan_cfg->root->name); in tca954x_channel_init()146 if (chan_cfg->chan_mask >= BIT(root_cfg->nchans)) { in tca954x_channel_init()
384 uint32_t chan_cfg = xdmac->XDMAC_CHID[channel].XDMAC_CC; in sam_xdmac_get_status() local388 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()