pub struct Channel<CH>where
CH: ChannelIndex,{ /* private fields */ }Expand description
DMA channel.
Trait Implementations§
Source§impl<CH> SingleChannel for Channel<CH>where
CH: ChannelIndex,
impl<CH> SingleChannel for Channel<CH>where
CH: ChannelIndex,
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 is_enabled_irq0(&mut self) -> bool
fn is_enabled_irq0(&mut self) -> bool
Check if the DMA_IRQ_0 signal for this channel is enabled.
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 is_enabled_irq1(&mut self) -> bool
fn is_enabled_irq1(&mut self) -> bool
Check if the DMA_IRQ_1 signal for this channel is enabled.
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