STRUCT AD5504_STATE(9)
π 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β aspi_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β anunsigned shortholding 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms