Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/adc/
Dadc_nrfx_saadc.c106 config.acq_time = NRF_SAADC_ACQTIME_3US; in adc_nrfx_channel_setup()
109 config.acq_time = NRF_SAADC_ACQTIME_5US; in adc_nrfx_channel_setup()
113 config.acq_time = NRF_SAADC_ACQTIME_10US; in adc_nrfx_channel_setup()
116 config.acq_time = NRF_SAADC_ACQTIME_15US; in adc_nrfx_channel_setup()
119 config.acq_time = NRF_SAADC_ACQTIME_20US; in adc_nrfx_channel_setup()
122 config.acq_time = NRF_SAADC_ACQTIME_40US; in adc_nrfx_channel_setup()
Dadc_shell.c254 uint16_t acq_time; in cmd_adc_acq() local
267 acq_time = (uint16_t)strtol(argv[1], NULL, 10); in cmd_adc_acq()
270 ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, acq_time); in cmd_adc_acq()
273 ADC_ACQ_TIME(ADC_ACQ_TIME_NANOSECONDS, acq_time); in cmd_adc_acq()
276 ADC_ACQ_TIME(ADC_ACQ_TIME_TICKS, acq_time); in cmd_adc_acq()
432 SHELL_CMD_ARG(acq_time, NULL, CMD_HELP_ACQ_TIME, cmd_adc_acq, 3, 0),
Dadc_ads1112.c107 static inline int ads1112_acq_time_to_dr(const struct device *dev, uint16_t acq_time) in ads1112_acq_time_to_dr() argument
111 uint16_t acq_value = ADC_ACQ_TIME_VALUE(acq_time); in ads1112_acq_time_to_dr()
114 if (acq_time == ADC_ACQ_TIME_DEFAULT) { in ads1112_acq_time_to_dr()
116 } else if (ADC_ACQ_TIME_UNIT(acq_time) != ADC_ACQ_TIME_TICKS) { in ads1112_acq_time_to_dr()
Dadc_gd32.c207 uint8_t channel, uint16_t acq_time) in adc_gd32_configure_sampt() argument
211 if (acq_time != ADC_ACQ_TIME_DEFAULT) { in adc_gd32_configure_sampt()
213 if (ADC_ACQ_TIME_UNIT(acq_time) != ADC_ACQ_TIME_TICKS) { in adc_gd32_configure_sampt()
218 if (ADC_ACQ_TIME_VALUE(acq_time) <= acq_time_tbl[index]) { in adc_gd32_configure_sampt()
223 if (ADC_ACQ_TIME_VALUE(acq_time) != acq_time_tbl[index]) { in adc_gd32_configure_sampt()
Dadc_ads1119.c120 uint16_t acq_time) in ads1119_acq_time_to_dr() argument
124 uint16_t acq_value = ADC_ACQ_TIME_VALUE(acq_time); in ads1119_acq_time_to_dr()
127 if (acq_time == ADC_ACQ_TIME_DEFAULT) { in ads1119_acq_time_to_dr()
129 } else if (ADC_ACQ_TIME_UNIT(acq_time) != ADC_ACQ_TIME_TICKS) { in ads1119_acq_time_to_dr()
Dadc_ads1x1x.c200 static inline int ads1x1x_acq_time_to_dr(const struct device *dev, uint16_t acq_time) in ads1x1x_acq_time_to_dr() argument
207 uint16_t acq_value = ADC_ACQ_TIME_VALUE(acq_time); in ads1x1x_acq_time_to_dr()
214 if (acq_time != ADC_ACQ_TIME_DEFAULT && ADC_ACQ_TIME_UNIT(acq_time) != ADC_ACQ_TIME_TICKS) { in ads1x1x_acq_time_to_dr()
218 if (acq_time == ADC_ACQ_TIME_DEFAULT) { in ads1x1x_acq_time_to_dr()
Dadc_max1125x.c326 static inline int max1125x_acq_time_to_dr(const struct device *dev, uint16_t acq_time) in max1125x_acq_time_to_dr() argument
332 uint16_t acq_value = ADC_ACQ_TIME_VALUE(acq_time); in max1125x_acq_time_to_dr()
335 if (acq_time != ADC_ACQ_TIME_DEFAULT && ADC_ACQ_TIME_UNIT(acq_time) != ADC_ACQ_TIME_TICKS) { in max1125x_acq_time_to_dr()
336 LOG_ERR("MAX1125X: invalid acq time value (%d)", acq_time); in max1125x_acq_time_to_dr()
Dadc_lmp90xxx.c352 static inline int lmp90xxx_acq_time_to_odr(uint16_t acq_time) in lmp90xxx_acq_time_to_odr() argument
356 if (acq_time == ADC_ACQ_TIME_DEFAULT) { in lmp90xxx_acq_time_to_odr()
360 if (ADC_ACQ_TIME_UNIT(acq_time) != ADC_ACQ_TIME_TICKS) { in lmp90xxx_acq_time_to_odr()
369 acq_value = ADC_ACQ_TIME_VALUE(acq_time); in lmp90xxx_acq_time_to_odr()
Dadc_stm32.c1054 static int adc_stm32_check_acq_time(const struct device *dev, uint16_t acq_time) argument
1059 if (acq_time == ADC_ACQ_TIME_DEFAULT) {
1063 if (acq_time == ADC_ACQ_TIME_MAX) {
1068 if (acq_time == ADC_ACQ_TIME(ADC_ACQ_TIME_TICKS,