[][src]Struct trellis_m4::pwm::Pwm0

pub struct Pwm0 { /* fields omitted */ }

Implementations

impl Pwm0[src]

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

type Duty = u16

Type for the duty methods Read more

Auto Trait Implementations

impl Send for Pwm0[src]

impl !Sync for Pwm0[src]

impl Unpin for Pwm0[src]

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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> 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.