STRUCT STM32_ADC_INFO(9)
π 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 theresolutionslist, so you know how far to walk it πnum_ovsβ number of available oversampling ratios. same deal, the count foroversamplingπ
lowkey important:resolutionsandoversamplingareconst unsigned int *while the counts areconst 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:
struct stm32_adc_ic(9)struct stm32_adc_trig_info(9)struct stm32_adc_calib(9)struct stm32_adc_regs(9)struct stm32_adc_vrefint(9)struct stm32_adc_regspec(9)struct stm32_adc_cfg(9)struct stm32_adc(9)stm32_adc_conv_irq_enable(9)stm32_adc_conv_irq_disable(9)stm32f4_adc_start_conv(9)stm32h7_adc_read_selfcalib(9)stm32h7_adc_restore_selfcalib(9)stm32h7_adc_selfcalib(9)stm32h7_adc_check_selfcalib(9)stm32h7_adc_prepare(9)stm32_adc_conf_scan_seq(9)stm32_adc_get_trig_extsel(9)stm32_adc_set_trig(9)stm32_adc_single_conv(9)stm32_adc_validate_trigger(9)stm32_adc_debugfs_reg_access(9)
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
- 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