STRUCT STM32_ADC_COMMON(9)
π NAME
struct stm32_adc_common β the stm32 ADC driver's common data, like the shared group chat for all the instances bestie, not just one π
okay so this is from the Kernel API Manual and it's literally the struct that every single stm32 ADC instance shares, no cap π
β¨ SYNOPSIS
struct stm32_adc_common {
void __iomem *base;
phys_addr_t phys_base;
unsigned long rate;
int vref_mv;
spinlock_t lock;
};
π«Ά MEMBERS
baseβ the base cpu addr for the control registers π that's where the registers live in cpu-address-landphys_baseβ the base physical addr for those same control registers, iykyk β¨rateβ the clock rate used for the analog circuitry πΈ so like, the speed the analog bits are running atvref_mvβ the vref voltage, measured inmvπlockβ aspinlock_t, the classic spinlock π keeping things from stepping on each other
π¦ SEE ALSO
- the kernel file
./drivers/iio/adc/stm32-adc-core.hβ go read it, it's giving source of truth π
bestie reminder: every field above is exactly what the kernel says, so don't go renaming anything π
that's the whole page, mwah π this iconic little entry lives in ./drivers/iio/adc and it's dated October 2026 β periodt, go forth and read your headers π§ππ
π¦ 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