Struct capsules_extra::st77xx::ST77XX
source · pub struct ST77XX<'a, A: Alarm<'a>, B: Bus<'a, BusAddr8>, P: Pin> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a, A: Alarm<'a>, B: Bus<'a, BusAddr8>, P: Pin> Screen<'a> for ST77XX<'a, A, B, P>
impl<'a, A: Alarm<'a>, B: Bus<'a, BusAddr8>, P: Pin> Screen<'a> for ST77XX<'a, A, B, P>
source§fn get_resolution(&self) -> (usize, usize)
fn get_resolution(&self) -> (usize, usize)
Get a tuple
(width, height)
with the current resolution (in pixels). Read moresource§fn get_pixel_format(&self) -> ScreenPixelFormat
fn get_pixel_format(&self) -> ScreenPixelFormat
Get the current pixel format. Read more
source§fn get_rotation(&self) -> ScreenRotation
fn get_rotation(&self) -> ScreenRotation
Get the current rotation. Read more
source§fn set_write_frame(
&self,
x: usize,
y: usize,
width: usize,
height: usize,
) -> Result<(), ErrorCode>
fn set_write_frame( &self, x: usize, y: usize, width: usize, height: usize, ) -> Result<(), ErrorCode>
Sets the write frame. Read more
source§fn write(
&self,
data: SubSliceMut<'static, u8>,
continue_write: bool,
) -> Result<(), ErrorCode>
fn write( &self, data: SubSliceMut<'static, u8>, continue_write: bool, ) -> Result<(), ErrorCode>
Write data from
buffer
to the selected write frame. Read moresource§fn set_client(&self, client: &'a dyn ScreenClient)
fn set_client(&self, client: &'a dyn ScreenClient)
Set the object to receive the asynchronous command callbacks.
source§fn set_brightness(&self, _brightness: u16) -> Result<(), ErrorCode>
fn set_brightness(&self, _brightness: u16) -> Result<(), ErrorCode>
Set the display brightness value. Read more
source§impl<'a, A: Alarm<'a>, B: Bus<'a, BusAddr8>, P: Pin> ScreenSetup<'a> for ST77XX<'a, A, B, P>
impl<'a, A: Alarm<'a>, B: Bus<'a, BusAddr8>, P: Pin> ScreenSetup<'a> for ST77XX<'a, A, B, P>
fn set_client(&self, setup_client: &'a dyn ScreenSetupClient)
source§fn set_resolution(&self, resolution: (usize, usize)) -> Result<(), ErrorCode>
fn set_resolution(&self, resolution: (usize, usize)) -> Result<(), ErrorCode>
Set the screen resolution in pixels with
(X, Y)
. Read moresource§fn set_pixel_format(&self, depth: ScreenPixelFormat) -> Result<(), ErrorCode>
fn set_pixel_format(&self, depth: ScreenPixelFormat) -> Result<(), ErrorCode>
Set the pixel format. Read more
source§fn set_rotation(&self, rotation: ScreenRotation) -> Result<(), ErrorCode>
fn set_rotation(&self, rotation: ScreenRotation) -> Result<(), ErrorCode>
Set the rotation of the display. Read more
source§fn get_num_supported_resolutions(&self) -> usize
fn get_num_supported_resolutions(&self) -> usize
Get the number of supported resolutions. Read more
source§fn get_supported_resolution(&self, index: usize) -> Option<(usize, usize)>
fn get_supported_resolution(&self, index: usize) -> Option<(usize, usize)>
Get the resolution specified by the given index. Read more
source§fn get_num_supported_pixel_formats(&self) -> usize
fn get_num_supported_pixel_formats(&self) -> usize
Get the number of the pixel formats supported. Read more
source§fn get_supported_pixel_format(&self, index: usize) -> Option<ScreenPixelFormat>
fn get_supported_pixel_format(&self, index: usize) -> Option<ScreenPixelFormat>
Get the pixel format specified by the given index. Read more
Auto Trait Implementations§
impl<'a, A, B, P> !Freeze for ST77XX<'a, A, B, P>
impl<'a, A, B, P> !RefUnwindSafe for ST77XX<'a, A, B, P>
impl<'a, A, B, P> !Send for ST77XX<'a, A, B, P>
impl<'a, A, B, P> !Sync for ST77XX<'a, A, B, P>
impl<'a, A, B, P> Unpin for ST77XX<'a, A, B, P>
impl<'a, A, B, P> !UnwindSafe for ST77XX<'a, A, B, P>
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