STRUCT STM32_ADC_PRIV_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct stm32_adc_priv_cfg(9) ✨

okay bestie so this is a page from the Kernel API Manual and honestly? it's giving "core dump but make it cute". We're talking about struct stm32_adc_priv_cfg and she's literally the blueprint energy for the STM32 ADC core drivers πŸ¦‹


πŸ’– NAME πŸ’–

struct stm32_adc_priv_cfg β€” the stm32 core compatible configuration data πŸŽ€

like, this struct is the little info card the driver reads to know what hardware it's dealing with. no cap.


🌸 SYNOPSIS 🌸

struct stm32_adc_priv_cfg {
    const struct stm32_adc_common_regs *regs;
    int (*clk_sel)(struct platform_device *, struct stm32_adc_priv *);
    u32 max_clk_rate_hz;
    u32 ipid;
    unsigned int has_syscfg;
    unsigned int num_irqs;
    unsigned int num_adcs;
 };

(that stray space before the closing brace? iconic. we respect the original ✨)


πŸ‘‘ Members πŸ‘‘

  • regs β€” common registers for all instances. she's shared, she's communal, she's everybody's register map πŸ’…
  • clk_sel β€” the clock selection routine. a function pointer, so you know she's fancy β€” int (*clk_sel)(struct platform_device *, struct stm32_adc_priv *) vibes fr fr ⏰
  • max_clk_rate_hz β€” maximum analog clock rate, in Hz, straight from the datasheet. don't come for her, she's just reporting what the datasheet said πŸ“„
  • ipid β€” the adc identification number. her little government name πŸͺͺ
  • has_syscfg β€” SYSCFG capability flags. basically a vibe check for whether SYSCFG is in the building 🧚
  • num_irqs β€” number of interrupt lines. count 'em πŸ””
  • num_adcs β€” maximum number of ADC instances that fit in the common registers. she's the capacity queen πŸ‘‘

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/iio/adc/stm32-adc-core.c
  • struct stm32_adc_common_regs(9)
  • struct stm32_adc_priv(9)
  • stm32f4_adc_clk_sel(9)
  • struct stm32h7_adc_ck_spec(9)

and that's the whole page, bestie 🫢 no notes, she ate.

πŸŽ€ sign-off: this gem lives in ./drivers/iio/adc, dated October 2026, and she's still struct stm32_adc_priv_cfg(9) in the Kernel API Manual. periodt. πŸ”₯
πŸ“¦ where this page comes from