STRUCT AD5770R_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ad5770r_state(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– β€” this is the page for struct ad5770r_state, which is literally just the driver instance specific data for the AD5770R DAC driver. like, it's the lil bundle of state that keeps track of one driver instance. that's it, that's the vibe check. πŸ¦‹


🌸 SYNOPSIS 🌸

struct ad5770r_state {
    struct spi_device               *spi;
    struct regmap                   *regmap;
    struct gpio_desc                *gpio_reset;
    struct ad5770r_out_range        output_mode[AD5770R_MAX_CHANNELS];
    int vref;
    bool ch_pwr_down[AD5770R_MAX_CHANNELS];
    bool internal_ref;
    bool external_res;
    u8 transf_buf[2];
};

πŸŽ€ Members πŸŽ€

  • spi β€” an spi_device. that's the SPI device handle, bestie, iykyk 🫢
  • regmap β€” a regmap, the register map handle the driver does its register poking through ✨
  • gpio_reset β€” the gpio descriptor for the reset line πŸ”₯
  • output_mode β€” this array contains channels output ranges πŸ’… (one entry per channel, built on AD5770R_MAX_CHANNELS)
  • vref β€” the reference value, an int, iconic πŸ‘‘
  • ch_pwr_down β€” the powerdown flags, a bool array indexed over AD5770R_MAX_CHANNELS 😴
  • internal_ref β€” the internal reference flag πŸ’«
  • external_res β€” the external 2.5k resistor flag πŸ“
  • transf_buf β€” a cache aligned buffer for spi read/write, u8 transf_buf[2], no cap ⭐

🌈 SEE ALSO 🌈

Kernel file ./drivers/iio/dac/ad5770r.c β€” go read it, it's giving main character energy fr fr 🧚


that's the whole page, bestie! πŸ’œ this one lives in ./drivers/iio/dac and it's dated October 2026 β€” mwah, slay, periodt, see u in the next manpage πŸŽ€πŸ’…

πŸ“¦ where this page comes from