Struct stm32h7xx_hal::stm32::TIM5

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

General purpose timers

Implementations§

source§

impl TIM5

source

pub const PTR: *const RegisterBlock = {0x40000c00 as *const stm32h7::stm32h743v::tim2::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 1 (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 2 (output mode)

Trait Implementations§

source§

impl Debug for TIM5

source§

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

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

impl Deref for TIM5

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl GetClk for TIM5

source§

impl Pins<TIM5, Ch<C1>, ComplementaryImpossible> for PA0<Alternate<2>>

source§

impl Pins<TIM5, Ch<C1>, ComplementaryImpossible> for PH10<Alternate<2>>

source§

impl Pins<TIM5, Ch<C2>, ComplementaryImpossible> for PA1<Alternate<2>>

source§

impl Pins<TIM5, Ch<C2>, ComplementaryImpossible> for PH11<Alternate<2>>

source§

impl Pins<TIM5, Ch<C3>, ComplementaryImpossible> for PA2<Alternate<2>>

source§

impl Pins<TIM5, Ch<C3>, ComplementaryImpossible> for PH12<Alternate<2>>

source§

impl Pins<TIM5, Ch<C4>, ComplementaryImpossible> for PA3<Alternate<2>>

source§

impl Pins<TIM5, Ch<C4>, ComplementaryImpossible> for PI0<Alternate<2>>

source§

impl PwmAdvExt<u32> for TIM5

§

type Rec = Tim5

source§

fn pwm_advanced<PINS, CHANNEL, COMP>( self, _pins: PINS, prec: Self::Rec, clocks: &CoreClocks ) -> PwmBuilder<Self, PINS, CHANNEL, FaultDisabled, COMP, u32>
where PINS: Pins<Self, CHANNEL, COMP>,

source§

impl PwmExt for TIM5

§

type Rec = Tim5

source§

fn pwm<PINS, U, V>( self, pins: PINS, frequency: Hertz, prec: Tim5, clocks: &CoreClocks ) -> PINS::Channel
where PINS: Pins<Self, U, V>,

The requested frequency will be rounded to the nearest achievable frequency; the actual frequency may be higher or lower than requested.
source§

impl QeiExt<TIM5> for TIM5

§

type Rec = Tim5

source§

fn qei<PINS>(self, _pins: PINS, prec: Self::Rec) -> Qei<TIM5>

source§

fn qei_unchecked(self, prec: Self::Rec) -> Qei<TIM5>

source§

impl TimerExt<Timer<TIM5>> for TIM5

§

type Rec = Tim5

source§

fn timer( self, timeout: Hertz, prec: Self::Rec, clocks: &CoreClocks ) -> Timer<TIM5>

Configures a periodic timer Read more
source§

fn tick_timer( self, frequency: Hertz, prec: Self::Rec, clocks: &CoreClocks ) -> Timer<TIM5>

Configures the timer to count up at the given frequency Read more
source§

impl PinCh1<TIM5> for PA0<Alternate<2>>

source§

impl PinCh1<TIM5> for PH10<Alternate<2>>

source§

impl PinCh2<TIM5> for PA1<Alternate<2>>

source§

impl PinCh2<TIM5> for PH11<Alternate<2>>

source§

impl Send for TIM5

Auto Trait Implementations§

§

impl Freeze for TIM5

§

impl RefUnwindSafe for TIM5

§

impl !Sync for TIM5

§

impl Unpin for TIM5

§

impl UnwindSafe for TIM5

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where 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 T
where 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 T
where 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.