Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/adc/
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_shell.c293 uint16_t acq_time; in cmd_adc_acq() local
306 acq_time = (uint16_t)strtol(argv[1], NULL, 10); in cmd_adc_acq()
309 ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, acq_time); in cmd_adc_acq()
312 ADC_ACQ_TIME(ADC_ACQ_TIME_NANOSECONDS, acq_time); in cmd_adc_acq()
315 ADC_ACQ_TIME(ADC_ACQ_TIME_TICKS, acq_time); in cmd_adc_acq()
471 SHELL_CMD_ARG(acq_time, NULL, CMD_HELP_ACQ_TIME, cmd_adc_acq, 3, 0),
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_ads131m02.c240 static inline int ads131m02_acquistion_time(uint16_t acq_time, uint16_t *enable) in ads131m02_acquistion_time() argument
242 uint16_t acq_value = ADC_ACQ_TIME_VALUE(acq_time); in ads131m02_acquistion_time()
244 if (acq_time == ADC_ACQ_TIME_DEFAULT) { in ads131m02_acquistion_time()
249 if (ADC_ACQ_TIME_UNIT(acq_time) != ADC_ACQ_TIME_TICKS) { in ads131m02_acquistion_time()
253 if (acq_time == ADC_ACQ_TIME_MAX) { in ads131m02_acquistion_time()
Dadc_nrfx_saadc.c152 uint16_t acq_time = in adc_convert_acq_time() local
160 tacq = (nrf_saadc_acqtime_t)(acq_time / MINIMUM_ACQ_TIME_IN_NS) - 1; in adc_convert_acq_time()
161 if ((tacq > NRF_SAADC_ACQTIME_MAX) || (acq_time < MINIMUM_ACQ_TIME_IN_NS)) { in adc_convert_acq_time()
262 int ret = adc_convert_acq_time(channel_cfg->acquisition_time, &config.acq_time); in adc_nrfx_channel_setup()
Dadc_numaker.c49 uint32_t acq_time; member
65 data->acq_time = ADC_ACQ_TIME_VALUE(chan_cfg->acquisition_time); in adc_numaker_channel_setup()
183 EADC_SetExtendSampleTime(eadc, module_id, data->acq_time); in m_adc_numaker_start_scan()
Dadc_ads1x1x.c285 static inline int ads1x1x_acq_time_to_dr(const struct device *dev, uint16_t acq_time) in ads1x1x_acq_time_to_dr() argument
292 uint16_t acq_value = ADC_ACQ_TIME_VALUE(acq_time); in ads1x1x_acq_time_to_dr()
299 if (acq_time != ADC_ACQ_TIME_DEFAULT && ADC_ACQ_TIME_UNIT(acq_time) != ADC_ACQ_TIME_TICKS) { in ads1x1x_acq_time_to_dr()
303 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_mcux_lpadc.c62 static int mcux_lpadc_acquisition_time_setup(const struct device *dev, uint16_t acq_time, in mcux_lpadc_acquisition_time_setup() argument
68 uint32_t acquisition_time_value = ADC_ACQ_TIME_VALUE(acq_time); in mcux_lpadc_acquisition_time_setup()
69 uint8_t acquisition_time_unit = ADC_ACQ_TIME_UNIT(acq_time); in mcux_lpadc_acquisition_time_setup()
Dadc_stm32.c1151 static int adc_stm32_sampling_time_check(const struct device *dev, uint16_t acq_time) argument
1156 if (acq_time == ADC_ACQ_TIME_DEFAULT) {
1160 if (acq_time == ADC_ACQ_TIME_MAX) {
1165 if (acq_time == ADC_ACQ_TIME(ADC_ACQ_TIME_TICKS,
1176 uint16_t acq_time) argument
1185 acq_time_index = adc_stm32_sampling_time_check(dev, acq_time);
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()