Enum stm32_metapac::lptim::vals::ClockSource
#[repr(u8)]pub enum ClockSource {
INTERNAL = 0,
EXTERNAL = 1,
}
Variants§
INTERNAL = 0
clocked by internal clock source (APB clock or any of the embedded oscillators)
EXTERNAL = 1
clocked by an external clock source through the LPTIM external Input1
Implementations§
§impl ClockSource
impl ClockSource
pub const fn from_bits(val: u8) -> ClockSource
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for ClockSource
impl Clone for ClockSource
§fn clone(&self) -> ClockSource
fn clone(&self) -> ClockSource
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 more§impl From<ClockSource> for u8
impl From<ClockSource> for u8
§fn from(val: ClockSource) -> u8
fn from(val: ClockSource) -> u8
Converts to this type from the input type.
§impl From<u8> for ClockSource
impl From<u8> for ClockSource
§fn from(val: u8) -> ClockSource
fn from(val: u8) -> ClockSource
Converts to this type from the input type.
§impl Ord for ClockSource
impl Ord for ClockSource
§impl PartialEq for ClockSource
impl PartialEq for ClockSource
§fn eq(&self, other: &ClockSource) -> bool
fn eq(&self, other: &ClockSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for ClockSource
impl PartialOrd for ClockSource
§fn partial_cmp(&self, other: &ClockSource) -> Option<Ordering>
fn partial_cmp(&self, other: &ClockSource) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ClockSource
impl Eq for ClockSource
impl StructuralEq for ClockSource
impl StructuralPartialEq for ClockSource
Auto Trait Implementations§
impl RefUnwindSafe for ClockSource
impl Send for ClockSource
impl Sync for ClockSource
impl Unpin for ClockSource
impl UnwindSafe for ClockSource
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