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
Bits16Sps15
16 bits / 15 SPS. This allows you to measure voltage in 62.5 µV steps.
Bits14Sps60
14 bits / 60 SPS. This allows you to measure voltage in 250 µV steps.
Bits12Sps240
12 bits / 240 SPS. This allows you to measure voltage in 1 mV steps.
Methods
impl Resolution
[src]
pub fn bits(&self) -> u8
[src]
Return the bitmask for this sample rate.
pub fn res_bits(&self) -> u8
[src]
Return the number of bits of accuracy this sample rate gives you.
pub fn max(&self) -> i16
[src]
Return the maximum output code.
pub fn min(&self) -> i16
[src]
Return the minimum output code.
Trait Implementations
impl Debug for Resolution
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for Resolution
[src]
impl Clone for Resolution
[src]
fn clone(&self) -> Resolution
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more