Enum imxrt_hal::dma::channel::Configuration
source · #[non_exhaustive]pub enum Configuration {
Off,
Enable {
source: u32,
periodic: bool,
},
AlwaysOn,
}
Expand description
DMAMUX channel configuration
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Off
The DMAMUX channel is disabled
Enable
Fields
The DMAMUX is enabled, permitting hardware triggering.
See enable
to enable
the channel without periodic triggering.
AlwaysOn
The DMAMUX is always on, and there’s no need for software or hardware activation
Use AlwaysOn
for
- memory-to-memory transfers
- memory to external bus transfers
Implementations§
source§impl Configuration
impl Configuration
sourcepub const fn enable(source: u32) -> Configuration
pub const fn enable(source: u32) -> Configuration
Enable the channel without triggering
Shorthand for ChannelConfiguration::Enable { source, periodic: false }
.
Use enable()
to avoid possible panics in
set_channel_configuration
.
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Configuration
impl Debug for Configuration
source§impl PartialEq for Configuration
impl PartialEq for Configuration
source§fn eq(&self, other: &Configuration) -> bool
fn eq(&self, other: &Configuration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Configuration
impl Eq for Configuration
impl StructuralEq for Configuration
impl StructuralPartialEq for Configuration
Auto Trait Implementations§
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more