[][src]Struct metro_m4::pwm::Pwm2

pub struct Pwm2 { /* fields omitted */ }

Methods

impl Pwm2[src]

pub fn new<F>(
    clock: &Tc2Tc3Clock,
    freq: F,
    tc: TC2,
    pinout: TC2Pinout,
    mclk: &mut MCLK
) -> Pwm2 where
    F: Into<Hertz>, 
[src]

pub fn get_period(&self) -> Hertz[src]

pub fn set_period<P>(&mut self, period: P) where
    P: Into<Hertz>, 
[src]

Trait Implementations

impl PwmPin for Pwm2[src]

type Duty = u16

Type for the duty methods Read more

Auto Trait Implementations

impl Send for Pwm2

impl !Sync for Pwm2

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self