STRUCT RRADC_CHANNEL(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– NAME ๐Ÿ’–

struct rradc_channel โ€” rradc channel data. Welcome to the Kernel API Manual, bestie; we're about to make this kernel struct make sense, no cap ๐Ÿซถโœจ

โœจ SYNOPSIS โœจ

struct rradc_channel {
    const char *label;
    u8 lsb;
    u8 status;
    int size;
    int trigger_addr;
    int trigger_mask;
    int (*scale_fn)(struct rradc_chip *chip, u16 adc_code, int *result);
};

There she is โ€” the whole struct, every field in place, looking iconic ๐Ÿ‘‘๐Ÿ’…

๐ŸŒธ Members ๐ŸŒธ

  • label โ€” the channel label, aka this channel's little name tag ๐Ÿท๏ธ๐Ÿ’–
  • lsb โ€” the channel least significant byte โ€” yes, the lsb, she's right there โœจ
  • status โ€” the channel status address โ€” where the status address lives, periodt ๐Ÿ“
  • size โ€” the number of bytes to read โ€” that's the size, bestie, keep it in mind ๐Ÿ”ข
  • trigger_addr โ€” the trigger address; heads up: the trigger is only used on some channels ๐Ÿ™ˆ๐Ÿ’…
  • trigger_mask โ€” the trigger mask โ€” iconic little mask behavior ๐ŸŽญ
  • scale_fn โ€” a post process callback for channels which can't be exposed as offset + scale โ€” she handles the extra processing for those channels ๐Ÿงฎ๐Ÿ’œ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

  • Kernel file ./drivers/iio/adc/qcom-spmi-rradc.c โ€” go read the source, bestie, it's right there ๐ŸŒˆ๐Ÿ‘‘

mwah ๐Ÿ’‹ โ€” signed off from ./drivers/iio/adc, October 2026, all about struct rradc_channel(9) ๐Ÿซถ๐ŸŽ€

๐Ÿ“ฆ where this page comes from