Struct lpc55_hal::drivers::pwm::Pwm[][src]

pub struct Pwm<TIMER> where
    TIMER: Ctimer<Enabled>, 
{ /* fields omitted */ }

Implementations

impl<TIMER> Pwm<TIMER> where
    TIMER: Ctimer<Enabled>, 
[src]

pub fn new(timer: TIMER) -> Self[src]

pub fn release(self) -> TIMER[src]

pub fn scale_max_duty_by(&mut self, duty: u32)[src]

Increase maximum value for the duty cycle.

Trait Implementations

impl<TIMER> Pwm for Pwm<TIMER> where
    TIMER: Ctimer<Enabled>, 
[src]

type Channel = u8

Enumeration of channels that can be used with this Pwm interface Read more

type Time = Microseconds

A time unit that can be converted into a human time unit (e.g. seconds)

type Duty = u16

Type for the duty methods Read more

Auto Trait Implementations

impl<TIMER> Send for Pwm<TIMER> where
    TIMER: Send

impl<TIMER> Sync for Pwm<TIMER> where
    TIMER: Sync

impl<TIMER> Unpin for Pwm<TIMER> where
    TIMER: Unpin

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.