ConstThe address with ADDR tied to ground.
The address with ADDR tied to SCL.
The address with ADDR tied to SDA.
The address with ADDR tied to VDD.
The value the configuration register reads after a reset.
The data-rate codes, in samples per second.
128 per second, the reset setting.
16 per second.
250 per second.
32 per second.
475 per second.
64 per second.
8 per second.
860 per second.
The input multiplexer codes.
AIN0 against AIN1, the reset setting.
AIN0 against AIN3.
AIN0 against ground.
AIN1 against AIN3.
AIN1 against ground.
AIN2 against AIN3.
AIN2 against ground.
AIN3 against ground.
The gain codes, by the full-scale range each selects.
0.256 V.
0.512 V.
1.024 V.
2.048 V, the reset setting.
4.096 V.
6.144 V either side of zero.
The registers the pointer selects.
Input, gain, mode, data rate, and comparator settings.
The last conversion, two's complement.
The comparator's high threshold.
The comparator's low threshold.
An ADS1115 that is not there, for a bus with nothing plugged in. A conversion comes back
as a count of the range the gain selects, so reporting takes the same gain a driver is
given.
The voltage part reports: half a 3.3 V supply.
A part that reads what it is asked to, on the nearest of the 32768 steps either side of zero the range divides into.
The address it answers to.
The gain code the driver converts at.
The voltage it reports, held to the range.
The part, to put on a simulated bus.
Assembles the 16-bit configuration register value.
The settings to encode.
The register value to write, most significant bit first.
Parses a 16-bit configuration register value.
The register value, as read from the device.
The decoded settings. Every value decodes, so this never throws.
Returns how long a conversion takes at a data rate: one period plus the datasheet's ten percent rate variation.
One of the ads1115.dataRate codes.
The time in microseconds.
Returns the full-scale range a gain code selects.
The gain code, 0 to 7.
The full scale in microvolts.
Returns the sample rate a data-rate code selects.
The data-rate code, 0 to 7.
The rate in samples per second.
Converts a raw conversion result to nanovolts.
The gain the conversion was taken at.
The signed conversion register value.
The measured voltage, exact at every gain setting.
Converts a raw conversion result to volts.
The gain the conversion was taken at.
The signed conversion register value.
The measured voltage.
A TI ADS1115 16-bit analog-to-digital converter.