STRUCT AD5504_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct ad5504_state(9) β€” the kernel API manual glow-up

okay so bestie, welcome to the struct ad5504_state page from the Kernel API Manual β€” yes, that's a section 9 manpage, iykyk ✨ this one's short and sweet and honestly kind of iconic in a "small but mighty" way.


🌸 NAME 🌸

struct ad5504_state β€” literally driver instance specific data. that's it, that's the whole vibe: it's the lil bundle of state that one AD5504 driver instance carries around with it πŸŽ€


✨ SYNOPSIS ✨

here's the whole struct, exactly as it lives in the kernel, no cap:

struct ad5504_state {
    struct spi_device               *spi;
    struct regulator                *reg;
    unsigned short                  vref_mv;
    unsigned pwr_down_mask;
    unsigned pwr_down_mode;
    __be16 data[2];
 };

πŸ¦‹ Members πŸ¦‹

okay so let's go through every single one of these babies, because each one is a main character in her own right:

  • spi β€” a spi_device. this is the SPI device hanging out in the struct, fr fr.
  • reg β€” the supply regulator. the power girlie responsible for feeding this thing πŸ’…
  • vref_mv β€” an unsigned short holding the actual reference voltage used. note the _mv, bestie β€” millivolts, we love units 🌈
  • pwr_down_mask β€” the power down mask. exactly what it says on the tin.
  • pwr_down_mode β€” the current power down mode. no guessing, this is the one it's in right now πŸ”₯
  • data β€” transfer buffer, typed __be16 data[2]. big-endian 16-bit, two of them, πŸ‘‘.

πŸŽ€ SEE ALSO πŸŽ€

  • Kernel file ./drivers/iio/dac/ad5504.c β€” go read it, it's giving source of truth 🫢

and that's the whole page, bestie πŸ’– sending you off with a lil sign-off: this one comes from the Kernel API Manual, lives under ./drivers/iio/dac, and it's dated October 2026 πŸ¦‹β­ go forth and slay your IIO DAC adventures, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from