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
§impl PartialOrd for ClockSource
impl PartialOrd for ClockSource
impl Copy for ClockSource
impl Eq for ClockSource
impl StructuralPartialEq for ClockSource
Auto Trait Implementations§
impl Freeze for ClockSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)