Struct stm32g0xx_hal::stm32::TIM2[][src]

pub struct TIM2 { /* fields omitted */ }

General-purpose-timers

Implementations

impl TIM2[src]

pub const fn ptr() -> *const RegisterBlock[src]

Returns a pointer to the register block

Methods from Deref<Target = RegisterBlock>

pub fn ccmr1_input(&self) -> &Reg<u32, _CCMR1_INPUT>[src]

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

pub fn ccmr1_input_mut(&self) -> &mut Reg<u32, _CCMR1_INPUT>[src]

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

pub fn ccmr1_output(&self) -> &Reg<u32, _CCMR1_OUTPUT>[src]

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

pub fn ccmr1_output_mut(&self) -> &mut Reg<u32, _CCMR1_OUTPUT>[src]

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

pub fn ccmr2_input(&self) -> &Reg<u32, _CCMR2_INPUT>[src]

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

pub fn ccmr2_input_mut(&self) -> &mut Reg<u32, _CCMR2_INPUT>[src]

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

pub fn ccmr2_output(&self) -> &Reg<u32, _CCMR2_OUTPUT>[src]

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

pub fn ccmr2_output_mut(&self) -> &mut Reg<u32, _CCMR2_OUTPUT>[src]

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

Trait Implementations

impl DelayExt<TIM2> for TIM2[src]

impl Deref for TIM2[src]

type Target = RegisterBlock

The resulting type after dereferencing.

impl OpmExt for TIM2[src]

impl PwmExt for TIM2[src]

impl<PINS> QeiExt<TIM2, PINS> for TIM2 where
    PINS: QeiPins<TIM2>, 
[src]

impl Send for TIM2[src]

impl StopwatchExt<TIM2> for TIM2[src]

impl TimerExt<TIM2> for TIM2[src]

impl TimerPin<TIM2> for PA0<DefaultMode>[src]

type Channel = Channel1

impl TimerPin<TIM2> for PA5<DefaultMode>[src]

type Channel = Channel1

impl TimerPin<TIM2> for PA3<DefaultMode>[src]

type Channel = Channel4

impl TimerPin<TIM2> for PB11<DefaultMode>[src]

type Channel = Channel4

impl TimerPin<TIM2> for PC7<DefaultMode>[src]

type Channel = Channel4

impl TimerPin<TIM2> for PA15<DefaultMode>[src]

type Channel = Channel1

impl TimerPin<TIM2> for PC4<DefaultMode>[src]

type Channel = Channel1

impl TimerPin<TIM2> for PA1<DefaultMode>[src]

type Channel = Channel2

impl TimerPin<TIM2> for PB3<DefaultMode>[src]

type Channel = Channel2

impl TimerPin<TIM2> for PC5<DefaultMode>[src]

type Channel = Channel2

impl TimerPin<TIM2> for PA2<DefaultMode>[src]

type Channel = Channel3

impl TimerPin<TIM2> for PB10<DefaultMode>[src]

type Channel = Channel3

impl TimerPin<TIM2> for PC6<DefaultMode>[src]

type Channel = Channel3

Auto Trait Implementations

impl !Sync for TIM2

impl Unpin for TIM2

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.