Struct rp2040_hal::dma::Channel
source · pub struct Channel<CH: ChannelIndex> { /* private fields */ }
Expand description
DMA channel.
Trait Implementations§
source§impl<CH: ChannelIndex> SingleChannel for Channel<CH>
impl<CH: ChannelIndex> SingleChannel for Channel<CH>
source§fn listen_irq0(&mut self)
fn listen_irq0(&mut self)
👎Deprecated: Renamed to enable_irq0
Enables the DMA_IRQ_0 signal for this channel.
source§fn enable_irq0(&mut self)
fn enable_irq0(&mut self)
Enables the DMA_IRQ_0 signal for this channel.
source§fn unlisten_irq0(&mut self)
fn unlisten_irq0(&mut self)
👎Deprecated: Renamed to disable_irq0
Disables the DMA_IRQ_0 signal for this channel.
source§fn disable_irq0(&mut self)
fn disable_irq0(&mut self)
Disables the DMA_IRQ_0 signal for this channel.
source§fn check_irq0(&mut self) -> bool
fn check_irq0(&mut self) -> bool
Check if an interrupt is pending for this channel and clear the corresponding pending bit
source§fn listen_irq1(&mut self)
fn listen_irq1(&mut self)
👎Deprecated: Renamed to enable_irq1
Enables the DMA_IRQ_1 signal for this channel.
source§fn enable_irq1(&mut self)
fn enable_irq1(&mut self)
Enables the DMA_IRQ_1 signal for this channel.
source§fn unlisten_irq1(&mut self)
fn unlisten_irq1(&mut self)
👎Deprecated: Renamed to disable_irq1
Disables the DMA_IRQ_1 signal for this channel.
source§fn disable_irq1(&mut self)
fn disable_irq1(&mut self)
Disables the DMA_IRQ_1 signal for this channel.
source§fn check_irq1(&mut self) -> bool
fn check_irq1(&mut self) -> bool
Check if an interrupt is pending for this channel and clear the corresponding pending bit
Auto Trait Implementations§
impl<CH> Freeze for Channel<CH>
impl<CH> RefUnwindSafe for Channel<CH>where
CH: RefUnwindSafe,
impl<CH> Send for Channel<CH>where
CH: Send,
impl<CH> Sync for Channel<CH>where
CH: Sync,
impl<CH> Unpin for Channel<CH>where
CH: Unpin,
impl<CH> UnwindSafe for Channel<CH>where
CH: UnwindSafe,
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
source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more