Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/sensor/nordic/npm2100_vbat/
Dnpm2100_vbat.c142 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_channel_get() local
144 if (!adc_cfg) { in npm2100_vbat_channel_get()
148 result = &adc_cfg->result; in npm2100_vbat_channel_get()
264 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_attr_get() local
266 if (!adc_cfg) { in npm2100_vbat_attr_get()
270 *val = (struct sensor_value){.val1 = adc_cfg->enabled, .val2 = 0}; in npm2100_vbat_attr_get()
276 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_attr_get() local
278 if (!adc_cfg) { in npm2100_vbat_attr_get()
283 .val1 = FIELD_GET(ADC_CONFIG_AVG_MASK, adc_cfg->config), .val2 = 0}; in npm2100_vbat_attr_get()
292 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_attr_get() local
[all …]
/Zephyr-latest/drivers/sensor/st/stm32_vbat/
Dstm32_vbat.c25 const struct adc_channel_cfg adc_cfg; member
51 rc = adc_channel_setup(data->adc, &data->adc_cfg); in stm32_vbat_sample_fetch()
54 LOG_DBG("Setup AIN%u got %d", data->adc_cfg.channel_id, rc); in stm32_vbat_sample_fetch()
118 .channels = BIT(data->adc_cfg.channel_id), in stm32_vbat_init()
138 .adc_cfg = { \
/Zephyr-latest/drivers/sensor/st/stm32_vref/
Dstm32_vref.c24 const struct adc_channel_cfg adc_cfg; member
51 rc = adc_channel_setup(data->adc, &data->adc_cfg); in stm32_vref_sample_fetch()
53 LOG_DBG("Setup AIN%u got %d", data->adc_cfg.channel_id, rc); in stm32_vref_sample_fetch()
142 .channels = BIT(data->adc_cfg.channel_id), in stm32_vref_init()
171 .adc_cfg = {.gain = ADC_GAIN_1,
/Zephyr-latest/drivers/sensor/st/stm32_temp/
Dstm32_temp.c42 const struct adc_channel_cfg adc_cfg; member
223 rc = adc_channel_setup(data->adc, &data->adc_cfg); in stm32_temp_sample_fetch()
225 LOG_DBG("Setup AIN%u got %d", data->adc_cfg.channel_id, rc); in stm32_temp_sample_fetch()
275 .channels = BIT(data->adc_cfg.channel_id), in stm32_temp_init()
304 .adc_cfg = {
/Zephyr-latest/samples/boards/nordic/battery/src/
Dbattery.c70 struct adc_channel_cfg adc_cfg; member
89 struct adc_channel_cfg *accp = &ddp->adc_cfg; in divider_setup()
186 ddp->adc_cfg.gain, in battery_sample()
/Zephyr-latest/drivers/adc/
Dadc_nxp_s32_adc_sar.c30 Adc_Sar_Ip_ConfigType *adc_cfg; member
62 status = Adc_Sar_Ip_Init(config->instance, config->adc_cfg); in adc_nxp_s32_init()
444 .adc_cfg = (Adc_Sar_Ip_ConfigType *)&adc_nxp_s32_default_config##n,\