STRUCT STM32_ADC_PRIV_CFG(9)
β¨ 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 stillstruct stm32_adc_priv_cfg(9)in the Kernel API Manual. periodt. π₯
π¦ 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