Enum mcp3425::Resolution [] [src]

pub enum Resolution {
    Bits16Sps15,
    Bits14Sps60,
    Bits12Sps240,
}

Conversion bit resolution and sample rate

  • 15 SPS -> 16 bits
  • 60 SPS -> 14 bits
  • 240 SPS -> 12 bits

Defaults to 12 bits / 240 SPS (Bits12Sps240), matching the power-on defaults of the device.

Variants

16 bits / 15 SPS. This allows you to measure voltage in 62.5 µV steps.

14 bits / 60 SPS. This allows you to measure voltage in 250 µV steps.

12 bits / 240 SPS. This allows you to measure voltage in 1 mV steps.

Methods

impl Resolution
[src]

[src]

Return the bitmask for this sample rate.

[src]

Return the number of bits of accuracy this sample rate gives you.

[src]

Return the maximum output code.

[src]

Return the minimum output code.

Trait Implementations

impl Debug for Resolution
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Resolution
[src]

impl Clone for Resolution
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Resolution
[src]

[src]

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

Auto Trait Implementations

impl Send for Resolution

impl Sync for Resolution