pub struct Dma<'d> {
pub spi2channel: Spi2DmaChannelCreator,
pub spi3channel: Spi3DmaChannelCreator,
pub i2s0channel: I2s0DmaChannelCreator,
pub i2s1channel: I2s1DmaChannelCreator,
/* private fields */
}
Expand description
DMA Peripheral
This offers the available DMA channels.
Fields§
§spi2channel: Spi2DmaChannelCreator
§spi3channel: Spi3DmaChannelCreator
§i2s0channel: I2s0DmaChannelCreator
§i2s1channel: I2s1DmaChannelCreator
Implementations§
source§impl<'d> Dma<'d>
impl<'d> Dma<'d>
sourcepub fn new(
dma: impl Peripheral<P = Dma> + 'd,
peripheral_clock_control: &mut PeripheralClockControl
) -> Dma<'d>
pub fn new( dma: impl Peripheral<P = Dma> + 'd, peripheral_clock_control: &mut PeripheralClockControl ) -> Dma<'d>
Create a DMA instance.
Auto Trait Implementations§
impl<'d> RefUnwindSafe for Dma<'d>
impl<'d> Send for Dma<'d>
impl<'d> Sync for Dma<'d>
impl<'d> Unpin for Dma<'d>
impl<'d> !UnwindSafe for Dma<'d>
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