embassy-stm32

Crates

git

Versions

stm32g0b1re

Flavors

ChannelInterrupt

Trait ChannelInterrupt 

Source
pub trait ChannelInterrupt: Into<AnyChannel> {
    type Interrupt: Interrupt;

    // Provided method
    fn degrade(
        self,
        _irq: impl Binding<Self::Interrupt, InterruptHandler<Self>>,
    ) -> AnyChannel { ... }
}
Expand description

This trait provides the interrupt type and handler for a DMA channel. It is automatically implemented for all DMA channel peripherals.

Required Associated Types§

Source

type Interrupt: Interrupt

The interrupt type for this DMA channel.

Provided Methods§

Source

fn degrade( self, _irq: impl Binding<Self::Interrupt, InterruptHandler<Self>>, ) -> AnyChannel

Degrade this channel to a type-erased AnyChannel, verifying interrupt binding.

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§