STRUCT AD5770R_STATE(9)
β¨ 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β anspi_device. that's the SPI device handle, bestie, iykyk π«Άregmapβ aregmap, the register map handle the driver does its register poking through β¨gpio_resetβ thegpiodescriptor for the reset line π₯output_modeβ this array contains channels output ranges π (one entry per channel, built onAD5770R_MAX_CHANNELS)vrefβ the reference value, anint, iconic πch_pwr_downβ the powerdown flags, aboolarray indexed overAD5770R_MAX_CHANNELSπ΄internal_refβ the internal reference flag π«external_resβ the external2.5kresistor 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
- 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