STRUCT VADC_CHANNEL_PROP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct vadc_channel_prop(9) β€” the Kernel API Manual glow-up ✨

okay bestie, grab your iced coffee πŸ“ β€” this is the Kernel API Manual entry for struct vadc_channel_prop, aka the lil' glow-up sheet that tells the VADC driver everything it needs to know about one single channel. one channel. one struct. iconic behavior only. πŸ‘‘


🌸 NAME 🌸

struct vadc_channel_prop β€” VADC channel property. that's it, that's the whole vibe. it's the property bag for a channel, no cap. πŸŽ€


✨ SYNOPSIS ✨

struct vadc_channel_prop {
    unsigned int channel;
    enum vadc_calibration calibration;
    unsigned int decimation;
    unsigned int prescale;
    unsigned int hw_settle_time;
    unsigned int avg_samples;
    enum vadc_scale_fn_type scale_fn_type;
    const char *channel_name;
 };

like, look at her. eight fields. all main character energy. πŸ¦‹


🫢 Members 🫢

so here's the member-by-member breakdown, and yes we're doing all of them, no skipping, i would never πŸ’–

  • channel β€” the channel number, bestie. go check the channel list if you need to look it up, iykyk. πŸ”
  • calibration β€” the calibration type. which flavor of calibrated are we today. 🧚
  • decimation β€” the sampling rate supported for the channel. it's giving "how often do we sample" realness. ⭐
  • prescale β€” channel scaling performed on the input signal. pre-game scaling, before the main event. πŸ’…
  • hw_settle_time β€” the time between AMUX being configured and the start of conversion. literally the little breather moment. let her settle, she's getting ready. 😭
  • avg_samples β€” the ability to provide a single result from the ADC that is an average of multiple measurements. one result, many measurements, teamwork makes the dream work fr fr. 🌈
  • scale_fn_type β€” Represents the scaling function to convert voltage physical units desired by the client for the channel. it's the translator between raw ADC and the voltage your client actually wants. πŸ”₯
  • channel_name β€” the channel name used in device tree. yes you have to match it. yes it matters. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./drivers/iio/adc/qcom-spmi-vadc.c
  • struct vadc_priv(9)

go read those too, bestie, they're right there. 🫢


lowkey a reminder that this whole thing is one struct describing ONE channel β€” don't go trying to cram your whole ADC in here, that's not the assignment. πŸ™ˆ

and that's the page!! πŸŽ€ source vibes come to you from ./drivers/iio/adc, dated October 2026, and yes this was struct vadc_channel_prop(9) the whole time β€” slay, bye, drink some water πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from