Enum ads1x15::Gain[][src]

pub enum Gain {
    Within6_144V,
    Within4_096V,
    Within2_048V,
    Within1_024V,
    Within0_512V,
    Within0_256V,
}

Configuration for the gain setting of the device.

The gain setting sets the measurable range but it is not possible to measure voltages higher than the voltage of the VDD pin of the chip.

Variants

The measurable range is ±6.144V.

The measurable range is ±4.096V.

The measurable range is ±2.048V.

The measurable range is ±1.024V.

The measurable range is ±0.512V.

The measurable range is ±0.256V.

Methods

impl Gain
[src]

Converts this gain value into a valid value for the I2C Config register.

Trait Implementations

impl Clone for Gain
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Gain
[src]

impl Debug for Gain
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Gain

impl Sync for Gain