Struct stm32f7xx_hal::pac::TIM1
source · [−]pub struct TIM1 { /* private fields */ }
Expand description
Advanced-timers
Implementations
sourceimpl TIM1
impl TIM1
sourcepub const PTR: *const RegisterBlock = {0x40010000 as *const stm32f7::stm32f7x6::tim1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40010000 as *const stm32f7::stm32f7x6::tim1::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 TIM1
impl Enable for TIM1
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 LPEnable for TIM1
impl LPEnable for TIM1
sourcefn low_power_enable(bus: &mut Self::Bus)
fn low_power_enable(bus: &mut Self::Bus)
Enables peripheral
sourcefn low_power_disable(bus: &mut Self::Bus)
fn low_power_disable(bus: &mut Self::Bus)
Disables peripheral
sourcefn is_low_power_enabled() -> bool
fn is_low_power_enabled() -> bool
Check if peripheral enabled
sourcefn is_low_power_disabled() -> bool
fn is_low_power_disabled() -> bool
Check if peripheral disabled
sourceunsafe fn low_power_enable_unchecked()
unsafe fn low_power_enable_unchecked()
Safety Read more
sourceunsafe fn low_power_disable_unchecked()
unsafe fn low_power_disable_unchecked()
Safety Read more
impl<Otype> CPin<TIM1, $C> for PA8<Alternate<1, Otype>>
impl<Otype> CPin<TIM1, $C> for PA9<Alternate<1, Otype>>
impl<Otype> CPin<TIM1, $C> for PA10<Alternate<1, Otype>>
impl<Otype> CPin<TIM1, $C> for PA11<Alternate<1, Otype>>
impl<Otype> CPin<TIM1, $C> for PE9<Alternate<1, Otype>>
impl<Otype> CPin<TIM1, $C> for PE11<Alternate<1, Otype>>
impl<Otype> CPin<TIM1, $C> for PE13<Alternate<1, Otype>>
impl<Otype> CPin<TIM1, $C> for PE14<Alternate<1, Otype>>
impl Instance for TIM1
impl Send for TIM1
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
sourceimpl<TIM> PwmExt for TIM where
TIM: Instance + WithPwm,
impl<TIM> PwmExt for TIM where
TIM: Instance + WithPwm,
fn pwm<P, PINS, const FREQ: u32>(
self,
pins: PINS,
time: Duration<u32, 1_u32, 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_u32, 1_u32>,
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>,
sourceimpl<TIM> TimerExt for TIM where
TIM: Instance,
impl<TIM> TimerExt for TIM where
TIM: Instance,
sourcefn 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
sourcefn 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 units
sourcefn 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