Home
last modified time | relevance | path

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

/Zephyr-latest/include/zephyr/drivers/
Dadc.h294 uint16_t vref_mv; member
330 .vref_mv = DT_PROP_OR(node_id, zephyr_vref_mv, 0), \
897 int32_t vref_mv; in adc_raw_to_millivolts_dt() local
905 vref_mv = (int32_t)adc_ref_internal(spec->dev); in adc_raw_to_millivolts_dt()
907 vref_mv = spec->vref_mv; in adc_raw_to_millivolts_dt()
920 return adc_raw_to_millivolts(vref_mv, spec->channel_cfg.gain, in adc_raw_to_millivolts_dt()
/Zephyr-latest/samples/boards/google/twinkie_v2/pda/src/
Dmeas.c81 *c -= adc_vbus_c.port.vref_mv / 2; in meas_vbus_c()
/Zephyr-latest/drivers/usb_c/tcpc/
Ducpd_numaker.c241 uint32_t vref_mv; member
298 __ASSERT_NO_MSG(data->vref_mv); in numaker_utcpd_vbus_volt_bit2mv()
299 return (uint32_t)(((uint64_t)bit) * data->vref_mv * config->utcpd.vbvol.vbscale.value / in numaker_utcpd_vbus_volt_bit2mv()
318 __ASSERT_NO_MSG(data->vref_mv); in numaker_utcpd_vbus_volt_mv2bit()
319 return mv * BIT_MASK(10) / data->vref_mv / config->utcpd.vbvol.vbscale.value; in numaker_utcpd_vbus_volt_mv2bit()
388 if (data->vref_mv) { in numaker_eadc_vref_init()
422 switch (spec->vref_mv) { in numaker_eadc_vref_init()
444 data->vref_mv = spec->vref_mv; in numaker_eadc_vref_init()
/Zephyr-latest/drivers/adc/
Dadc_rpi_pico.c360 .ref_internal = DT_INST_PROP(idx, vref_mv), \
Dadc_max32.c25 #define MAX32_ADC_VREF_MV DT_INST_PROP(0, vref_mv)
Dadc_mcux_adc12.c276 .ref_internal = DT_INST_PROP(n, vref_mv), \
Dadc_renesas_ra.c354 .ref_internal = DT_INST_PROP(idx, vref_mv), \
Dadc_nxp_s32_adc_sar.c341 .ref_internal = DT_INST_PROP(n, vref_mv), \
Dadc_mcux_lpadc.c581 (DT_PHA(DT_DRV_INST(n), nxp_references, vref_mv)), \
Dadc_npcx.c847 .ref_internal = DT_INST_PROP(n, vref_mv), \
Dadc_stm32.c120 #define STM32_ADC_VREF_MV DT_INST_PROP(0, vref_mv)