Advertisement
Guest User

Untitled

a guest
Aug 4th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1.  
  2.  
  3.  
  4. /* I2C ADC ADS1015 */
  5.  
  6. /*
  7. - pga is the programmable gain amplifier (values are full scale)
  8. 0: +/- 6.144 V
  9. 1: +/- 4.096 V
  10. 2: +/- 2.048 V
  11. 3: +/- 1.024 V
  12. 4: +/- 0.512 V
  13. 5: +/- 0.256 V
  14. - data_rate in samples per second
  15. 0: 128
  16. 1: 250
  17. 2: 490
  18. 3: 920
  19. 4: 1600
  20. 5: 2400
  21. 6: 3300
  22.  
  23. */
  24.  
  25. struct ads1015_platform_data ads1015_pdata = {
  26. .channel_data = {
  27. [4] = { .enabled = true, .pga = 1, .data_rate = 1 },
  28. [5] = { .enabled = true, .pga = 1, .data_rate = 1 },
  29. [6] = { .enabled = true, .pga = 1, .data_rate = 1 },
  30. [7] = { .enabled = true, .pga = 1, .data_rate = 1 },
  31. }
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement