Skip to main content

DmaEligiblePeripheral

Trait DmaEligiblePeripheral 

Source
pub trait DmaEligiblePeripheral<D: DmaChannel> {
    // Required method
    fn dma_peripheral(&self) -> DmaPeripheral;
}
Available on crate feature unstable only.
Expand description

Implemented by peripheral singletons that can be used with a DMA engine.

Required Methods§

Source

fn dma_peripheral(&self) -> DmaPeripheral

Returns the DmaPeripheral ID for runtime compatibility checks.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'d> DmaEligiblePeripheral<AhbGdmaChannel<'d>> for esp_hal::spi::master::AnySpi<'d>

Source§

impl<'d> DmaEligiblePeripheral<AhbGdmaChannel<'d>> for esp_hal::spi::slave::AnySpi<'d>

Source§

impl<'d> DmaEligiblePeripheral<AhbGdmaChannel<'d>> for SHA<'d>

Source§

impl<'d> DmaEligiblePeripheral<AhbGdmaChannel<'d>> for SPI2<'d>