STRUCT VADC_LINEAR_GRAPH(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct vadc_linear_graph(9) β€” Kernel API Manual, bestie πŸ’–

okay so this is the Kernel API Manual page for struct vadc_linear_graph(9), and it is literally here to represent ADC characteristics. iconic behavior, no cap. πŸŽ€

✨ NAME ✨

struct vadc_linear_graph β€” Represent ADC characteristics.

πŸ¦‹ SYNOPSIS πŸ¦‹

the whole vibe is this struct, fr fr:

struct vadc_linear_graph {
    s32 dy;
    s32 dx;
    s32 gnd;
 };

🌸 Members 🌸

  • dy β€” the numerator slope used to calculate the gain. yes bestie, numerator. πŸ’…
  • dx β€” the denominator slope used to calculate the gain. denominator rights, periodt.
  • gnd β€” the A/D word of the ground reference used for the channel. keeping it grounded, literally. 🫢

πŸ”₯ Description πŸ”₯

Real talk: each ADC device has different offset and gain parameters, and those parameters are computed to calibrate the device. that’s the whole point, and it ate. πŸ’–

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/iio/adc/qcom-vadc-common.h and enum vadc_scale_fn_type(9) β€” go peek, iykyk. πŸ‘‘

mwah 😽 β€” source: ./include/linux/iio/adc, dated October 2026, page struct vadc_linear_graph(9). slay and goodbye. πŸ’‹βœ¨

πŸ“¦ where this page comes from