Struct stm32l4xx_hal::stm32::TIM2
source · [−]pub struct TIM2 { /* private fields */ }
Expand description
General-purpose-timers
Implementations
sourceimpl TIM2
impl TIM2
sourcepub const PTR: *const RegisterBlock
pub const PTR: *const RegisterBlock
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
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
sourceimpl Enable for TIM2
impl Enable for TIM2
sourcefn is_enabled() -> bool
fn is_enabled() -> bool
Check if peripheral enabled
sourcefn is_disabled() -> bool
fn is_disabled() -> bool
Check if peripheral disabled
sourceunsafe fn enable_unchecked()
unsafe fn enable_unchecked()
Safety Read more
sourceunsafe fn disable_unchecked()
unsafe fn disable_unchecked()
Safety Read more
sourceimpl<OTYPE> Pins<TIM2> for (PA0<Alternate<OTYPE, 1>>, PA1<Alternate<OTYPE, 1>>, PA2<Alternate<OTYPE, 1>>, PA3<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PA0<Alternate<OTYPE, 1>>, PA1<Alternate<OTYPE, 1>>, PA2<Alternate<OTYPE, 1>>, PA3<Alternate<OTYPE, 1>>)
sourceimpl<OTYPE> Pins<TIM2> for (PA0<Alternate<OTYPE, 1>>, PA1<Alternate<OTYPE, 1>>, PA2<Alternate<OTYPE, 1>>, PB11<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PA0<Alternate<OTYPE, 1>>, PA1<Alternate<OTYPE, 1>>, PA2<Alternate<OTYPE, 1>>, PB11<Alternate<OTYPE, 1>>)
sourceimpl<OTYPE> Pins<TIM2> for (PA15<Alternate<OTYPE, 1>>, PB3<Alternate<OTYPE, 1>>, PB10<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PA15<Alternate<OTYPE, 1>>, PB3<Alternate<OTYPE, 1>>, PB10<Alternate<OTYPE, 1>>)
sourceimpl<OTYPE> Pins<TIM2> for (PA15<Alternate<OTYPE, 1>>, PB3<Alternate<OTYPE, 1>>, PB10<Alternate<OTYPE, 1>>, PB11<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PA15<Alternate<OTYPE, 1>>, PB3<Alternate<OTYPE, 1>>, PB10<Alternate<OTYPE, 1>>, PB11<Alternate<OTYPE, 1>>)
sourceimpl<OTYPE> Pins<TIM2> for (PA1<Alternate<OTYPE, 1>>, PA2<Alternate<OTYPE, 1>>, PA3<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PA1<Alternate<OTYPE, 1>>, PA2<Alternate<OTYPE, 1>>, PA3<Alternate<OTYPE, 1>>)
sourceimpl<OTYPE> Pins<TIM2> for (PA0<Alternate<OTYPE, 1>>, PA2<Alternate<OTYPE, 1>>, PA3<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PA0<Alternate<OTYPE, 1>>, PA2<Alternate<OTYPE, 1>>, PA3<Alternate<OTYPE, 1>>)
sourceimpl<OTYPE> Pins<TIM2> for (PA0<Alternate<OTYPE, 1>>, PA1<Alternate<OTYPE, 1>>, PA3<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PA0<Alternate<OTYPE, 1>>, PA1<Alternate<OTYPE, 1>>, PA3<Alternate<OTYPE, 1>>)
sourceimpl<OTYPE> Pins<TIM2> for (PA0<Alternate<OTYPE, 1>>, PA1<Alternate<OTYPE, 1>>, PA2<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PA0<Alternate<OTYPE, 1>>, PA1<Alternate<OTYPE, 1>>, PA2<Alternate<OTYPE, 1>>)
sourceimpl<OTYPE> Pins<TIM2> for (PB3<Alternate<OTYPE, 1>>, PB10<Alternate<OTYPE, 1>>, PB11<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PB3<Alternate<OTYPE, 1>>, PB10<Alternate<OTYPE, 1>>, PB11<Alternate<OTYPE, 1>>)
sourceimpl<OTYPE> Pins<TIM2> for (PA15<Alternate<OTYPE, 1>>, PB10<Alternate<OTYPE, 1>>, PB11<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PA15<Alternate<OTYPE, 1>>, PB10<Alternate<OTYPE, 1>>, PB11<Alternate<OTYPE, 1>>)
sourceimpl<OTYPE> Pins<TIM2> for (PA15<Alternate<OTYPE, 1>>, PB3<Alternate<OTYPE, 1>>, PB11<Alternate<OTYPE, 1>>)
impl<OTYPE> Pins<TIM2> for (PA15<Alternate<OTYPE, 1>>, PB3<Alternate<OTYPE, 1>>, PB11<Alternate<OTYPE, 1>>)
sourceimpl SMEnable for TIM2
impl SMEnable for TIM2
sourcefn enable_in_sleep_mode(bus: &mut Self::Bus)
fn enable_in_sleep_mode(bus: &mut Self::Bus)
Enables peripheral
sourcefn disable_in_sleep_mode(bus: &mut Self::Bus)
fn disable_in_sleep_mode(bus: &mut Self::Bus)
Disables peripheral
sourcefn is_enabled_in_sleep_mode() -> bool
fn is_enabled_in_sleep_mode() -> bool
Check if peripheral enabled
sourcefn is_disabled_in_sleep_mode() -> bool
fn is_disabled_in_sleep_mode() -> bool
Check if peripheral disabled
sourceunsafe fn enable_in_sleep_mode_unchecked()
unsafe fn enable_in_sleep_mode_unchecked()
Safety Read more
sourceunsafe fn disable_in_sleep_mode_unchecked()
unsafe fn disable_in_sleep_mode_unchecked()
Safety Read more
impl Send for TIM2
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more