pub enum Resolution {
    TwelveBit,
    TenBit,
    EightBit,
    SixBit,
}Expand description
ADC resolution
Variants§
Implementations§
Source§impl Resolution
 
impl Resolution
Sourcepub fn to_max_count(&self) -> u32
 
pub fn to_max_count(&self) -> u32
Get the maximum reading value for this resolution.
This is 2**n - 1.
Trait Implementations§
Source§impl Clone for Resolution
 
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
 
fn clone(&self) -> Resolution
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
 
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for Resolution
 
impl Debug for Resolution
Source§impl Default for Resolution
 
impl Default for Resolution
Source§impl Format for Resolution
 
impl Format for Resolution
Source§impl From<Resolution> for Res
 
impl From<Resolution> for Res
Source§fn from(res: Resolution) -> Res
 
fn from(res: Resolution) -> Res
Converts to this type from the input type.
Source§impl PartialEq for Resolution
 
impl PartialEq for Resolution
impl Copy for Resolution
impl Eq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnwindSafe for Resolution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more