embassy-stm32

Crates

git

Versions

stm32f722vc

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§

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 TIM9

Source§

impl CoreInstance for TIM10

Source§

impl CoreInstance for TIM11

Source§

impl CoreInstance for TIM12

Source§

impl CoreInstance for TIM13

Source§

impl CoreInstance for TIM14