pub struct DisplayController<T: 'static + SupportedWord> { /* private fields */ }
Implementations§
Source§impl<T: 'static + SupportedWord> DisplayController<T>
impl<T: 'static + SupportedWord> DisplayController<T>
Sourcepub fn new(
ltdc: LTDC,
dma2d: DMA2D,
_pins: Option<LtdcPins>,
pixel_format: PixelFormat,
config: DisplayConfig,
hse: Option<Hertz>,
) -> DisplayController<T>
pub fn new( ltdc: LTDC, dma2d: DMA2D, _pins: Option<LtdcPins>, pixel_format: PixelFormat, config: DisplayConfig, hse: Option<Hertz>, ) -> DisplayController<T>
Create and configure the DisplayController
Sourcepub fn config_layer(
&mut self,
layer: Layer,
buffer: &'static mut [T],
pixel_format: PixelFormat,
)
pub fn config_layer( &mut self, layer: Layer, buffer: &'static mut [T], pixel_format: PixelFormat, )
Configure the layer
Note : the choice is made (for the sake of simplicity) to make the layer as big as the screen
Color Keying and CLUT are not yet supported
Sourcepub fn enable_layer(&self, layer: Layer)
pub fn enable_layer(&self, layer: Layer)
Enable the layer
Sourcepub fn draw_pixel(&mut self, layer: Layer, x: usize, y: usize, color: T)
pub fn draw_pixel(&mut self, layer: Layer, x: usize, y: usize, color: T)
Draw a pixel at position (x,y) on the given layer
Auto Trait Implementations§
impl<T> Freeze for DisplayController<T>
impl<T> !RefUnwindSafe for DisplayController<T>
impl<T> Send for DisplayController<T>where
T: Send,
impl<T> !Sync for DisplayController<T>
impl<T> Unpin for DisplayController<T>
impl<T> !UnwindSafe for DisplayController<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