[−][src]Struct stm32f1xx_hal::pwm::Pwm
Implementations
impl<TIM, REMAP, P, PINS> Pwm<TIM, REMAP, P, PINS> where
REMAP: Remap<Periph = TIM>,
PINS: Pins<REMAP, P>,
[src]
REMAP: Remap<Periph = TIM>,
PINS: Pins<REMAP, P>,
Trait Implementations
impl<REMAP, P, PINS> Pwm for Pwm<TIM1, REMAP, P, PINS> where
REMAP: Remap<Periph = TIM1>,
PINS: Pins<REMAP, P>,
[src]
REMAP: Remap<Periph = TIM1>,
PINS: Pins<REMAP, P>,
type Channel = Channel
Enumeration of channels that can be used with this Pwm
interface Read more
type Duty = u16
Type for the duty
methods Read more
type Time = Hertz
A time unit that can be converted into a human time unit (e.g. seconds)
fn enable(&mut self, channel: Self::Channel)
[src]
fn disable(&mut self, channel: Self::Channel)
[src]
fn get_duty(&self, channel: Self::Channel) -> Self::Duty
[src]
fn set_duty(&mut self, channel: Self::Channel, duty: Self::Duty)
[src]
fn get_max_duty(&self) -> Self::Duty
[src]
fn get_period(&self) -> Self::Time
[src]
fn set_period<T>(&mut self, period: T) where
T: Into<Self::Time>,
[src]
T: Into<Self::Time>,
impl<REMAP, P, PINS> Pwm for Pwm<TIM2, REMAP, P, PINS> where
REMAP: Remap<Periph = TIM2>,
PINS: Pins<REMAP, P>,
[src]
REMAP: Remap<Periph = TIM2>,
PINS: Pins<REMAP, P>,
type Channel = Channel
Enumeration of channels that can be used with this Pwm
interface Read more
type Duty = u16
Type for the duty
methods Read more
type Time = Hertz
A time unit that can be converted into a human time unit (e.g. seconds)
fn enable(&mut self, channel: Self::Channel)
[src]
fn disable(&mut self, channel: Self::Channel)
[src]
fn get_duty(&self, channel: Self::Channel) -> Self::Duty
[src]
fn set_duty(&mut self, channel: Self::Channel, duty: Self::Duty)
[src]
fn get_max_duty(&self) -> Self::Duty
[src]
fn get_period(&self) -> Self::Time
[src]
fn set_period<T>(&mut self, period: T) where
T: Into<Self::Time>,
[src]
T: Into<Self::Time>,
impl<REMAP, P, PINS> Pwm for Pwm<TIM3, REMAP, P, PINS> where
REMAP: Remap<Periph = TIM3>,
PINS: Pins<REMAP, P>,
[src]
REMAP: Remap<Periph = TIM3>,
PINS: Pins<REMAP, P>,
type Channel = Channel
Enumeration of channels that can be used with this Pwm
interface Read more
type Duty = u16
Type for the duty
methods Read more
type Time = Hertz
A time unit that can be converted into a human time unit (e.g. seconds)
fn enable(&mut self, channel: Self::Channel)
[src]
fn disable(&mut self, channel: Self::Channel)
[src]
fn get_duty(&self, channel: Self::Channel) -> Self::Duty
[src]
fn set_duty(&mut self, channel: Self::Channel, duty: Self::Duty)
[src]
fn get_max_duty(&self) -> Self::Duty
[src]
fn get_period(&self) -> Self::Time
[src]
fn set_period<T>(&mut self, period: T) where
T: Into<Self::Time>,
[src]
T: Into<Self::Time>,
Auto Trait Implementations
impl<TIM, REMAP, P, PINS> Send for Pwm<TIM, REMAP, P, PINS> where
P: Send,
PINS: Send,
REMAP: Send,
TIM: Send,
P: Send,
PINS: Send,
REMAP: Send,
TIM: Send,
impl<TIM, REMAP, P, PINS> Sync for Pwm<TIM, REMAP, P, PINS> where
P: Sync,
PINS: Sync,
REMAP: Sync,
TIM: Sync,
P: Sync,
PINS: Sync,
REMAP: Sync,
TIM: Sync,
impl<TIM, REMAP, P, PINS> Unpin for Pwm<TIM, REMAP, P, PINS> where
P: Unpin,
PINS: Unpin,
REMAP: Unpin,
TIM: Unpin,
P: 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>,