Struct daisy::pac::TIM3

pub struct TIM3 { /* private fields */ }
Expand description

General purpose timers

Implementations§

§

impl TIM3

pub const PTR: *const RegisterBlock = {0x40000400 as *const stm32h7xx_hal::stm32::tim3::RegisterBlock}

Pointer to the register block

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

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

0x34 - capture/compare register

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

0x38 - capture/compare register

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

0x3c - capture/compare register

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

0x40 - capture/compare register

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

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

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

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

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

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

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

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

Trait Implementations§

§

impl Debug for TIM3

§

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

Formats the value using the given formatter. Read more
§

impl Deref for TIM3

§

type Target = RegisterBlock

The resulting type after dereferencing.
§

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

Dereferences the value.
§

impl GetClk for TIM3

§

fn get_clk(clocks: &CoreClocks) -> Option<Rate<u32, 1, 1>>

§

impl QeiExt<TIM3> for TIM3

§

type Rec = Tim3

§

fn qei<PINS>(self, _pins: PINS, prec: <TIM3 as QeiExt<TIM3>>::Rec) -> Qei<TIM3>

§

fn qei_unchecked(self, prec: <TIM3 as QeiExt<TIM3>>::Rec) -> Qei<TIM3>

§

impl PwmAdvExt<u16> for TIM3

§

type Rec = Tim3

§

fn pwm_advanced<PINS, CHANNEL, COMP>( self, _pins: PINS, prec: <TIM3 as PwmAdvExt<u16>>::Rec, clocks: &CoreClocks ) -> PwmBuilder<TIM3, PINS, CHANNEL, FaultDisabled, COMP, u16>
where PINS: Pins<TIM3, CHANNEL, COMP>,

§

impl PwmExt for TIM3

§

type Rec = Tim3

§

fn pwm<PINS, U, V>( self, pins: PINS, frequency: Rate<u32, 1, 1>, prec: Tim3, clocks: &CoreClocks ) -> <PINS as Pins<TIM3, U, V>>::Channel
where PINS: Pins<TIM3, U, V>,

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

impl TimerExt<Timer<TIM3>> for TIM3

§

type Rec = Tim3

§

fn timer( self, timeout: Rate<u32, 1, 1>, prec: <TIM3 as TimerExt<Timer<TIM3>>>::Rec, clocks: &CoreClocks ) -> Timer<TIM3>

Configures a periodic timer Read more
§

fn tick_timer( self, frequency: Rate<u32, 1, 1>, prec: <TIM3 as TimerExt<Timer<TIM3>>>::Rec, clocks: &CoreClocks ) -> Timer<TIM3>

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

impl Send for TIM3

Auto Trait Implementations§

§

impl Freeze for TIM3

§

impl RefUnwindSafe for TIM3

§

impl !Sync for TIM3

§

impl Unpin for TIM3

§

impl UnwindSafe for TIM3

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.