[−][src]Struct stm32f1xx_hal::pac::TIM2
General purpose timer
Methods
impl TIM2
[src]
pub fn ptr() -> *const RegisterBlock
[src]
Returns a pointer to the register block
Trait Implementations
impl Send for TIM2
[src]
impl Deref for TIM2
[src]
type Target = RegisterBlock
The resulting type after dereferencing.
fn deref(&self) -> &RegisterBlock
[src]
impl Pins<TIM2> for (PA0<Alternate<PushPull>>, PA1<Alternate<PushPull>>, PA2<Alternate<PushPull>>, PA3<Alternate<PushPull>>)
[src]
const REMAP: u8
[src]
const C1: bool
[src]
const C2: bool
[src]
const C3: bool
[src]
const C4: bool
[src]
type Channels = (Pwm<TIM2, C1>, Pwm<TIM2, C2>, Pwm<TIM2, C3>, Pwm<TIM2, C4>)
impl Pins<TIM2> for PA0<Alternate<PushPull>>
[src]
const REMAP: u8
[src]
const C1: bool
[src]
const C2: bool
[src]
const C3: bool
[src]
const C4: bool
[src]
type Channels = Pwm<TIM2, C1>
impl PwmExt for TIM2
[src]
fn pwm<PINS, T>(
self,
_pins: PINS,
mapr: &mut MAPR,
freq: T,
clocks: Clocks,
apb: &mut APB1
) -> PINS::Channels where
PINS: Pins<Self>,
T: Into<Hertz>,
[src]
self,
_pins: PINS,
mapr: &mut MAPR,
freq: T,
clocks: Clocks,
apb: &mut APB1
) -> PINS::Channels where
PINS: Pins<Self>,
T: Into<Hertz>,
impl Pins<TIM2> for (PA0<Input<Floating>>, PA1<Input<Floating>>)
[src]
impl Pins<TIM2> for (PA15<Input<Floating>>, PB3<Input<Floating>>)
[src]
impl PwmInputExt for TIM2
[src]
fn pwm_input<PINS, T>(
self,
pins: PINS,
apb: &mut APB1,
mapr: &mut MAPR,
dbg: &mut DBG,
clocks: &Clocks,
mode: Configuration<T>
) -> PwmInput<Self, PINS> where
PINS: Pins<Self>,
T: Into<Hertz>,
[src]
self,
pins: PINS,
apb: &mut APB1,
mapr: &mut MAPR,
dbg: &mut DBG,
clocks: &Clocks,
mode: Configuration<T>
) -> PwmInput<Self, PINS> where
PINS: Pins<Self>,
T: Into<Hertz>,
impl Pins<TIM2> for (PA0<Input<Floating>>, PA1<Input<Floating>>)
[src]
impl PclkSrc for TIM2
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self