STRUCT AD5449(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ad5449(9) β€” like, the Kernel API Manual bestie πŸŽ€

okay so this is a page from the Kernel API Manual, and it's all about struct ad5449 β€” driver instance specific data. yes we're doing kernel structs today, and honestly? it's giving main character energy ✨


🌸 NAME 🌸

struct ad5449 β€” driver instance specific data 🫢


✨ SYNOPSIS ✨

struct ad5449 {
    struct spi_device               *spi;
    const struct ad5449_chip_info   *chip_info;
    struct regulator_bulk_data      vref_reg[AD5449_MAX_VREFS];
    struct mutex                    lock;
    bool has_sdo;
    uint16_t dac_cache[AD5449_MAX_CHANNELS];
    __be16 data[2];
 };

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


πŸ¦‹ Members πŸ¦‹

  • spi β€” the SPI device for this driver instance. it's literally the device, bestie πŸ™ˆ
  • chip_info β€” chip model specific constants, available modes etc. iykyk, every chip is a little different πŸ’…
  • vref_reg β€” vref supply regulators. regulators are the vibe check for your voltage, fr fr ⚑
  • lock β€” lock to protect the data buffer during SPI ops. yes she's a mutex and yes she's protective, we stan πŸ”’
  • has_sdo β€” whether the SDO line is connected. simple yes/no, iconic πŸ‘‘
  • dac_cache β€” Cache for the DAC values. keeping those values cozy in memory πŸ“
  • data β€” spi transfer buffers. the little landing pad for your transfers ✨

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/iio/dac/ad5449.c
  • struct ad5449_chip_info(9)

aaaand that's the whole page πŸ’œ go read the source, bestie, it's right there in ./drivers/iio/dac β€” this one's from October 2026, page struct ad5449(9), slay 🌈⭐

πŸ“¦ where this page comes from