35 #define ADS1115_CONVERSIONDELAY (8000)
44 #define ADS1115_DR_MASK (0x00E0)
45 #define ADS1115_DR_8SPS (0x0000) // 8 samples per second
46 #define ADS1115_DR_16SPS (0x0020) // 16 samples per second
47 #define ADS1115_DR_32SPS (0x0040) // 32 samples per second
48 #define ADS1115_DR_64SPS (0x0060) // 64 samples per second
49 #define ADS1115_DR_128SPS (0x0080) // 128 samples per second (default)
50 #define ADS1115_DR_250SPS (0x00A0) // 250 samples per second
51 #define ADS1115_DR_475SPS (0x00C0) // 475 samples per second
52 #define ADS1115_DR_860SPS (0x00E0) // 860 samples per second
103 typedef enum ADSDATARATE
105 SPS_8 = ADS1115_DR_8SPS,
106 SPS_16 = ADS1115_DR_16SPS,
107 SPS_32 = ADS1115_DR_32SPS,
108 SPS_64 = ADS1115_DR_64SPS,
109 SPS_128 = ADS1115_DR_128SPS,
110 SPS_250 = ADS1115_DR_250SPS,
111 SPS_475 = ADS1115_DR_475SPS,
112 SPS_860 = ADS1115_DR_860SPS
123 ADS1115 (
int bus, uint8_t address = 0x48);
137 void setSPS(ADSDATARATE rate = ADS1115::SPS_128);
141 float getMultiplier(
void);
~ADS1115()
Definition: ads1115.cxx:35
Definition: ads1x15.h:113
void setSPS(ADSDATARATE rate=ADS1115::SPS_128)
Definition: ads1115.cxx:38
API for ADS1115.
Definition: ads1115.h:85
ADS1115(int bus, uint8_t address=0x48)
Definition: ads1115.cxx:28