[][src]Struct trellis_m4::pwm::Pwm1

pub struct Pwm1 { /* fields omitted */ }

Methods

impl Pwm1[src]

pub fn new<F>(
    clock: &Tc0Tc1Clock,
    freq: F,
    tc: TC1,
    pinout: TC1Pinout,
    mclk: &mut MCLK
) -> Pwm1 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 Pwm1[src]

type Duty = u16

Type for the duty methods Read more

Auto Trait Implementations

impl Unpin for Pwm1

impl !Sync for Pwm1

impl Send for Pwm1

Blanket Implementations

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

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> 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<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self