SingleChannel

Trait SingleChannel 

Source
pub trait SingleChannel: Sealed {
Show 14 methods // Required methods fn ch(&self) -> &CH; fn id(&self) -> u8; // Provided methods fn listen_irq0(&mut self) { ... } fn enable_irq0(&mut self) { ... } fn is_enabled_irq0(&mut self) -> bool { ... } fn unlisten_irq0(&mut self) { ... } fn disable_irq0(&mut self) { ... } fn check_irq0(&mut self) -> bool { ... } fn listen_irq1(&mut self) { ... } fn enable_irq1(&mut self) { ... } fn is_enabled_irq1(&mut self) -> bool { ... } fn unlisten_irq1(&mut self) { ... } fn disable_irq1(&mut self) { ... } fn check_irq1(&mut self) -> bool { ... }
}
Expand description

Trait which implements low-level functionality for transfers using a single DMA channel.

Required Methods§

Source

fn ch(&self) -> &CH

Returns the registers associated with this DMA channel.

In the case of channel pairs, this returns the first channel.

Source

fn id(&self) -> u8

Returns the index of the DMA channel.

Provided Methods§

Source

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)

Enables the DMA_IRQ_0 signal for this channel.

Source

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)

👎Deprecated: Renamed to disable_irq0

Disables the DMA_IRQ_0 signal for this channel.

Source

fn disable_irq0(&mut self)

Disables the DMA_IRQ_0 signal for this channel.

Source

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)

👎Deprecated: Renamed to enable_irq1

Enables the DMA_IRQ_1 signal for this channel.

Source

fn enable_irq1(&mut self)

Enables the DMA_IRQ_1 signal for this channel.

Source

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)

👎Deprecated: Renamed to disable_irq1

Disables the DMA_IRQ_1 signal for this channel.

Source

fn disable_irq1(&mut self)

Disables the DMA_IRQ_1 signal for this channel.

Source

fn check_irq1(&mut self) -> bool

Check if an interrupt is pending for this channel and clear the corresponding pending bit

Implementations on Foreign Types§

Source§

impl<CH1, CH2> SingleChannel for (Channel<CH1>, Channel<CH2>)
where CH1: ChannelIndex, CH2: ChannelIndex,

Source§

fn ch(&self) -> &CH

Source§

fn id(&self) -> u8

Implementors§

Source§

impl<CH> SingleChannel for Channel<CH>
where CH: ChannelIndex,