[][src]Struct msp430fr2x5x_hal::pwm::Pwm

pub struct Pwm<T: PwmPeriph<C>, C> { /* fields omitted */ }

An initialized Pwm pin

Trait Implementations

impl<T: PwmPeriph<C>, C> PwmPin for Pwm<T, C>[src]

type Duty = u16

Number of cycles

pub fn get_max_duty(&self) -> Self::Duty[src]

Maximum valid duty is equal to the period. If number of duty cycles exceeds number of period cycles, then signal stays high (equivalent to 100% duty cycle).

Auto Trait Implementations

impl<T, C> Send for Pwm<T, C> where
    C: Send,
    T: Send,
    <T as PwmPeriph<C>>::Gpio: Send
[src]

impl<T, C> Sync for Pwm<T, C> where
    C: Sync,
    T: Sync,
    <T as PwmPeriph<C>>::Gpio: Sync
[src]

impl<T, C> Unpin for Pwm<T, C> where
    C: Unpin,
    T: Unpin,
    <T as PwmPeriph<C>>::Gpio: Unpin
[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, 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.