embassy-stm32

Crates

git

Versions

stm32h747ai-cm4

Flavors

embassy_stm32::timer

Trait CoreInstance

Source
pub trait CoreInstance: SealedInstance + 'static {
    type UpdateInterrupt: Interrupt;

    const BITS: TimerBits;

    // Required method
    fn regs() -> *mut ();
}
Expand description

Core timer instance.

Required Associated Constants§

Source

const BITS: TimerBits

Amount of bits this timer has.

Required Associated Types§

Source

type UpdateInterrupt: Interrupt

Update Interrupt for this timer.

Required Methods§

Source

fn regs() -> *mut ()

Registers for this timer.

This is a raw pointer to the register block. The actual register block layout varies depending on the timer type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl CoreInstance for TIM1

Source§

const BITS: TimerBits = TimerBits::Bits16

Source§

type UpdateInterrupt = TIM1_UP

Source§

impl CoreInstance for TIM2

Source§

const BITS: TimerBits = TimerBits::Bits32

Source§

type UpdateInterrupt = TIM2

Source§

impl CoreInstance for TIM3

Source§

const BITS: TimerBits = TimerBits::Bits16

Source§

type UpdateInterrupt = TIM3

Source§

impl CoreInstance for TIM4

Source§

const BITS: TimerBits = TimerBits::Bits16

Source§

type UpdateInterrupt = TIM4

Source§

impl CoreInstance for TIM5

Source§

const BITS: TimerBits = TimerBits::Bits32

Source§

type UpdateInterrupt = TIM5

Source§

impl CoreInstance for TIM6

Source§

const BITS: TimerBits = TimerBits::Bits16

Source§

type UpdateInterrupt = TIM6_DAC

Source§

impl CoreInstance for TIM7

Source§

const BITS: TimerBits = TimerBits::Bits16

Source§

type UpdateInterrupt = TIM7

Source§

impl CoreInstance for TIM8

Source§

impl CoreInstance for TIM12

Source§

impl CoreInstance for TIM13

Source§

impl CoreInstance for TIM14

Source§

impl CoreInstance for TIM15

Source§

const BITS: TimerBits = TimerBits::Bits16

Source§

type UpdateInterrupt = TIM15

Source§

impl CoreInstance for TIM16

Source§

const BITS: TimerBits = TimerBits::Bits16

Source§

type UpdateInterrupt = TIM16

Source§

impl CoreInstance for TIM17

Source§

const BITS: TimerBits = TimerBits::Bits16

Source§

type UpdateInterrupt = TIM17