embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

Channel

Trait Channel 

Source
pub trait Channel:
    SealedChannel
    + PeripheralType
    + Into<AnyChannel>
    + 'static {
    // Required methods
    fn index(&self) -> usize;
    fn interrupt(&self) -> Interrupt;
}
Expand description

Marker trait implemented by HAL peripheral tokens that map to a DMA0 channel backed by one EDMA_0_TCD0 TCD slot.

This trait is sealed and cannot be implemented outside this crate.

Required Methods§

Source

fn index(&self) -> usize

Zero-based channel index into the TCD array.

Source

fn interrupt(&self) -> Interrupt

Interrupt vector for this channel.

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§