28 #include "ads1x15.hpp"
29 #include "interfaces/iADC.hpp"
31 #define ADS1015_VREF 2.048
36 #define ADS1015_CONVERSIONDELAY (8000)
45 #define ADS1015_DR_MASK (0x00E0)
46 #define ADS1015_DR_128SPS (0x0000) // 128 samples per second
47 #define ADS1015_DR_250SPS (0x0020) // 250 samples per second
48 #define ADS1015_DR_490SPS (0x0040) // 490 samples per second
49 #define ADS1015_DR_920SPS (0x0060) // 920 samples per second
50 #define ADS1015_DR_1600SPS (0x0080) // 1600 samples per second (default)
51 #define ADS1015_DR_2400SPS (0x00A0) // 2400 samples per second
52 #define ADS1015_DR_3300SPS (0x00C0) // 3300 samples per second
106 SPS_128 = ADS1015_DR_128SPS,
107 SPS_250 = ADS1015_DR_250SPS,
108 SPS_490 = ADS1015_DR_490SPS,
109 SPS_920 = ADS1015_DR_920SPS,
110 SPS_1600 = ADS1015_DR_1600SPS,
111 SPS_2400 = ADS1015_DR_2400SPS,
112 SPS_3300 = ADS1015_DR_3300SPS
126 ADS1015 (
int bus, uint8_t address = 0x48,
float vref = ADS1015_VREF);
179 float getMultiplier(
void);
ADSSAMPLERATE
uint16_t enum containing values representing the sample rate of the device.
Definition: ads1015.hpp:105
unsigned int getResolutionInBits()
Definition: ads1015.cxx:72
unsigned int getNumInputs()
Definition: ads1015.cxx:67
uint16_t getRawValue(unsigned int input)
Definition: ads1015.cxx:77
Definition: ads1x15.hpp:113
void setSPS(ADSSAMPLERATE rate=SPS_1600)
Definition: ads1015.cxx:33
ADS1015(int bus, uint8_t address=0x48, float vref=ADS1015_VREF)
Definition: ads1015.cxx:37
API for ADS1015.
Definition: ads1015.hpp:88
ADSMUXMODE
uint16_t enum containing values used for selecting ADS1X15 read operations.
Definition: ads1x15.hpp:152
~ADS1015()
Definition: ads1015.cxx:58
Interface for ADC Sensors.
Definition: iADC.hpp:38
float getVoltage(unsigned int input)
Definition: ads1015.cxx:87
const char * getModuleName()
Definition: ads1015.cxx:61