STRUCT AD9832_STATE(9)
π NAME π
okay so bestie, this is the manual page for struct ad9832_state(9), straight out of the Kernel API Manual β and it's literally the βdriver instance specific dataβ struct. That's the whole vibe: one driver instance's little state stash. Periodt. β¨
β¨ SYNOPSIS β¨
Here's the struct in all its main-character glory β every field, no cap:
struct ad9832_state {
struct spi_device *spi;
struct clk *mclk;
unsigned short ctrl_fp;
unsigned short ctrl_ss;
unsigned short ctrl_src;
struct spi_transfer xfer;
struct spi_message msg;
struct spi_transfer freq_xfer[4];
struct spi_message freq_msg;
struct spi_transfer phase_xfer[2];
struct spi_message phase_msg;
struct mutex lock;
union {
__be16 freq_data[4];
__be16 phase_data[2];
__be16 data;
};
};
π«Ά Members π«Ά
Each member is lowkey doing its own iconic thing:
spiβ aspi_device.mclkβ external master clock.ctrl_fpβ cached frequency/phase control word.ctrl_ssβ cached sync/selsrc control word.ctrl_srcβ cached sleep/reset/clr word.xferβ default spi transfer.msgβ default spi message.freq_xferβ tuning word spi transfer.freq_msgβ tuning word spi message.phase_xferβ tuning word spi transfer.phase_msgβ tuning word spi message.lockβ protect sensor state.{unnamed_union}β anonymous. Yep, that's the man page's own label for it, iykyk. Inside this anonymous union lives:freq_dataβ tuning word spi transmit buffer.phase_dataβ tuning word spi transmit buffer.dataβ spi transmit buffer.
π SEE ALSO π
- Kernel file
./drivers/staging/iio/frequency/ad9832.cβ go read it, bestie, that's the reference. π¦
that's the whole page, bestie π
β source/version: ./drivers/staging/iio/frequency, date: October 2026, page: struct ad9832_state(9). slay and bye π
π¦ 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