Home
last modified time | relevance | path

Searched refs:adc_config (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/drivers/adc/
Dadc_mcux_12b1msps_sar.c222 adc_config_t adc_config; in mcux_12b1msps_sar_adc_init() local
230 ADC_GetDefaultConfig(&adc_config); in mcux_12b1msps_sar_adc_init()
232 adc_config.referenceVoltageSource = config->ref_src; in mcux_12b1msps_sar_adc_init()
233 adc_config.clockSource = config->clock_src; in mcux_12b1msps_sar_adc_init()
234 adc_config.clockDriver = config->clock_drv; in mcux_12b1msps_sar_adc_init()
235 adc_config.samplePeriodMode = config->sample_period_mode; in mcux_12b1msps_sar_adc_init()
236 adc_config.resolution = kADC_Resolution12Bit; in mcux_12b1msps_sar_adc_init()
237 adc_config.enableContinuousConversion = false; in mcux_12b1msps_sar_adc_init()
238 adc_config.enableOverWrite = false; in mcux_12b1msps_sar_adc_init()
239 adc_config.enableHighSpeed = false; in mcux_12b1msps_sar_adc_init()
[all …]
Dadc_mcux_gau_adc.c311 adc_config_t adc_config; in mcux_gau_adc_init() local
317 ADC_GetDefaultConfig(&adc_config); in mcux_gau_adc_init()
320 adc_config.clockDivider = config->clock_div; in mcux_gau_adc_init()
321 adc_config.powerMode = config->power_mode; in mcux_gau_adc_init()
322 adc_config.enableInputGainBuffer = config->input_gain_buffer; in mcux_gau_adc_init()
323 adc_config.triggerSource = kADC_TriggerSourceSoftware; in mcux_gau_adc_init()
325 adc_config.inputMode = kADC_InputSingleEnded; in mcux_gau_adc_init()
327 adc_config.conversionMode = kADC_ConversionOneShot; in mcux_gau_adc_init()
329 adc_config.fifoThreshold = kADC_FifoThresholdData1; in mcux_gau_adc_init()
331 adc_config.resultWidth = kADC_ResultWidth16; in mcux_gau_adc_init()
[all …]
Dadc_mcux_adc12.c230 adc12_config_t adc_config; in mcux_adc12_init() local
233 ADC12_GetDefaultConfig(&adc_config); in mcux_adc12_init()
235 adc_config.referenceVoltageSource = config->ref_src; in mcux_adc12_init()
236 adc_config.clockSource = config->clock_src; in mcux_adc12_init()
237 adc_config.clockDivider = config->clock_div; in mcux_adc12_init()
238 adc_config.sampleClockCount = config->sample_clk_count; in mcux_adc12_init()
239 adc_config.resolution = kADC12_Resolution12Bit; in mcux_adc12_init()
240 adc_config.enableContinuousConversion = false; in mcux_adc12_init()
242 ADC12_Init(base, &adc_config); in mcux_adc12_init()
Dadc_mcux_adc16.c334 adc16_config_t adc_config; in mcux_adc16_init() local
338 ADC16_GetDefaultConfig(&adc_config); in mcux_adc16_init()
341 adc_config.clockSource = (adc16_clock_source_t)config->clk_source; in mcux_adc16_init()
342 adc_config.longSampleMode = in mcux_adc16_init()
344 adc_config.enableHighSpeed = config->high_speed; in mcux_adc16_init()
345 adc_config.enableContinuousConversion = config->continuous_convert; in mcux_adc16_init()
349 adc_config.referenceVoltageSource = kADC16_ReferenceVoltageSourceVref; in mcux_adc16_init()
351 adc_config.referenceVoltageSource = kADC16_ReferenceVoltageSourceValt; in mcux_adc16_init()
355 adc_config.clockDivider = kADC16_ClockDivider1; in mcux_adc16_init()
357 adc_config.clockDivider = kADC16_ClockDivider2; in mcux_adc16_init()
[all …]
Dadc_vf610.c215 adc_init_config_t adc_config; in vf610_adc_init() local
217 adc_config.averageNumber = adcAvgNumNone; in vf610_adc_init()
218 adc_config.resolutionMode = adcResolutionBit12; in vf610_adc_init()
219 adc_config.clockSource = config->clock_source; in vf610_adc_init()
220 adc_config.divideRatio = config->divide_ratio; in vf610_adc_init()
222 ADC_Init(base, &adc_config); in vf610_adc_init()
Dadc_mcux_lpadc.c477 lpadc_config_t adc_config; local
495 LPADC_GetDefaultConfig(&adc_config);
497 adc_config.enableAnalogPreliminary = true;
498 adc_config.referenceVoltageSource = config->voltage_ref;
502 adc_config.conversionAverageMode = config->calibration_average;
506 adc_config.powerLevelMode = config->power_level;
509 LPADC_Init(base, &adc_config);
Dadc_stm32wb0.c1196 static const struct adc_stm32wb0_config adc_config = { variable
1250 &adc_data, &adc_config, POST_KERNEL, CONFIG_ADC_INIT_PRIORITY,
/Zephyr-latest/drivers/sensor/nordic/npm2100_vbat/
Dnpm2100_vbat.c84 struct adc_config { struct
93 struct adc_config adc[4U]; argument
119 static struct adc_config *adc_cfg_get(const struct device *dev, enum sensor_channel chan) in adc_cfg_get()
142 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_channel_get()
264 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_attr_get()
276 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_attr_get()
292 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_attr_get()
351 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_attr_set()
366 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_attr_set()
404 struct adc_config *adc_cfg = adc_cfg_get(dev, chan); in npm2100_vbat_attr_set()
/Zephyr-latest/drivers/sensor/ti/ina23x/
Dina237.c100 uint8_t mode = (config->adc_config & GENMASK(15, 12)) >> 12; in ina237_is_triggered_mode_set()
127 ret = ina23x_reg_write(&config->bus, INA237_REG_ADC_CONFIG, config->adc_config); in ina237_trigg_one_shot_request()
333 ret = ina23x_reg_write(&config->bus, INA237_REG_ADC_CONFIG, config->adc_config); in ina237_init()
408 .adc_config = DT_INST_PROP(inst, adc_config) | \
Dina237.h56 uint16_t adc_config; member
/Zephyr-latest/tests/drivers/sensor/ina237/src/
Dina237_test.c38 zexpect_equal(0xFB68, config->adc_config, in ZTEST()
39 "0xFB68 != adc_config (0x%x)", config->adc_config); in ZTEST()