Searched refs:vref_mv (Results 1 – 11 of 11) sorted by relevance
/Zephyr-latest/include/zephyr/drivers/ |
D | adc.h | 294 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/ |
D | meas.c | 81 *c -= adc_vbus_c.port.vref_mv / 2; in meas_vbus_c()
|
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | ucpd_numaker.c | 241 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/ |
D | adc_rpi_pico.c | 360 .ref_internal = DT_INST_PROP(idx, vref_mv), \
|
D | adc_max32.c | 25 #define MAX32_ADC_VREF_MV DT_INST_PROP(0, vref_mv)
|
D | adc_mcux_adc12.c | 276 .ref_internal = DT_INST_PROP(n, vref_mv), \
|
D | adc_renesas_ra.c | 354 .ref_internal = DT_INST_PROP(idx, vref_mv), \
|
D | adc_nxp_s32_adc_sar.c | 341 .ref_internal = DT_INST_PROP(n, vref_mv), \
|
D | adc_mcux_lpadc.c | 581 (DT_PHA(DT_DRV_INST(n), nxp_references, vref_mv)), \
|
D | adc_npcx.c | 847 .ref_internal = DT_INST_PROP(n, vref_mv), \
|
D | adc_stm32.c | 120 #define STM32_ADC_VREF_MV DT_INST_PROP(0, vref_mv)
|