pub trait DmaRequest: SealedDmaRequest {
const REQUEST_NUMBER: u8;
}Expand description
Trait for type-safe DMA request sources.
Each peripheral that can trigger DMA requests implements this trait with marker types that encode the correct request source number at compile time. This prevents using the wrong request source for a peripheral.
§Example
ⓘ
// The LPUART2 RX request source is automatically derived from the type:
channel.set_request_source::<Lpuart2RxRequest>();This trait is sealed and cannot be implemented outside this crate.
Required Associated Constants§
Sourceconst REQUEST_NUMBER: u8
const REQUEST_NUMBER: u8
The hardware request source number for the DMA mux.
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.