[][src]Struct stm32f1xx_hal::pwm_input::PwmInput

pub struct PwmInput<TIM, PINS> { /* fields omitted */ }

PWM Input

Methods

impl<PINS> PwmInput<TIM2, PINS> where
    PINS: Pins<TIM2>, 
[src]

pub fn read_frequency(
    &self,
    mode: ReadMode,
    clocks: &Clocks
) -> Result<Hertz, Error>
[src]

Return the frequency sampled by the timer

pub fn read_duty(&self, mode: ReadMode) -> Result<(u16, u16), Error>[src]

Return the duty in the form of a fraction : (duty_cycle/period)

impl<PINS> PwmInput<TIM3, PINS> where
    PINS: Pins<TIM3>, 
[src]

pub fn read_frequency(
    &self,
    mode: ReadMode,
    clocks: &Clocks
) -> Result<Hertz, Error>
[src]

Return the frequency sampled by the timer

pub fn read_duty(&self, mode: ReadMode) -> Result<(u16, u16), Error>[src]

Return the duty in the form of a fraction : (duty_cycle/period)

impl<PINS> PwmInput<TIM4, PINS> where
    PINS: Pins<TIM4>, 
[src]

pub fn read_frequency(
    &self,
    mode: ReadMode,
    clocks: &Clocks
) -> Result<Hertz, Error>
[src]

Return the frequency sampled by the timer

pub fn read_duty(&self, mode: ReadMode) -> Result<(u16, u16), Error>[src]

Return the duty in the form of a fraction : (duty_cycle/period)

Auto Trait Implementations

impl<TIM, PINS> Send for PwmInput<TIM, PINS> where
    PINS: Send,
    TIM: Send

impl<TIM, PINS> Sync for PwmInput<TIM, PINS> where
    PINS: Sync,
    TIM: Sync

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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