Enum Samplingdiv
#[repr(u8)]pub enum Samplingdiv {
Div1 = 0,
Div2 = 1,
Div4 = 2,
Div8 = 3,
}Expand description
Sampling clock division
Variants§
Div1 = 0
f_SAMPLING = f_HRTIM
Div2 = 1
f_SAMPLING = f_HRTIM / 2
Div4 = 2
f_SAMPLING = f_HRTIM / 4
Div8 = 3
f_SAMPLING = f_HRTIM / 8
Implementations§
§impl Samplingdiv
impl Samplingdiv
pub const fn from_bits(val: u8) -> Samplingdiv
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Samplingdiv
impl Clone for Samplingdiv
§fn clone(&self) -> Samplingdiv
fn clone(&self) -> Samplingdiv
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Samplingdiv
impl Eq for Samplingdiv
§impl From<Samplingdiv> for u8
impl From<Samplingdiv> for u8
§fn from(val: Samplingdiv) -> u8
fn from(val: Samplingdiv) -> u8
Converts to this type from the input type.
§impl From<u8> for Samplingdiv
impl From<u8> for Samplingdiv
§fn from(val: u8) -> Samplingdiv
fn from(val: u8) -> Samplingdiv
Converts to this type from the input type.
§impl Ord for Samplingdiv
impl Ord for Samplingdiv
§fn cmp(&self, other: &Samplingdiv) -> Ordering
fn cmp(&self, other: &Samplingdiv) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for Samplingdiv
impl PartialEq for Samplingdiv
§impl PartialOrd for Samplingdiv
impl PartialOrd for Samplingdiv
impl StructuralPartialEq for Samplingdiv
Auto Trait Implementations§
impl Freeze for Samplingdiv
impl RefUnwindSafe for Samplingdiv
impl Send for Samplingdiv
impl Sync for Samplingdiv
impl Unpin for Samplingdiv
impl UnsafeUnpin for Samplingdiv
impl UnwindSafe for Samplingdiv
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