pub struct Dma<D> {
    pub regs: D,
}
Expand description

Represents a Direct Memory Access (DMA) peripheral.

Fields

regs: D

Implementations

Initialize a DMA peripheral, including enabling and resetting its RCC peripheral clock.

Configure a DMA channel. See L4 RM 0394, section 11.4.4. Sets the Transfer Complete interrupt.

Stop DMA.

Enable a specific type of interrupt. Note that the TransferComplete interrupt is enabled automatically, by the cfg_channel method.

Disable a specific type of interrupt. Note that the TransferComplete interrupt is enabled automatically, by the cfg_channel method. todo: Non-H7 version too!

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.