Home
last modified time | relevance | path

Searched refs:acquisition_time (Results 1 – 25 of 53) sorted by relevance

123

/Zephyr-Core-3.7.0/drivers/adc/
Dadc_sam0.c71 uint16_t acquisition_time) in adc_sam0_acquisition_to_clocks() argument
76 switch (ADC_ACQ_TIME_UNIT(acquisition_time)) { in adc_sam0_acquisition_to_clocks()
78 if (ADC_ACQ_TIME_VALUE(acquisition_time) > 64U) { in adc_sam0_acquisition_to_clocks()
82 return (int)ADC_ACQ_TIME_VALUE(acquisition_time) - 1; in adc_sam0_acquisition_to_clocks()
84 scaled_acq = (uint64_t)ADC_ACQ_TIME_VALUE(acquisition_time) * in adc_sam0_acquisition_to_clocks()
88 scaled_acq = (uint64_t)ADC_ACQ_TIME_VALUE(acquisition_time) * in adc_sam0_acquisition_to_clocks()
123 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_sam0_channel_setup()
125 channel_cfg->acquisition_time); in adc_sam0_channel_setup()
Dadc_cc13xx_cc26xx.c135 switch (ADC_ACQ_TIME_UNIT(channel_cfg->acquisition_time)) { in adc_cc13xx_cc26xx_channel_setup()
137 data->sample_time = (uint16_t)ADC_ACQ_TIME_VALUE(channel_cfg->acquisition_time); in adc_cc13xx_cc26xx_channel_setup()
140 sample_time_us = (uint16_t)ADC_ACQ_TIME_VALUE(channel_cfg->acquisition_time); in adc_cc13xx_cc26xx_channel_setup()
144 ADC_ACQ_TIME_VALUE(channel_cfg->acquisition_time) * 1000); in adc_cc13xx_cc26xx_channel_setup()
Dadc_ifx_cat1.c118 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in ifx_cat1_adc_channel_setup()
119 switch (ADC_ACQ_TIME_UNIT(channel_cfg->acquisition_time)) { in ifx_cat1_adc_channel_setup()
121 acquisition_ns = ADC_ACQ_TIME_VALUE(channel_cfg->acquisition_time) * 1000; in ifx_cat1_adc_channel_setup()
124 acquisition_ns = ADC_ACQ_TIME_VALUE(channel_cfg->acquisition_time); in ifx_cat1_adc_channel_setup()
Dadc_nrfx_saadc.c114 static int adc_convert_acq_time(uint16_t acquisition_time, nrf_saadc_acqtime_t *p_tacq_val) in adc_convert_acq_time() argument
119 switch (acquisition_time) { in adc_convert_acq_time()
148 (acquisition_time == ADC_ACQ_TIME_DEFAULT in adc_convert_acq_time()
150 : (ADC_ACQ_TIME_VALUE(acquisition_time) * in adc_convert_acq_time()
151 (ADC_ACQ_TIME_UNIT(acquisition_time) == ADC_ACQ_TIME_MICROSECONDS in adc_convert_acq_time()
257 int ret = adc_convert_acq_time(channel_cfg->acquisition_time, &config.acq_time); in adc_nrfx_channel_setup()
Dadc_shell.c62 .acquisition_time = ADC_ACQ_TIME_DEFAULT, \
306 adc->channel_config.acquisition_time = in cmd_adc_acq()
309 adc->channel_config.acquisition_time = in cmd_adc_acq()
312 adc->channel_config.acquisition_time = in cmd_adc_acq()
315 adc->channel_config.acquisition_time = in cmd_adc_acq()
415 adc->channel_config.acquisition_time, in cmd_adc_print()
Dadc_numaker.c58 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()
Dadc_mcux_gau_adc.c72 if (channel_cfg->acquisition_time == 0) { in mcux_gau_adc_channel_setup()
74 } else if (channel_cfg->acquisition_time <= 32) { in mcux_gau_adc_channel_setup()
76 ADC_ADC_REG_INTERVAL_WARMUP_TIME(channel_cfg->acquisition_time - 1); in mcux_gau_adc_channel_setup()
Dadc_ads7052.c55 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_ads7052_channel_setup()
56 LOG_ERR("unsupported acquisition_time '%d'", channel_cfg->acquisition_time); in adc_ads7052_channel_setup()
Dadc_mcp320x.c63 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in mcp320x_channel_setup()
65 channel_cfg->acquisition_time); in mcp320x_channel_setup()
Dadc_max11102_17.c95 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in max11102_17_channel_setup()
96 LOG_ERR("invalid acquisition time %i", channel_cfg->acquisition_time); in max11102_17_channel_setup()
Dadc_ene_kb1200.c143 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_kb1200_channel_setup()
Dadc_nrfx_adc.c57 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_nrfx_channel_setup()
Dadc_ads1x1x.c356 dr = ads1x1x_acq_time_to_dr(dev, channel_cfg->acquisition_time); in ads1x1x_channel_setup()
359 channel_cfg->acquisition_time); in ads1x1x_channel_setup()
/Zephyr-Core-3.7.0/drivers/sensor/nxp/nxp_kinetis_temp/
Dtemp_kinetis.c149 .acquisition_time = ADC_ACQ_TIME_DEFAULT, in temp_kinetis_init()
156 .acquisition_time = ADC_ACQ_TIME_DEFAULT, in temp_kinetis_init()
/Zephyr-Core-3.7.0/drivers/sensor/lm35/
Dlm35.c102 .acquisition_time = ADC_ACQ_TIME_DEFAULT, \
/Zephyr-Core-3.7.0/drivers/sensor/seeed/grove/
Dlight_sensor.c100 .acquisition_time = ADC_ACQ_TIME_DEFAULT, in gls_init()
Dtemperature_sensor.c102 .acquisition_time = ADC_ACQ_TIME_DEFAULT, in gts_init()
/Zephyr-Core-3.7.0/include/zephyr/drivers/
Dadc.h106 uint16_t acquisition_time; member
242 .acquisition_time = DT_PROP(node_id, zephyr_acquisition_time), \
/Zephyr-Core-3.7.0/drivers/sensor/rpi_pico_temp/
Drpi_pico_temp.c113 .acquisition_time = ADC_ACQ_TIME_DEFAULT, \
/Zephyr-Core-3.7.0/drivers/sensor/st/stm32_vref/
Dstm32_vref.c173 .acquisition_time = ADC_ACQ_TIME_MAX,
/Zephyr-Core-3.7.0/drivers/sensor/st/stm32_vbat/
Dstm32_vbat.c141 .acquisition_time = ADC_ACQ_TIME_MAX, \
/Zephyr-Core-3.7.0/tests/drivers/dac/dac_loopback/src/
Dtest_dac.c181 .acquisition_time = ADC_ACQUISITION_TIME,
/Zephyr-Core-3.7.0/samples/boards/nrf/battery/src/
Dbattery.c122 .acquisition_time = ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 40), in divider_setup()
/Zephyr-Core-3.7.0/drivers/sensor/st/stm32_temp/
Dstm32_temp.c208 .acquisition_time = ADC_ACQ_TIME_MAX,
/Zephyr-Core-3.7.0/tests/drivers/adc/adc_emul/src/
Dmain.c59 .acquisition_time = ADC_ACQUISITION_TIME, in channel_setup()
537 .acquisition_time = ADC_ACQUISITION_TIME, in ZTEST_USER()

123