STRUCT STM32_ADC_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ struct stm32_adc_info(9) πŸ‘‘

okay so bestie, we're in the Kernel API Manual today and this page is literally about struct stm32_adc_info β€” the per-instance config data for the stm32 ADC. yeah. that one. it's giving "small struct, big responsibilities" and I'm obsessed πŸ’…


✨ NAME ✨

struct stm32_adc_info β€” stm32 ADC, per instance config data

like, per instance. each ADC gets its own little info blob and it holds everything the driver needs to know about that specific one πŸŽ€


🌸 SYNOPSIS 🌸

struct stm32_adc_info {
    int max_channels;
    const unsigned int *resolutions;
    const unsigned int *oversampling;
    const unsigned int num_res;
    const unsigned int num_ovs;
 };

that's the whole struct fr fr β€” five members, no drama, no cap 🫢


πŸ¦‹ Members πŸ¦‹

  • max_channels β€” Number of channels. that's it, that's the count πŸ’–
  • resolutions β€” available resolutions. not a single number, a whole list of them, so go read the array, don't just assume one ✨
  • oversampling β€” available oversampling ratios. yes king, plural, it's an array too πŸ”₯
  • num_res β€” number of available resolutions. the length of the resolutions list, so you know how far to walk it πŸ‘‘
  • num_ovs β€” number of available oversampling ratios. same deal, the count for oversampling πŸ’…
lowkey important: resolutions and oversampling are const unsigned int * while the counts are const unsigned int β€” pointers plus their lengths, classic group-chat pairing, you never send one without the other 🧚

⭐ SEE ALSO ⭐

Kernel file ./drivers/iio/adc/stm32-adc.c β€” that's where the family lives bestie, go say hi:

whole friend group honestly, iykyk 🌈


ngl if you're here you're probably already deep in drivers/iio/adc β€” welcome, it's cozy here πŸ“

and that's the page!! mwah πŸ’œ

~ πŸŽ€ sign-off time πŸŽ€ ~

this lil masterpiece comes to you from the source path ./drivers/iio/adc, dated October 2026, and it lives under the same struct stm32_adc_info(9) name up top. periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from