Module ADS1x15 :: Class ADS1115
[hide private]
[frames] | no frames]

Class ADS1115

source code

object --+    
         |    
   ADS1x15 --+
             |
            ADS1115

ADS1115 16-bit analog to digital converter instance.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_data_rate_default(self)
Retrieve the default data rate for this ADC (in samples per second).
source code
 
_data_rate_config(self, data_rate)
Subclasses should override this function and return a 16-bit value that can be OR'ed with the config register to set the specified data rate.
source code
 
_conversion_value(self, low, high)
Subclasses should override this function that takes the low and high byte of a conversion result and returns a signed integer value.
source code

Inherited from ADS1x15: get_last_result, readList, read_adc, read_adc_difference, start_adc, start_adc_comparator, start_adc_difference, start_adc_difference_comparator, stop_adc, writeList

Inherited from ADS1x15 (private): _read, _read_comparator

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_data_rate_default(self)

source code 

Retrieve the default data rate for this ADC (in samples per second). Should be implemented by subclasses.

Overrides: ADS1x15._data_rate_default
(inherited documentation)

_data_rate_config(self, data_rate)

source code 

Subclasses should override this function and return a 16-bit value that can be OR'ed with the config register to set the specified data rate. If a value of None is specified then a default data_rate setting should be returned. If an invalid or unsupported data_rate is provided then an exception should be thrown.

Overrides: ADS1x15._data_rate_config
(inherited documentation)

_conversion_value(self, low, high)

source code 

Subclasses should override this function that takes the low and high byte of a conversion result and returns a signed integer value.

Overrides: ADS1x15._conversion_value
(inherited documentation)