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§
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.
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.