TIM4

Type Alias TIM4 

Source
pub type TIM4 = Periph<RegisterBlock, 1073743872>;
Expand description

General purpose timer

See peripheral structure

Aliased Type§

pub struct TIM4 { /* private fields */ }

Trait Implementations§

Source§

impl Enable for TIM4

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 MonoTimerExt for TIM4

Source§

fn monotonic<const FREQ: u32>(self, rcc: &mut Rcc) -> MonoTimer<Self, FREQ>

Source§

fn monotonic_us(self, rcc: &mut Rcc) -> MonoTimer<Self, 1_000_000>

Source§

impl PwmInputExt for TIM4

Source§

fn pwm_input( self, pins: (impl RInto<<Self as TimC<0>>::In, 0>, impl RInto<<Self as TimC<1>>::In, 0>), dbg: &mut DBG, mode: Configuration, rcc: &mut Rcc, ) -> PwmInput<Self>

Source§

impl QeiExt for TIM4

Source§

fn qei( self, pins: (impl RInto<<Self as TimC<0>>::In, 0>, impl RInto<<Self as TimC<1>>::In, 0>), options: QeiOptions, rcc: &mut Rcc, ) -> Qei<Self>

Source§

impl RccBus for TIM4

Source§

type Bus = APB1

Bus type;
Source§

impl Remap for TIM4

Source§

type Mapr = MAPR

Source§

fn remap<const R: u8>(self, mapr: &mut Self::Mapr) -> Rmp<Self, R>

Source§

impl Reset for TIM4

Source§

fn reset(rcc: &mut RCC)

Resets peripheral
Source§

unsafe fn reset_unchecked()

Safety Read more
Source§

impl TimC<0> for TIM4

Source§

type In = Ch1In

Input capture channel Read more
Source§

type Out = Ch1Out

Output compare channel Read more
Source§

impl TimC<1> for TIM4

Source§

type In = Ch2In

Input capture channel Read more
Source§

type Out = Ch2Out

Output compare channel Read more
Source§

impl TimC<2> for TIM4

Source§

type In = Ch3In

Input capture channel Read more
Source§

type Out = Ch3Out

Output compare channel Read more
Source§

impl TimC<3> for TIM4

Source§

type In = Ch4In

Input capture channel Read more
Source§

type Out = Ch4Out

Output compare channel Read more
Source§

impl TimEtr for TIM4

Source§

impl Instance for TIM4

Source§

impl Instance for TIM4