Struct ads1x15::Ads1x15[][src]

pub struct Ads1x15<D> { /* fields omitted */ }

An interface to an ADS1x15 device that can be used to control the device over I2C.

Methods

impl<D> Ads1x15<D>
[src]

Create a new interface to an ADS1015 device.

Uses the supplied I2C device.

Create a new interface to an ADS1115 device.

Uses the supplied I2C device.

Returns the current gain setting of the device.

Changes the gain setting of the device.

impl<D> Ads1x15<D> where
    D: I2CDevice + 'static, 
[src]

Reads the single-ended voltage of one of the input channels.

The returned value is the electric potential in volts (V) measured on the specified channel.

Trait Implementations

impl<D: Debug> Debug for Ads1x15<D>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<D> Send for Ads1x15<D> where
    D: Send

impl<D> Sync for Ads1x15<D> where
    D: Send