[−][src]Struct stm32f1xx_hal::pwm_input::PwmInput
PWM Input
Implementations
impl<REMAP, PINS> PwmInput<TIM1, REMAP, PINS> where
REMAP: Remap<Periph = TIM1>,
PINS: Pins<REMAP>,
[src]
REMAP: Remap<Periph = TIM1>,
PINS: Pins<REMAP>,
pub fn read_frequency(
&self,
mode: ReadMode,
clocks: &Clocks
) -> Result<Hertz, Error>
[src]
&self,
mode: ReadMode,
clocks: &Clocks
) -> Result<Hertz, Error>
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<REMAP, PINS> PwmInput<TIM2, REMAP, PINS> where
REMAP: Remap<Periph = TIM2>,
PINS: Pins<REMAP>,
[src]
REMAP: Remap<Periph = TIM2>,
PINS: Pins<REMAP>,
pub fn read_frequency(
&self,
mode: ReadMode,
clocks: &Clocks
) -> Result<Hertz, Error>
[src]
&self,
mode: ReadMode,
clocks: &Clocks
) -> Result<Hertz, Error>
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<REMAP, PINS> PwmInput<TIM3, REMAP, PINS> where
REMAP: Remap<Periph = TIM3>,
PINS: Pins<REMAP>,
[src]
REMAP: Remap<Periph = TIM3>,
PINS: Pins<REMAP>,
pub fn read_frequency(
&self,
mode: ReadMode,
clocks: &Clocks
) -> Result<Hertz, Error>
[src]
&self,
mode: ReadMode,
clocks: &Clocks
) -> Result<Hertz, Error>
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, REMAP, PINS> Send for PwmInput<TIM, REMAP, PINS> where
PINS: Send,
REMAP: Send,
TIM: Send,
PINS: Send,
REMAP: Send,
TIM: Send,
impl<TIM, REMAP, PINS> Sync for PwmInput<TIM, REMAP, PINS> where
PINS: Sync,
REMAP: Sync,
TIM: Sync,
PINS: Sync,
REMAP: Sync,
TIM: Sync,
impl<TIM, REMAP, PINS> Unpin for PwmInput<TIM, REMAP, PINS> where
PINS: Unpin,
REMAP: Unpin,
TIM: Unpin,
PINS: Unpin,
REMAP: Unpin,
TIM: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,