pub struct Controller<T>where
T: Interface,{ /* private fields */ }
Expand description
Controller implements the LCD command set and calls on the Interface trait to communicate with the LCD panel.
Implementations§
Source§impl<T> Controller<T>where
T: Interface,
impl<T> Controller<T>where
T: Interface,
pub fn new(iface: T) -> Controller<T>
pub fn nop(&self)
pub fn software_reset(&self)
pub fn read_display_identification(&self) -> DisplayIdentification
pub fn read_display_status(&self) -> DisplayStatus
pub fn read_display_power_mode(&self) -> DisplayPowerMode
pub fn read_display_madctl(&self) -> MADCtl
pub fn read_pixel_format(&self) -> PixelFormat
pub fn read_image_format(&self) -> ImageFormat
pub fn read_signal_mode(&self) -> SignalMode
pub fn read_self_diagnostic_result(&self) -> SelfDiagnosticResult
pub fn enter_sleep_mode(&self)
pub fn sleep_out(&self)
pub fn partial_mode_on(&self)
pub fn normal_display_mode_on(&self)
pub fn display_inversion(&self, on: bool)
pub fn gamma_set(&self, gc: u8)
pub fn display(&self, on: bool)
pub fn column_address_set(&self, sc: u16, ec: u16)
pub fn page_address_set(&self, sp: u16, ep: u16)
pub fn memory_write_start(&self)
pub fn color_set(&self, data: &[u8; 128])
pub fn memory_read_start(&self)
pub fn partial_area(&self, sr: u16, er: u16)
pub fn vertical_scrolling_definition(&self, tfa: u16, vsa: u16, bfa: u16)
pub fn tearing_effect(&self, mode: TearingEffect)
pub fn memory_access_control(&self, value: MemoryAccessControl)
pub fn vertical_scrolling_start_address(&self, vsp: u16)
pub fn idle_mode(&self, on: bool)
pub fn pixel_format_set(&self, value: PixelFormat)
pub fn write_memory_continue(&self)
pub fn write_memory<I>(&self, iterable: I)where
I: IntoIterator<Item = u32>,
pub fn read_memory_continue(&self)
pub fn read_memory(&self, data: &mut [u32])
pub fn set_tear_scanline(&self, sts: u16)
pub fn get_scanline(&self) -> u16
pub fn write_display_brightness(&self, dbv: u8)
pub fn read_display_brightness(&self) -> u8
pub fn write_ctrl_display(&self, value: CtrlDisplay)
pub fn read_ctrl_display(&self) -> CtrlDisplay
pub fn write_cabc(&self, c: u8)
pub fn read_cabc(&self) -> u8
pub fn write_cabc_minimum_brightness(&self, cmb: u8)
pub fn read_cabc_minimum_brightness(&self) -> u8
pub fn read_id1(&self) -> u8
pub fn read_id2(&self) -> u8
pub fn read_id3(&self) -> u8
Trait Implementations§
Source§impl<T> Clone for Controller<T>
impl<T> Clone for Controller<T>
Source§fn clone(&self) -> Controller<T>
fn clone(&self) -> Controller<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<T> Copy for Controller<T>
Auto Trait Implementations§
impl<T> Freeze for Controller<T>where
T: Freeze,
impl<T> RefUnwindSafe for Controller<T>where
T: RefUnwindSafe,
impl<T> Send for Controller<T>where
T: Send,
impl<T> Sync for Controller<T>where
T: Sync,
impl<T> Unpin for Controller<T>where
T: Unpin,
impl<T> UnwindSafe for Controller<T>where
T: UnwindSafe,
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