STRUCT AD9832_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” a spi_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