STRUCT AD5791_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct_ad5791_state(9) β€” Kernel API Manual, bestie edition πŸ’–

okay so this is the Kernel API Manual page for struct ad5791_state, and it is literally the driver instance specific data. no cap, we're getting into it. ✨

🌈 NAME 🌈

struct ad5791_state β€” driver instance specific data. that's the whole name section and it ate. πŸ’…

✨ SYNOPSIS ✨

here's the struct in all its main-character glory β€” keep it exact, bestie, every field is doing its little job:

       struct ad5791_state {
           struct spi_device               *spi;
           struct gpio_desc                *gpio_reset;
           struct gpio_desc                *gpio_clear;
           struct gpio_desc                *gpio_ldac;
           const struct ad5791_chip_info   *chip_info;
           struct spi_message              offload_msg;
           struct spi_transfer             offload_xfer;
           struct spi_offload              *offload;
           struct spi_offload_trigger      *offload_trigger;
           unsigned int                    offload_trigger_hz;
           unsigned short                  vref_mv;
           unsigned int                    vref_neg_mv;
           unsigned ctrl;
           unsigned pwr_down_mode;
           bool pwr_down;
           union {
             __be32 d32;
             u8 d8[4];
           } data[3];
        };

🫢 Members 🫢

every member, explained with zero gatekeeping:

  • spi β€” spi_device. πŸŒ€
  • gpio_reset β€” reset gpio. πŸ’…
  • gpio_clear β€” clear gpio. ✨
  • gpio_ldac β€” load dac gpio. πŸŽ€
  • chip_info β€” chip model specific constants. πŸ¦‹
  • offload_msg β€” spi message used for offload. 🌸
  • offload_xfer β€” spi transfer used for offload. 🫢
  • offload β€” offload device. πŸ”₯
  • offload_trigger β€” offload trigger. πŸ‘‘
  • offload_trigger_hz β€” offload sample rate. 🌈
  • vref_mv β€” actual reference voltage used. ⭐
  • vref_neg_mv β€” voltage of the negative supply. πŸ’€
  • ctrl β€” control register cache. πŸ™ˆ
  • pwr_down_mode β€” current power down mode. πŸ“
  • pwr_down β€” true if device is powered down. 🧚
  • data β€” spi transfer buffers. πŸ’œ

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/iio/dac/ad5791.c
  • struct ad5791_chip_info(9)
  • ./drivers/iio/dac

πŸ’Œ signed, sealed, delivered from ./drivers/iio/dac β€” October 2026 β€” struct_ad5791_state(9). bye bestie, go read the source! πŸ«Άβœ¨πŸ‘‘

πŸ“¦ where this page comes from