Enum mcp3425::Gain [] [src]

pub enum Gain {
    Gain1,
    Gain2,
    Gain4,
    Gain8,
}

Programmable gain amplifier (PGA)

Defaults to no amplification (Gain1), matching the power-on defaults of the device.

Variants

Amplification factor 1.

Amplification factor 2.

Amplification factor 4.

Amplification factor 8.

Methods

impl Gain
[src]

[src]

Return the bitmask for this gain configuration.

Trait Implementations

impl Debug for Gain
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Gain
[src]

impl Clone for Gain
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Gain
[src]

[src]

Default implementation matching the power-on defaults of the device.

Auto Trait Implementations

impl Send for Gain

impl Sync for Gain