stm32_adc_single_conv(9)
π stm32_adc_single_conv π
okay so bestie, welcome to the Kernel API Manual, section 9 β yes we're in the big-kid kernel-functions section, iykyk β¨ this one's all about stm32_adc_single_conv(9) and honestly? she's a lil workhorse π«Ά
β¨ NAME β¨
stm32_adc_single_conv β literally performs a single conversion π
that's it, that's the whole vibe
πΈ SYNOPSIS πΈ
int stm32_adc_single_conv (struct iio_dev *indio_dev , const struct
iio_chan_spec *chan , int *res );
no cap, that's the signature β copy it exactly pls, don't get creative π
π¦ ARGUMENTS π¦
indio_devβ the IIO device, aka the main character of this whole operation πchanβ the IIO channel we're pointing at, like "this one, this is the one" π―resβ where the conversion result lands, the little souvenir from the trip β¨
π DESCRIPTION π
so the function does a single conversion on a given channel, and the way it goes about it is honestly kind of iconic:
- Apply sampling time settings β±οΈ (gotta set the timing first, be respectful)
- Program sequencer with one channel (e.g. in
SQ1withlen = 1) β just the one, one channel, minimal, very demure β¨ - Use SW trigger π software trigger only, we're not waiting around for hardware
- Start conversion, then wait for interrupt completion. π«Ά start it, then sit there and wait for that interrupt like you're waiting for a text back π
π SEE ALSO π
the whole friend group, fr fr π
Kernel file ./drivers/iio/adc/stm32-adc.c
struct stm32_adc_ic(9)struct stm32_adc_trig_info(9)struct stm32_adc_calib(9)struct stm32_adc_regs(9)struct stm32_adc_vrefint(9)struct stm32_adc_regspec(9)struct stm32_adc_cfg(9)struct stm32_adc(9)struct stm32_adc_info(9)stm32_adc_conv_irq_enable(9)stm32_adc_conv_irq_disable(9)stm32f4_adc_start_conv(9)stm32h7_adc_read_selfcalib(9)stm32h7_adc_restore_selfcalib(9)stm32h7_adc_selfcalib(9)stm32h7_adc_check_selfcalib(9)stm32h7_adc_prepare(9)stm32_adc_conf_scan_seq(9)stm32_adc_get_trig_extsel(9)stm32_adc_set_trig(9)stm32_adc_validate_trigger(9)stm32_adc_debugfs_reg_access(9)
π reminder bestie: this is a kernel manpage, so if you're here you're probably deep in the ADC driver and it's giving "debugging at 2am" energy. stay hydrated π§
and that's the page!! sign-off time π this one lives in ./drivers/iio/adc, dated October 2026, and the whole thing is filed under stm32_adc_single_conv(9) β slay, go read the other 22 functions now, mwah π«Άπβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms