stm32_adc_conf_scan_seq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ stm32_adc_conf_scan_seq ✨

okay bestie, buckle up πŸ’– this one lives in the Kernel API Manual and it's literally the glow-up artist for your regular channels β€” it builds the scan sequence, no cap.


🌸 NAME 🌸

stm32_adc_conf_scan_seq β€” build regular channels scan sequence πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int stm32_adc_conf_scan_seq (struct iio_dev *indio_dev , const unsigned
long *scan_mask );

πŸ’… ARGUMENTS πŸ’…

  • indio_dev β€” the IIO device, aka the main character of this whole operation πŸ‘‘
  • scan_mask β€” the channels that are gonna get converted, hand-picked by you 🫢

πŸ”₯ DESCRIPTION πŸ”₯

Conversion sequence β€” here's the tea πŸ“: first it applies the sampling time settings for all the channels. Every single one. Not a vibe check skipped.

Then it configures the ADC scan sequence based on whichever channels you selected in scan_mask ✨.

The way it does this: it adds channels to the SQR registers, going from scan_mask LSB to MSB (lowkey important order, don't come for me), and then it programs the sequence length. Periodt. πŸ’€


🌈 SEE ALSO 🌈


mwah πŸ’œ that's the whole page β€” sourced from ./drivers/iio/adc, dated October 2026, in the Kernel API Manual. go read some driver code, ily, bye 🧚✨

πŸ“¦ where this page comes from