Lines Matching refs:adc
41 const struct device *adc; member
69 static inline void adc_enable_tempsensor_channel(ADC_TypeDef *adc) in adc_enable_tempsensor_channel() argument
71 const uint32_t path = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(adc)); in adc_enable_tempsensor_channel()
73 LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(adc), in adc_enable_tempsensor_channel()
79 static inline void adc_disable_tempsensor_channel(ADC_TypeDef *adc) in adc_disable_tempsensor_channel() argument
81 const uint32_t path = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(adc)); in adc_disable_tempsensor_channel()
83 LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(adc), in adc_disable_tempsensor_channel()
128 const uint16_t vdda_mv = adc_ref_internal(data->adc); in convert_adc_sample_to_temperature()
221 pm_device_runtime_get(data->adc); in stm32_temp_sample_fetch()
223 rc = adc_channel_setup(data->adc, &data->adc_cfg); in stm32_temp_sample_fetch()
231 rc = adc_read(data->adc, sp); in stm32_temp_sample_fetch()
239 pm_device_runtime_put(data->adc); in stm32_temp_sample_fetch()
269 if (!device_is_ready(data->adc)) { in stm32_temp_init()
270 LOG_ERR("Device %s is not ready", data->adc->name); in stm32_temp_init()
302 .adc = DEVICE_DT_GET(DT_INST_IO_CHANNELS_CTLR(0)),