#[repr(u16)]pub enum ClockSelect {
Ipg = 0,
External = 1,
Submodule0 = 2,
}Expand description
PWM input clock selection.
Variants§
Ipg = 0
Derive from the IPG clock.
External = 1
Use EXT_CLK, an external clock.
Submodule0 = 2
Use submodule 0’s clock.
The clock is controlled by SM0’s run bit. It’s affected by the SM0 prescaler.
You cannot use this clock for submodule 0 itself.
Trait Implementations§
Source§impl Clone for ClockSelect
impl Clone for ClockSelect
Source§fn clone(&self) -> ClockSelect
fn clone(&self) -> ClockSelect
Returns a duplicate 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 ClockSelect
impl Debug for ClockSelect
Source§impl PartialEq for ClockSelect
impl PartialEq for ClockSelect
impl Copy for ClockSelect
impl Eq for ClockSelect
impl StructuralPartialEq for ClockSelect
Auto Trait Implementations§
impl Freeze for ClockSelect
impl RefUnwindSafe for ClockSelect
impl Send for ClockSelect
impl Sync for ClockSelect
impl Unpin for ClockSelect
impl UnwindSafe for ClockSelect
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