embassy-stm32

Crates

git

Versions

stm32h7s3z8

Flavors

Trait embassy_stm32::timer::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.

Object Safety§

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

source§

impl CoreInstance for TIM7

source§

const BITS: TimerBits = TimerBits::Bits16

source§

type UpdateInterrupt = TIM7

source§

impl CoreInstance for TIM12

source§

const BITS: TimerBits = TimerBits::Bits16

source§

type UpdateInterrupt = TIM12

source§

impl CoreInstance for TIM13

source§

const BITS: TimerBits = TimerBits::Bits16

source§

type UpdateInterrupt = TIM13

source§

impl CoreInstance for TIM14

source§

const BITS: TimerBits = TimerBits::Bits16

source§

type UpdateInterrupt = 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