STRUCT AB8500_GPADC_CHAN_INFO(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… struct ab8500_gpadc_chan_info(9) ๐Ÿ’…

okay bestie, welcome to the Kernel API Manual โ€” yes, that Kernel API Manual, the one and only โœจ this page is literally all about struct ab8500_gpadc_chan_info, the little glow-up sheet that holds the per-channel GPADC info. one struct, six members, zero filler. let's get into it ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

struct ab8500_gpadc_chan_info โ€” per-channel GPADC info. that's it, that's the whole vibe. it's the info card each GPADC channel carries around ๐Ÿ’–


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

struct ab8500_gpadc_chan_info {
    const char *name;
    u8 id;
    bool hardware_control;
    bool falling_edge;
    u8 avg_sample;
    u8 trig_timer;
 };

look at her. six fields, all main character, no notes ๐Ÿ‘‘


๐Ÿฆ‹ Members ๐Ÿฆ‹

  • name โ€” name of the channel ๐Ÿ’ซ literally just the channel's name, bestie, it's giving "hello my name is".
  • id โ€” the internal AB8500 ID number for the channel ๐Ÿ”ข that's the ID the AB8500 itself uses for this channel.
  • hardware_control โ€” indicate that we want to use hardware ADC control on this channel, the default is software ADC control ๐ŸŽ›๏ธ so like, software ADC control is the default-default, and setting this flag is you saying "nah, hardware please". and heads up โ€” hardware control is normally only used to test the battery voltage during GSM bursts, and it needs a hardware trigger on the GPADCTrig pin of the ASIC. so it's a whole thing, not a casual toggle โšก
  • falling_edge โ€” indicate that we want to trigger on falling edge rather than rising edge, rising edge is the default ๐Ÿ“‰๐Ÿ“ˆ rising edge is the default, so this flag is your "actually, falling edge pls" moment.
  • avg_sample โ€” how many samples to average: must be 1, 4, 8 or 16 ๐Ÿงฎ no cap, those are the only valid values โ€” 1, 4, 8 or 16. don't try to be creative here, it will not slay.
  • trig_timer โ€” how long to wait for the trigger, in 32kHz periods: 0 .. 255 periods โฑ๏ธ that's the range, 0 through 255, measured in 32kHz periods.
๐Ÿ’€ friendly reminder that avg_sample is strictly 1, 4, 8 or 16, and trig_timer lives in 0..255. color outside those lines at your own risk, bestie.

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

go read those too, they're all connected, iykyk ๐Ÿ”ฅ


and that's the page!! ๐ŸŽ€ this one came from ./drivers/iio/adc, dated October 2026, and it's filed under struct ab85...dc_chan_info(9). mwah, go forth and average your samples responsibly ๐Ÿ’–โœจ๐Ÿ’…

๐Ÿ“ฆ where this page comes from