Embassy
embassy-stm32

Crates

git

Versions

stm32l062k8

Flavors

Trait embassy_stm32::timer::CoreInstance

source ·
pub trait CoreInstance: RccPeripheral + 'static {
    type UpdateInterrupt: Interrupt;

    const BITS: TimerBits;

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

Core timer instance.

Required Associated Types§

source

type UpdateInterrupt: Interrupt

Update Interrupt for this timer.

Required Associated Constants§

source

const BITS: TimerBits

Amount of bits this timer has.

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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl CoreInstance for TIM2

§

type UpdateInterrupt = TIM2

source§

const BITS: TimerBits = TimerBits::Bits16

source§

impl CoreInstance for TIM6

§

type UpdateInterrupt = TIM6_DAC

source§

const BITS: TimerBits = TimerBits::Bits16

source§

impl CoreInstance for TIM21

§

type UpdateInterrupt = TIM21

source§

const BITS: TimerBits = TimerBits::Bits16

source§

impl CoreInstance for TIM22

§

type UpdateInterrupt = TIM22

source§

const BITS: TimerBits = TimerBits::Bits16