ad5791.h 539 B

12345678910111213141516171819202122232425
  1. /*
  2. * AD5791 SPI DAC driver
  3. *
  4. * Copyright 2011 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2.
  7. */
  8. #ifndef SPI_AD5791_H_
  9. #define SPI_AD5791_H_
  10. /**
  11. * struct ad5791_platform_data - platform specific information
  12. * @vref_pos_mv: Vdd Positive Analog Supply Volatge (mV)
  13. * @vref_neg_mv: Vdd Negative Analog Supply Volatge (mV)
  14. * @use_rbuf_gain2: ext. amplifier connected in gain of two configuration
  15. */
  16. struct ad5791_platform_data {
  17. u16 vref_pos_mv;
  18. u16 vref_neg_mv;
  19. bool use_rbuf_gain2;
  20. };
  21. #endif /* SPI_AD5791_H_ */