[][src]Struct nrf52811_hal::pwm::PwmSeq

pub struct PwmSeq<T, B0, B1> where
    T: Instance
{ /* fields omitted */ }

A Pwm sequence wrapper

Implementations

impl<T, B0, B1> PwmSeq<T, B0, B1> where
    B0: ReadBuffer<Word = u16> + 'static,
    B1: ReadBuffer<Word = u16> + 'static,
    T: Instance
[src]

pub fn split(self) -> (Option<B0>, Option<B1>, Pwm<T>)[src]

Returns the wrapped contents.

pub fn stop(&self)[src]

Stops PWM generation.

pub fn start_seq(&self, seq: Seq)[src]

Starts playing the given sequence.

pub fn is_event_triggered(&self, event: PwmEvent) -> bool[src]

Checks if the given event has been triggered.

pub fn reset_event(&self, event: PwmEvent)[src]

Marks the given event as handled.

Trait Implementations

impl<T, B0, B1> Debug for PwmSeq<T, B0, B1> where
    B0: Debug,
    B1: Debug,
    T: Instance + Debug
[src]

Auto Trait Implementations

impl<T, B0, B1> Send for PwmSeq<T, B0, B1> where
    B0: Send,
    B1: Send,
    T: Send

impl<T, B0, B1> Sync for PwmSeq<T, B0, B1> where
    B0: Sync,
    B1: Sync,
    T: Sync

impl<T, B0, B1> Unpin for PwmSeq<T, B0, B1> where
    B0: Unpin,
    B1: Unpin,
    T: 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<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[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.