pub struct Dma2d<'d, T: Instance> { /* private fields */ }Expand description
DMA2D Peripheral
Implementations§
Source§impl<'d, T: Instance> Dma2d<'d, T>
impl<'d, T: Instance> Dma2d<'d, T>
Sourcepub fn new(
_peri: Peri<'d, T>,
_irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd,
) -> Self
pub fn new( _peri: Peri<'d, T>, _irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd, ) -> Self
Create a Dma2d peripheral
Sourcepub fn set_buffer(&self, kind: BufferKind, buffer: &Buffer2D)
pub fn set_buffer(&self, kind: BufferKind, buffer: &Buffer2D)
Configure a Buffer2D
Sourcepub fn set_region(&mut self, kind: BufferKind, region: &Region2D)
pub fn set_region(&mut self, kind: BufferKind, region: &Region2D)
Configure a Region2D
Sourcepub fn set_color_config(&mut self, kind: BufferKind, config: &ColorConfig)
pub fn set_color_config(&mut self, kind: BufferKind, config: &ColorConfig)
Set the color configuration for a buffer
Sourcepub async fn fill(&mut self, dest: &Region2D, color: u32) -> Result<(), Error>
pub async fn fill(&mut self, dest: &Region2D, color: u32) -> Result<(), Error>
Fill the output buffer with a color into an output region
Auto Trait Implementations§
impl<'d, T> Freeze for Dma2d<'d, T>
impl<'d, T> RefUnwindSafe for Dma2d<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Dma2d<'d, T>
impl<'d, T> Sync for Dma2d<'d, T>where
T: Sync,
impl<'d, T> Unpin for Dma2d<'d, T>
impl<'d, T> !UnwindSafe for Dma2d<'d, T>
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