Struct cfap_screen::Screen
source · pub struct Screen<SPI, DC, CS, BUSY, RST, ERR>where
SPI: FullDuplex<u8, Error = ERR>,
DC: OutputPin,
CS: OutputPin,
BUSY: InputPin,
RST: OutputPin,{ /* private fields */ }
Implementations
sourceimpl<SPI, DC, CS, BUSY, RST, ERR> Screen<SPI, DC, CS, BUSY, RST, ERR>where
SPI: FullDuplex<u8, Error = ERR>,
DC: OutputPin,
CS: OutputPin,
BUSY: InputPin,
RST: OutputPin,
impl<SPI, DC, CS, BUSY, RST, ERR> Screen<SPI, DC, CS, BUSY, RST, ERR>where
SPI: FullDuplex<u8, Error = ERR>,
DC: OutputPin,
CS: OutputPin,
BUSY: InputPin,
RST: OutputPin,
pub fn show_full_screen_image(
&mut self,
image: &[u8]
) -> Result<(), ScreenError<ERR>>
sourcepub fn load_partial_image(
&mut self,
x_start: u8,
x_size: u8,
y_start: u16,
y_size: u16,
image: &[u8]
) -> Result<(), ScreenError<ERR>>
pub fn load_partial_image(
&mut self,
x_start: u8,
x_size: u8,
y_start: u16,
y_size: u16,
image: &[u8]
) -> Result<(), ScreenError<ERR>>
x_start
and x_size
are in bytes. y_start
and y_size
are in pixels.
pub fn load_full_update_lut(&mut self) -> Result<(), ERR>
pub fn load_partial_update_lut(&mut self) -> Result<(), ERR>
pub fn power_on(&mut self) -> Result<(), ERR>
pub fn power_off(&mut self) -> Result<(), ERR>
pub fn update_full(&mut self) -> Result<(), ERR>
pub fn update_partial(&mut self) -> Result<(), ERR>
pub fn load_image(&mut self, image: &[u8]) -> Result<(), ERR>
sourcepub fn set_display_area(
&mut self,
x_start: u8,
x_end: u8,
y_start: u16,
y_end: u16
) -> Result<(), ScreenError<ERR>>
pub fn set_display_area(
&mut self,
x_start: u8,
x_end: u8,
y_start: u16,
y_end: u16
) -> Result<(), ScreenError<ERR>>
x_start
and x_end
are in bytes. y_start
and y_end
are in pixels.
x_start
must be less then x_end
and y_start
less than y_end
.
pub fn write_cmd(&mut self, cmd: Command) -> Result<(), ERR>
pub fn write_data(&mut self, data: u8) -> Result<(), ERR>
pub fn write_cmd_string(&mut self, cmd: Command, data: &[u8]) -> Result<(), ERR>
Auto Trait Implementations
impl<SPI, DC, CS, BUSY, RST, ERR> RefUnwindSafe for Screen<SPI, DC, CS, BUSY, RST, ERR>where
BUSY: RefUnwindSafe,
CS: RefUnwindSafe,
DC: RefUnwindSafe,
RST: RefUnwindSafe,
SPI: RefUnwindSafe,
impl<SPI, DC, CS, BUSY, RST, ERR> Send for Screen<SPI, DC, CS, BUSY, RST, ERR>where
BUSY: Send,
CS: Send,
DC: Send,
RST: Send,
SPI: Send,
impl<SPI, DC, CS, BUSY, RST, ERR> Sync for Screen<SPI, DC, CS, BUSY, RST, ERR>where
BUSY: Sync,
CS: Sync,
DC: Sync,
RST: Sync,
SPI: Sync,
impl<SPI, DC, CS, BUSY, RST, ERR> Unpin for Screen<SPI, DC, CS, BUSY, RST, ERR>where
BUSY: Unpin,
CS: Unpin,
DC: Unpin,
RST: Unpin,
SPI: Unpin,
impl<SPI, DC, CS, BUSY, RST, ERR> UnwindSafe for Screen<SPI, DC, CS, BUSY, RST, ERR>where
BUSY: UnwindSafe,
CS: UnwindSafe,
DC: UnwindSafe,
RST: UnwindSafe,
SPI: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more