Enum embassy_stm32::adc::Resolution
source · pub enum Resolution {
SixteenBit,
FourteenBit,
TwelveBit,
TenBit,
EightBit,
}
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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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
source§fn eq(&self, other: &Resolution) -> bool
fn eq(&self, other: &Resolution) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Resolution
impl Eq for Resolution
impl StructuralEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
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