Implementation of the ADS1115 analog to digital converter. More...
#include <ADS1115.h>
Inherits I2C::Device.
Public Types | |
| enum | range |
| full scale range options | |
| enum | dataRate |
| output data rate (samples per second) options | |
| enum | mux |
| multiplexer setting options More... | |
Public Member Functions | |
| ADS1115 (Sink< I2C::Request > &bus, uint8_t address=0b1001000, enum range fs=FS6144, enum dataRate dr=SPS64, enum mux mx=AIN0) | |
| configure and start voltage conversions | |
| void | updateConfig () |
| update device config | |
| void | measure () |
| async read data from device | |
| double | volts () |
Public Attributes | |
| enum ADS1115::range | eFullScale = FS2048 |
| current full scale setting | |
| enum ADS1115::dataRate | eDataRate = SPS128 |
| current data rate | |
| enum ADS1115::mux | eMux = AIN0_1 |
| current multiplexer setting | |
Implementation of the ADS1115 analog to digital converter.
see http://www.ti.com/lit/ds/symlink/ads1115.pdf for details
| enum ADS1115::mux |
multiplexer setting options
first index is positive lead, second index negative
only one index means single ended measurements
e.g. AIN0_3 differentially measures voltage on pin 0 against pin 3
|
inline |
configure and start voltage conversions
| bus | I2C request queue |
| address | 7bit I2C address of ADS1115 device |
| fs | full scale range on inputs |
| dr | data rate / conversion speed |
| mx | initial multiplexer setting |
|
inline |
update device config
sends parameters set in class to device
|
inline |