#[repr(u16)]pub enum Prescaler {
Prescaler1 = 0,
Prescaler2 = 1,
Prescaler4 = 2,
Prescaler8 = 3,
Prescaler16 = 4,
Prescaler32 = 5,
Prescaler64 = 6,
Prescaler128 = 7,
}
Expand description
PWM clock prescaler.
Affects all timing, except for the glitch filters.
Variants§
Prescaler1 = 0
Divide the PWM clock by 1.
Prescaler2 = 1
Divide the PWM clock by 2.
Prescaler4 = 2
Divide the PWM clock by 4.
Prescaler8 = 3
Divide the PWM clock by 8.
Prescaler16 = 4
Divide the PWM clock by 16.
Prescaler32 = 5
Divide the PWM clock by 32.
Prescaler64 = 6
Divide the PWM clock by 64.
Prescaler128 = 7
Divide the PWM clock by 128.
Implementations§
Trait Implementations§
source§impl PartialEq for Prescaler
impl PartialEq for Prescaler
impl Copy for Prescaler
impl Eq for Prescaler
impl StructuralEq for Prescaler
impl StructuralPartialEq for Prescaler
Auto Trait Implementations§
impl RefUnwindSafe for Prescaler
impl Send for Prescaler
impl Sync for Prescaler
impl Unpin for Prescaler
impl UnwindSafe for Prescaler
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