Home
last modified time | relevance | path

Searched refs:adc_channel (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/tests/drivers/adc/adc_accuracy_test/src/
Dmain.c11 static const struct adc_dt_spec adc_channel = ADC_DT_SPEC_GET(DT_PATH(zephyr_user)); variable
18 return &adc_channel; in get_adc_channel()
25 zassert_true(adc_is_ready_dt(&adc_channel), "ADC device is not ready"); in adc_setup()
26 ret = adc_channel_setup_dt(&adc_channel); in adc_setup()
Dref_volt.c26 const struct adc_dt_spec *adc_channel = get_adc_channel(); in test_ref_to_adc() local
28 adc_sequence_init_dt(adc_channel, &sequence); in test_ref_to_adc()
30 ret = adc_read_dt(adc_channel, &sequence); in test_ref_to_adc()
33 ret = adc_raw_to_millivolts_dt(adc_channel, &sample_buffer); in test_ref_to_adc()
Ddac_source.c49 const struct adc_dt_spec *adc_channel = get_adc_channel(); in test_dac_to_adc() local
59 adc_sequence_init_dt(adc_channel, &sequence); in test_dac_to_adc()
60 ret = adc_read_dt(adc_channel, &sequence); in test_dac_to_adc()
64 (1U << adc_channel->resolution) / DIV, 32, in test_dac_to_adc()
/Zephyr-latest/drivers/sensor/ntc_thermistor/
Dntc_thermistor.c24 const struct adc_dt_spec adc_channel; member
48 adc_sequence_init_dt(&cfg->adc_channel, &sequence); in ntc_thermistor_sample_fetch()
49 res = adc_read(cfg->adc_channel.dev, &sequence); in ntc_thermistor_sample_fetch()
54 res = adc_raw_to_millivolts_dt(&cfg->adc_channel, &val_mv); in ntc_thermistor_sample_fetch()
59 data->sample_val_max = BIT(cfg->adc_channel.resolution) - 1; in ntc_thermistor_sample_fetch()
100 if (!adc_is_ready_dt(&cfg->adc_channel)) { in ntc_thermistor_init()
105 err = adc_channel_setup_dt(&cfg->adc_channel); in ntc_thermistor_init()
143 .adc_channel = ADC_DT_SPEC_INST_GET(inst), \
/Zephyr-latest/drivers/sensor/seeed/grove/
Dlight_sensor.c39 uint8_t adc_channel; member
101 .channel_id = cfg->adc_channel, in gls_init()
103 .input_positive = SAADC_CH_PSELP_PSELP_AnalogInput0 + cfg->adc_channel, in gls_init()
109 adc_table.channels = BIT(cfg->adc_channel); in gls_init()
121 .adc_channel = DT_INST_IO_CHANNELS_INPUT(inst), \
Dtemperature_sensor.c38 uint8_t adc_channel; member
103 .channel_id = cfg->adc_channel, in gts_init()
105 .input_positive = SAADC_CH_PSELP_PSELP_AnalogInput0 + cfg->adc_channel, in gts_init()
111 adc_table.channels = BIT(cfg->adc_channel); in gts_init()
126 .adc_channel = DT_INST_IO_CHANNELS_INPUT(inst), \
/Zephyr-latest/drivers/usb_c/vbus/
Dusbc_vbus_adc.c38 ret = adc_read(config->adc_channel.dev, &data->sequence); in adc_vbus_measure()
45 ret = adc_raw_to_millivolts_dt(&config->adc_channel, &value); in adc_vbus_measure()
142 if (!adc_is_ready_dt(&config->adc_channel)) { in adc_vbus_init()
179 ret = adc_channel_setup_dt(&config->adc_channel); in adc_vbus_init()
185 ret = adc_sequence_init_dt(&config->adc_channel, &data->sequence); in adc_vbus_init()
209 .adc_channel = ADC_DT_SPEC_INST_GET(inst), \
Dusbc_vbus_adc_priv.h19 struct adc_dt_spec adc_channel; member
/Zephyr-latest/drivers/sensor/lm35/
Dlm35.c27 uint8_t adc_channel; member
91 .adc_channel = DT_INST_IO_CHANNELS_INPUT(inst), \