pub struct Dma2Ch7 {}
Expand description
Experimental/WIP channel-based DMA struct.
Implementations§
Source§impl Dma2Ch7
impl Dma2Ch7
Sourcepub fn new() -> Self
pub fn new() -> Self
Initialize a DMA peripheral, including enabling and resetting its RCC peripheral clock. Note that the clock may have already been enabled by a different channel’s constructor.
Sourcepub fn cfg_channel(
&mut self,
periph_addr: u32,
mem_addr: u32,
num_data: u32,
direction: Direction,
periph_size: DataSize,
mem_size: DataSize,
cfg: ChannelCfg,
) -> Result<()>
pub fn cfg_channel( &mut self, periph_addr: u32, mem_addr: u32, num_data: u32, direction: Direction, periph_size: DataSize, mem_size: DataSize, cfg: ChannelCfg, ) -> Result<()>
Configure a DMA channel. See L4 RM 0394, section 11.4.4. Sets the Transfer Complete interrupt. Note that this fn has been (perhaps) depreciated by the standalone fn.
Sourcepub fn enable_interrupt(&mut self, interrupt: DmaInterrupt)
pub fn enable_interrupt(&mut self, interrupt: DmaInterrupt)
Enable a specific type of interrupt.
Sourcepub fn clear_interrupt(&mut self, interrupt: DmaInterrupt)
pub fn clear_interrupt(&mut self, interrupt: DmaInterrupt)
Clear an interrupt flag.
Auto Trait Implementations§
impl Freeze for Dma2Ch7
impl RefUnwindSafe for Dma2Ch7
impl Send for Dma2Ch7
impl Sync for Dma2Ch7
impl Unpin for Dma2Ch7
impl UnwindSafe for Dma2Ch7
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