[−][src]Trait embedded_display_controller::DisplayControllerLayer
A layer of a microcontroller peripheral that drives a LCD-TFT display.
May be implemented alongside DisplayController
if the LCD-TFT display
peripheral only supports one layer.
Required methods
pub unsafe fn enable<T: PixelWord>(
&mut self,
start_ptr: *const T,
pixel_format: PixelFormat
)
[src]
&mut self,
start_ptr: *const T,
pixel_format: PixelFormat
)
pub unsafe fn swap_framebuffer<T: PixelWord>(&mut self, start_ptr: *const T)
[src]
Swap the framebuffer to a new one.
Safety
start_ptr
must point to a location that can be accessed by the LTDC
peripheral, with sufficient length for the framebuffer.
pub fn is_swap_pending(&self) -> bool
[src]
Indicates that a framebuffer swap is pending. In this situation, memory
we previously supplied to
swap_framebuffer
, before the most recent
call, is still owned by the display.
pub unsafe fn resize_buffer_pitch(&mut self, width: u32)
[src]
Resizes the framebuffer pitch. This does not change the output window size. The shadow registers are reloaded immediately.
The framebuffer pitch is the increment from the start of one line of pixels to the start of the next line.
Safety
The caller must ensure that enough memory is allocated for the resulting framebuffer size