pub struct TIM4 { /* private fields */ }Expand description
General purpose timers
Implementations§
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn ccmr1_input(&self) -> &Reg<CCMR1_INPUT_SPEC>
pub fn ccmr1_input(&self) -> &Reg<CCMR1_INPUT_SPEC>
0x18 - capture/compare mode register 1 (input mode)
Sourcepub fn ccmr1_output(&self) -> &Reg<CCMR1_OUTPUT_SPEC>
pub fn ccmr1_output(&self) -> &Reg<CCMR1_OUTPUT_SPEC>
0x18 - capture/compare mode register 1 (output mode)
Sourcepub fn ccmr2_input(&self) -> &Reg<CCMR2_INPUT_SPEC>
pub fn ccmr2_input(&self) -> &Reg<CCMR2_INPUT_SPEC>
0x1c - capture/compare mode register 2 (input mode)
Sourcepub fn ccmr2_output(&self) -> &Reg<CCMR2_OUTPUT_SPEC>
pub fn ccmr2_output(&self) -> &Reg<CCMR2_OUTPUT_SPEC>
0x1c - capture/compare mode register 2 (output mode)
Trait Implementations§
Source§impl Enable for TIM4
impl Enable for TIM4
Source§fn is_enabled() -> bool
fn is_enabled() -> bool
Check if peripheral enabled
Source§fn is_disabled() -> bool
fn is_disabled() -> bool
Check if peripheral disabled
Source§unsafe fn enable_unchecked()
unsafe fn enable_unchecked()
Safety Read more
Source§unsafe fn disable_unchecked()
unsafe fn disable_unchecked()
Safety Read more
Source§impl LPEnable for TIM4
impl LPEnable for TIM4
Source§fn low_power_enable(bus: &mut Self::Bus)
fn low_power_enable(bus: &mut Self::Bus)
Enables peripheral
Source§fn low_power_disable(bus: &mut Self::Bus)
fn low_power_disable(bus: &mut Self::Bus)
Disables peripheral
Source§fn is_low_power_enabled() -> bool
fn is_low_power_enabled() -> bool
Check if peripheral enabled
Source§fn is_low_power_disabled() -> bool
fn is_low_power_disabled() -> bool
Check if peripheral disabled
Source§unsafe fn low_power_enable_unchecked()
unsafe fn low_power_enable_unchecked()
Safety Read more
Source§unsafe fn low_power_disable_unchecked()
unsafe fn low_power_disable_unchecked()
Safety Read more
impl<Otype> CPin<TIM4, $C> for PB6<Alternate<2, Otype>>
impl<Otype> CPin<TIM4, $C> for PB7<Alternate<2, Otype>>
impl<Otype> CPin<TIM4, $C> for PB8<Alternate<2, Otype>>
impl<Otype> CPin<TIM4, $C> for PB9<Alternate<2, Otype>>
impl<Otype> CPin<TIM4, $C> for PD12<Alternate<2, Otype>>
impl<Otype> CPin<TIM4, $C> for PD13<Alternate<2, Otype>>
impl<Otype> CPin<TIM4, $C> for PD14<Alternate<2, Otype>>
impl<Otype> CPin<TIM4, $C> for PD15<Alternate<2, Otype>>
impl Instance for TIM4
impl Send for TIM4
Auto Trait Implementations§
impl Freeze for TIM4
impl RefUnwindSafe for TIM4
impl !Sync for TIM4
impl Unpin for TIM4
impl UnwindSafe for TIM4
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> BusTimerClock for T
impl<T> BusTimerClock for T
Source§impl<TIM> PwmExt for TIMwhere
TIM: Instance + WithPwm,
impl<TIM> PwmExt for TIMwhere
TIM: Instance + WithPwm,
fn pwm<P, PINS, const FREQ: u32>(
self,
pins: PINS,
time: Duration<u32, 1, FREQ>,
clocks: &Clocks,
) -> Pwm<TIM, P, PINS, FREQ>where
PINS: Pins<TIM, P>,
fn pwm_hz<P, PINS>(
self,
pins: PINS,
time: Rate<u32, 1, 1>,
clocks: &Clocks,
) -> PwmHz<TIM, P, PINS>where
PINS: Pins<TIM, P>,
fn pwm_us<P, PINS>(
self,
pins: PINS,
time: TimerDurationU32<1_000_000>,
clocks: &Clocks,
) -> Pwm<Self, P, PINS, 1_000_000>where
PINS: Pins<Self, P>,
Source§impl<TIM> TimerExt for TIMwhere
TIM: Instance,
impl<TIM> TimerExt for TIMwhere
TIM: Instance,
Source§fn counter<const FREQ: u32>(self, clocks: &Clocks) -> Counter<TIM, FREQ>
fn counter<const FREQ: u32>(self, clocks: &Clocks) -> Counter<TIM, FREQ>
Non-blocking Counter with custom fixed precision
Source§fn counter_hz(self, clocks: &Clocks) -> CounterHz<TIM>
fn counter_hz(self, clocks: &Clocks) -> CounterHz<TIM>
Non-blocking Counter with dynamic precision which uses
Hertz as Duration unitsSource§fn delay<const FREQ: u32>(self, clocks: &Clocks) -> Delay<TIM, FREQ>
fn delay<const FREQ: u32>(self, clocks: &Clocks) -> Delay<TIM, FREQ>
Blocking Delay with custom fixed precision