pub struct TIM4 { /* private fields */ }
Expand description
General purpose timer
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()
Enables peripheral Read more
Source§unsafe fn disable_unchecked()
unsafe fn disable_unchecked()
Disables peripheral Read more
Source§impl InterruptNumber for TIM4
impl InterruptNumber for TIM4
impl CommonRegisterBlock for TIM4
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§fn timer_clock(clocks: &Clocks) -> Hertz
fn timer_clock(clocks: &Clocks) -> Hertz
Calculates base frequency of timer depending on
Clock
state