STRUCT AD5791_STATE(9)
π 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
- 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