STRUCT TWL4030_MADC_REQUEST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

ok so bestie, let me introduce you to struct twl4030_madc_request β€” it's literally the madc request packet for channel conversion ✨ like that's its whole thing, that's the vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct twl4030_madc_request {
    unsigned long channels;
    bool do_avg;
    u16 method;
    u16 type;
    bool active;
    bool result_pending;
    bool raw;
    int rbuf[TWL4030_MADC_MAX_CHANNELS];
 };

like, that's the whole struct, no cap πŸ‘‘


🌸 MEMBERS 🌸

okay now we go field by field, bestie, stay with me 🫢

  • channels β€” a 16 bit bitmap for individual channels πŸ’– so like, one bit per channel, iconic little bitmap moment
  • do_avg β€” when you turn this on it samples the input channel for 4 consecutive cycles ✨ yes, four, not three, not five, four 🌈
  • method β€” RT, SW1, SW2 β€” those are the options, periodt, don't ask me for more πŸ’…
  • type β€” the method type: polling or interrupt based πŸ“‹ pick your fighter
  • active β€” flag if request is active πŸ”₯ like "is this thing on" energy
  • result_pending β€” flag from the irq handler, that result is ready 😭 the irq handler said "it's done" and this flag is the receipt
  • raw β€” return raw value, do not convert it 🧚 like, leave it alone, it's fine as it is
  • rbuf β€” result buffer πŸ“ it's an int array sized TWL4030_MADC_MAX_CHANNELS, that's where the results live

⭐ SEE ALSO ⭐

go read those too, iykyk πŸ’œ


aaaand that's the page, bestie!! πŸŽ€ it lives over in ./drivers/iio/adc, dated October 2026 β€” Kernel API Manual energy from start to finish, slay πŸ’€πŸ’–

πŸ“¦ where this page comes from