Struct stm32g0xx_hal::stm32::TIM2
source · pub struct TIM2 { /* 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 TIM2
impl Enable for TIM2
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 SMEnable for TIM2
impl SMEnable for TIM2
source§fn sleep_mode_enable(rcc: &mut Rcc)
fn sleep_mode_enable(rcc: &mut Rcc)
Enables peripheral
source§fn sleep_mode_disable(rcc: &mut Rcc)
fn sleep_mode_disable(rcc: &mut Rcc)
Disables peripheral
source§fn is_sleep_mode_enabled() -> bool
fn is_sleep_mode_enabled() -> bool
Check if peripheral enabled
source§fn is_sleep_mode_disabled() -> bool
fn is_sleep_mode_disabled() -> bool
Check if peripheral disabled
source§unsafe fn sleep_mode_enable_unchecked()
unsafe fn sleep_mode_enable_unchecked()
Safety Read more
source§unsafe fn sleep_mode_disable_unchecked()
unsafe fn sleep_mode_disable_unchecked()
Safety Read more