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§
Sourcefn dma_peripheral(&self) -> DmaPeripheral
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".