STRUCT AFE4403_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct afe4403_data(9) πŸ’–

ok so this is a page from the Kernel API Manual β€” yes, we're literally in kernel internals rn, bestie, stay with me 🫢


✨ NAME ✨

struct afe4403_data β€” the device instance data for the AFE4403. like, the little bag of stuff the driver keeps around for each AFE4403 chip it's babysitting πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

struct afe4403_data {
    struct spi_device *spi;
    struct regmap *regmap;
    struct regmap_field *fields[F_MAX_FIELDS];
    struct regulator *regulator;
    struct iio_trigger *trig;
    int irq;
    s32 buffer[8];
};

🌸 Members 🌸

okay pulling these apart one by one, no skipping, we're doing the whole fit check πŸ‘‘

  • spi β€” the SPI device handle. this is how we even talk to the chip, iconic of it
  • regmap β€” the register map of the device. all the registers, nicely organized ✨
  • fields β€” the register fields of the device. it's an array of struct regmap_field * with F_MAX_FIELDS slots, so like, F_MAX_FIELDS of them, fr fr
  • regulator β€” pointer to the regulator for the IC. the power people πŸ”Œ
  • trig β€” the IIO trigger for this device. the thing that says "hey, go" 🌈
  • irq β€” the ADC_RDY line interrupt number. that's the interrupt that fires when the ADC is ready, lowkey important
  • buffer β€” it's an s32 array of 8, and it's used to construct the data layout to push into the IIO buffer. little staging area, main character energy honestly

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/iio/health/afe4403.c β€” go read the source, it's giving ✨ go look at it


ngl this one's short but it's mighty, don't sleep on it πŸ’€

ok that's the whole page bestie, we ate and left no crumbs πŸ“ this came from ./drivers/iio/health, dated October 2026, in the Kernel API Manual β€” mwah, periodt πŸ’œπŸ§š

πŸ“¦ where this page comes from