Struct stm32f3xx_hal::pac::TIM1

source ·
pub struct TIM1 { /* private fields */ }
Expand description

Advanced timer

Implementations§

source§

impl TIM1

source

pub const PTR: *const RegisterBlock = {0x40012c00 as *const stm32f3::stm32f303::tim1::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn ccr1(&self) -> &Reg<CCR_SPEC>

0x34 - capture/compare register

source

pub fn ccr2(&self) -> &Reg<CCR_SPEC>

0x38 - capture/compare register

source

pub fn ccr3(&self) -> &Reg<CCR_SPEC>

0x3c - capture/compare register

source

pub fn ccr4(&self) -> &Reg<CCR_SPEC>

0x40 - capture/compare register

source

pub fn ccmr1_input(&self) -> &Reg<CCMR1_INPUT_SPEC>

0x18 - capture/compare mode register 1 (input mode)

source

pub fn ccmr1_output(&self) -> &Reg<CCMR1_OUTPUT_SPEC>

0x18 - capture/compare mode register (output mode)

source

pub fn ccmr2_input(&self) -> &Reg<CCMR2_INPUT_SPEC>

0x1c - capture/compare mode register 2 (input mode)

source

pub fn ccmr2_output(&self) -> &Reg<CCMR2_OUTPUT_SPEC>

0x1c - capture/compare mode register (output mode)

Trait Implementations§

source§

impl Debug for TIM1

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for TIM1

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &<TIM1 as Deref>::Target

Dereferences the value.
source§

impl Enable for TIM1

source§

fn enable(bus: &mut Self::Bus)

Enables peripheral
source§

fn disable(bus: &mut Self::Bus)

Disables peripheral
source§

fn is_enabled() -> bool

Check if peripheral enabled
source§

fn is_disabled() -> bool

Check if peripheral disabled
source§

unsafe fn enable_unchecked()

Enables peripheral Read more
source§

unsafe fn disable_unchecked()

Disables peripheral Read more
source§

impl InterruptNumber for TIM1

§

type Interrupt = InterruptTypes

The type used to represent the Interrupt Number. Read more
source§

const INTERRUPT: Self::Interrupt = crate::timer::interrupts::TIM1_TYPES

The assocaited constant of the interrupt
source§

impl RccBus for TIM1

§

type Bus = APB2

The underlying bus peripheral
source§

impl Reset for TIM1

source§

fn reset(bus: &mut Self::Bus)

Resets peripheral
source§

unsafe fn reset_unchecked()

Safety Read more
source§

impl CommonRegisterBlock for TIM1

source§

impl Instance for TIM1

source§

impl Send for TIM1

Auto Trait Implementations§

§

impl RefUnwindSafe for TIM1

§

impl !Sync for TIM1

§

impl Unpin for TIM1

§

impl UnwindSafe for TIM1

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> BusClock for Twhere T: RccBus, <T as RccBus>::Bus: BusClock,

source§

fn clock(clocks: &Clocks) -> Hertz

Calculates frequency depending on Clock state
source§

impl<T> BusTimerClock for Twhere T: RccBus, <T as RccBus>::Bus: BusTimerClock,

source§

fn timer_clock(clocks: &Clocks) -> Hertz

Calculates base frequency of timer depending on Clock state
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.