STRUCT AD5380_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ad5380_state(9) ✨

okay bestie, welcome to the Kernel API Manual β€” this is the page for struct ad5380_state, and it's literally the driver instance specific data πŸŽ€ like, the lil' bundle of everything one ad5380 driver instance needs to know about itself. main character struct energy, no cap πŸ’…


🌸 NAME 🌸

struct ad5380_state β€” driver instance specific data ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ad5380_state {
    struct regmap                   *regmap;
    const struct ad5380_chip_info   *chip_info;
    int vref;
    bool pwr_down;
    struct mutex                    lock;
 };

like. look at her. five fields, zero notes πŸ’–


πŸ‘‘ Members πŸ‘‘

  • regmap β€” the regmap instance that the device is out here using 🫢 that's her connection era.
  • chip_info β€” chip model specific constants, available modes etc ⭐ basically the little fact-sheet for whichever chip variant you got, iykyk.
  • vref β€” the actual reference voltage used, measured in uA πŸ”₯ yes, microamps, that's the unit, don't come for me.
  • pwr_down β€” a bool that says whether the chip is currently in power down mode 😴 true = napping, fr fr.
  • lock β€” a struct mutex doing the lock thing, protecting the data buffer during regmap ops πŸ”’ she's the bodyguard, periodt.

πŸŽ€ SEE ALSO πŸŽ€

  • Kernel file ./drivers/iio/dac/ad5380.c
  • struct ad5380_chip_info(9)

lowkey a whole vibe check: it's giving "small struct, big responsibilities" πŸ’€ but she slays.

and that's the page, bestie πŸŒˆπŸ’œ β€” brought to you by the source/version line ./drivers/iio/dac, dated October 2026, under the struct ad5380_state(9) title. mwah πŸ’‹βœ¨πŸ“

πŸ“¦ where this page comes from