Struct TIM3

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

General-purpose-timers

Implementations§

Source§

impl TIM3

Source

pub const PTR: *const RegisterBlock = {0x40000400 as *const stm32g0::stm32g081::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 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 TIM3

Source§

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

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

impl DelayExt<TIM3> for TIM3

Source§

fn delay(self, rcc: &mut Rcc) -> Delay<TIM3>

Source§

impl Deref for TIM3

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Enable for TIM3

Source§

fn enable(rcc: &mut Rcc)

Enables peripheral
Source§

fn disable(rcc: &mut Rcc)

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()

Safety Read more
Source§

unsafe fn disable_unchecked()

Safety Read more
Source§

impl OpmExt for TIM3

Source§

fn opm(self, pulse: MicroSecond, rcc: &mut Rcc) -> Opm<Self>

Source§

impl PwmExt for TIM3

Source§

fn pwm(self, freq: Hertz, rcc: &mut Rcc) -> Pwm<Self>

Source§

impl<PINS> QeiExt<TIM3, PINS> for TIM3
where PINS: QeiPins<TIM3>,

Source§

fn qei(self, pins: PINS, rcc: &mut Rcc) -> Qei<TIM3, PINS>

Source§

impl RccBus for TIM3

Source§

type Bus = APB1

Bus type;
Source§

impl Reset for TIM3

Source§

fn reset(rcc: &mut Rcc)

Resets peripheral
Source§

unsafe fn reset_unchecked()

Safety Read more
Source§

impl SMEnable for TIM3

Source§

fn sleep_mode_enable(rcc: &mut Rcc)

Enables peripheral
Source§

fn sleep_mode_disable(rcc: &mut Rcc)

Disables peripheral
Source§

fn is_sleep_mode_enabled() -> bool

Check if peripheral enabled
Source§

fn is_sleep_mode_disabled() -> bool

Check if peripheral disabled
Source§

unsafe fn sleep_mode_enable_unchecked()

Safety Read more
Source§

unsafe fn sleep_mode_disable_unchecked()

Safety Read more
Source§

impl StopwatchExt<TIM3> for TIM3

Source§

fn stopwatch(self, rcc: &mut Rcc) -> Stopwatch<TIM3>

Source§

impl TimerExt<TIM3> for TIM3

Source§

fn timer(self, rcc: &mut Rcc) -> Timer<TIM3>

Source§

impl TimerPin<TIM3> for PA6<DefaultMode>

Source§

type Channel = Channel1

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl TimerPin<TIM3> for PA7<DefaultMode>

Source§

type Channel = Channel2

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl TimerPin<TIM3> for PB0<DefaultMode>

Source§

type Channel = Channel3

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl TimerPin<TIM3> for PB1<DefaultMode>

Source§

type Channel = Channel4

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl TimerPin<TIM3> for PB4<DefaultMode>

Source§

type Channel = Channel1

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl TimerPin<TIM3> for PB5<DefaultMode>

Source§

type Channel = Channel2

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl TimerPin<TIM3> for PC6<DefaultMode>

Source§

type Channel = Channel1

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl TimerPin<TIM3> for PC7<DefaultMode>

Source§

type Channel = Channel2

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl TimerPin<TIM3> for PC8<DefaultMode>

Source§

type Channel = Channel3

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

impl TimerPin<TIM3> for PC9<DefaultMode>

Source§

type Channel = Channel4

Source§

fn setup(&self)

Source§

fn release(self) -> Self

Source§

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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>,

Source§

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.