STRUCT ADC5_CHANNEL_PROP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

Okay so we're in the Kernel API Manual, and this page is all about struct adc5_channel_prop(9) β€” literally the ADC channel property struct. That's the whole vibe: one struct, all its little fields, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the struct in all its main-character glory, copied exactly:

struct adc5_channel_prop {
    unsigned int            channel;
    enum adc5_cal_method    cal_method;
    enum adc5_cal_val       cal_val;
    unsigned int            decimation;
    unsigned int            sid;
    unsigned int            prescale;
    unsigned int            hw_settle_time;
    unsigned int            avg_samples;
    enum vadc_scale_fn_type scale_fn_type;
    const char              *channel_name;
 };

🌸 Members 🌸

Bestie, let's go field by field. Every single one is iconic in its own way:

  • channel β€” channel number, refer to the channel list.
  • cal_method β€” calibration method.
  • cal_val β€” calibration value.
  • decimation β€” sampling rate supported for the channel.
  • sid β€” slave id of PMIC owning the channel, for PMIC7.
  • prescale β€” channel scaling performed on the input signal.
  • hw_settle_time β€” the time between AMUX being configured and the start of conversion.
  • avg_samples β€” ability to provide single result from the ADC that is an average of multiple measurements.
  • scale_fn_type β€” Represents the scaling function to convert voltage physical units desired by the client for the channel.
  • channel_name β€” Channel name used in device tree.

πŸ’… SEE ALSO πŸ’…

If you wanna keep exploring, the manual points you here:

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

And that's the whole page, bestie 🫢 β€” source/version is ./drivers/iio/adc, dated October 2026, and this struct adc5_channel_prop(9) moment is officially a wrap πŸ’–βœ¨

πŸ“¦ where this page comes from