STRUCT STM32_ADC_CALIB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct stm32_adc_calib(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” section 9, the big-girl section. today's main character is struct stm32_adc_calib, and no cap, she's a lil cutie with a big job. let's get into it 🫢


✨ NAME ✨

struct stm32_adc_calib β€” optional adc calibration data. that's it, that's the vibe. she's optional, she's calibration, she's data πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

like, here's exactly what she looks like:

struct stm32_adc_calib {
    u32 lincalfact[STM32H7_LINCALFACT_NUM];
    bool lincal_saved;
 };

two members, zero drama. she ate and left no crumbs ✨


πŸŽ€ MEMBERS πŸŽ€

πŸ’– lincalfact

Linearity calibration factor. it's a u32 array sized STM32H7_LINCALFACT_NUM, and it's literally holding the linearity calibration factors β€” that's the whole assignment, iykyk πŸ”₯

🌸 lincal_saved

Indicates that linear calibration factors are saved. a humble bool doing the most important job: telling everyone the factors are safely tucked in πŸ’€βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

go read the kernel file ./drivers/iio/adc/stm32-adc.c first, fr fr β€” that's the source of truth. and then the whole friend group:

like, the whole squad is here. no one's left out, periodt 🌈


and that's the page, bestie!! 🧚 this little icon lives in ./drivers/iio/adc, she's stamped October 2026, and she answers to the name struct stm32_adc_calib(9) β€” go forth and calibrate responsibly πŸ’œπŸŽ€β­

πŸ“¦ where this page comes from