ConstThe value the configuration register reads after a reset.
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 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 analogue-to-digital converter.