pub struct Channel<C, S>where
C: Instance,{ /* private fields */ }Expand description
A DMA channel
The Channel struct represents a specific DMA channel. It provides methods
to control that channel.
To use a Channel instance for a DMA transfer, you must pass it to a
write_all or read_all method of the peripheral you want to use it with.
You can gain access to instances of this struct via Channels.
Implementations§
Source§impl<C> Channel<C, Enabled>where
C: Instance,
impl<C> Channel<C, Enabled>where
C: Instance,
Sourcepub fn enable_interrupts(&mut self)
pub fn enable_interrupts(&mut self)
Enable interrupts for this channel
Sourcepub fn disable_interrupts(&mut self)
pub fn disable_interrupts(&mut self)
Disable interrupts for this channel
Auto Trait Implementations§
impl<C, S> Freeze for Channel<C, S>
impl<C, S> RefUnwindSafe for Channel<C, S>where
C: RefUnwindSafe,
S: RefUnwindSafe,
<C as Instance>::Cfg: RefUnwindSafe,
<C as Instance>::Xfercfg: RefUnwindSafe,
impl<C, S> Send for Channel<C, S>
impl<C, S> !Sync for Channel<C, S>
impl<C, S> Unpin for Channel<C, S>
impl<C, S> !UnwindSafe for Channel<C, S>
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