pub unsafe trait DMACapableFrameBufferBackend: FrameBufferBackend {
    // Required method
    fn data_ptr(&self) -> *const Self::Color;
}
Expand description

Backends implementing this Trait can be used for DMA.

Safety

The same restrictions as for embedded_dma::ReadBuffer apply.

Required Methods§

source

fn data_ptr(&self) -> *const Self::Color

Implementations on Foreign Types§

source§

impl<'a, C: PixelColor, const N: usize> DMACapableFrameBufferBackend for &'a mut [C; N]

Safety:

The implementation of the trait for all lifetimes 'a is safe. However, this doesn’t mean that the use of it is safe for all lifetimes. The requirements specified in embedded_dma::ReadBuffer::read_buffer remain.

Implementors§

source§

impl<'a, C> DMACapableFrameBufferBackend for EndianCorrectedBuffer<'a, C>where C: IntoStorage<Storage = u16> + PixelColor + From<RawU16>, RawU16: From<C>,