Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* I2C ADC ADS1015 */
- /*
- - pga is the programmable gain amplifier (values are full scale)
- 0: +/- 6.144 V
- 1: +/- 4.096 V
- 2: +/- 2.048 V
- 3: +/- 1.024 V
- 4: +/- 0.512 V
- 5: +/- 0.256 V
- - data_rate in samples per second
- 0: 128
- 1: 250
- 2: 490
- 3: 920
- 4: 1600
- 5: 2400
- 6: 3300
- */
- struct ads1015_platform_data ads1015_pdata = {
- .channel_data = {
- [4] = { .enabled = true, .pga = 1, .data_rate = 1 },
- [5] = { .enabled = true, .pga = 1, .data_rate = 1 },
- [6] = { .enabled = true, .pga = 1, .data_rate = 1 },
- [7] = { .enabled = true, .pga = 1, .data_rate = 1 },
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement