Struct mcp3425::Config [] [src]

pub struct Config {
    pub resolution: Resolution,
    pub gain: Gain,
}

Device configuration: Resolution and gain

Fields

Conversion bit resolution and sample rate.

Programmable gain amplifier (PGA).

Methods

impl Config
[src]

[src]

Create a new device configuration with the specified resolution / sample rate and gain.

Note that creating and changing this instance does not have an immediate effect on the device. It is only written when a measurement is triggered (TODO: Or when writing config explicitly).

[src]

Create a new configuration where the resolution has been replaced with the specified value.

[src]

Create a new configuration where the gain has been replaced with the specified value.

Trait Implementations

impl Debug for Config
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Config
[src]

[src]

Returns the "default value" for a type. Read more

impl Copy for Config
[src]

impl Clone for Config
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Config

impl Sync for Config