Struct Controller

Source
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,

Source

pub fn new(iface: T) -> Controller<T>

Source

pub fn nop(&self)

Source

pub fn software_reset(&self)

Source

pub fn read_display_identification(&self) -> DisplayIdentification

Source

pub fn read_display_status(&self) -> DisplayStatus

Source

pub fn read_display_power_mode(&self) -> DisplayPowerMode

Source

pub fn read_display_madctl(&self) -> MADCtl

Source

pub fn read_pixel_format(&self) -> PixelFormat

Source

pub fn read_image_format(&self) -> ImageFormat

Source

pub fn read_signal_mode(&self) -> SignalMode

Source

pub fn read_self_diagnostic_result(&self) -> SelfDiagnosticResult

Source

pub fn enter_sleep_mode(&self)

Source

pub fn sleep_out(&self)

Source

pub fn partial_mode_on(&self)

Source

pub fn normal_display_mode_on(&self)

Source

pub fn display_inversion(&self, on: bool)

Source

pub fn gamma_set(&self, gc: u8)

Source

pub fn display(&self, on: bool)

Source

pub fn column_address_set(&self, sc: u16, ec: u16)

Source

pub fn page_address_set(&self, sp: u16, ep: u16)

Source

pub fn memory_write_start(&self)

Source

pub fn color_set(&self, data: &[u8; 128])

Source

pub fn memory_read_start(&self)

Source

pub fn partial_area(&self, sr: u16, er: u16)

Source

pub fn vertical_scrolling_definition(&self, tfa: u16, vsa: u16, bfa: u16)

Source

pub fn tearing_effect(&self, mode: TearingEffect)

Source

pub fn memory_access_control(&self, value: MemoryAccessControl)

Source

pub fn vertical_scrolling_start_address(&self, vsp: u16)

Source

pub fn idle_mode(&self, on: bool)

Source

pub fn pixel_format_set(&self, value: PixelFormat)

Source

pub fn write_memory_continue(&self)

Source

pub fn write_memory<I>(&self, iterable: I)
where I: IntoIterator<Item = u32>,

Source

pub fn read_memory_continue(&self)

Source

pub fn read_memory(&self, data: &mut [u32])

Source

pub fn set_tear_scanline(&self, sts: u16)

Source

pub fn get_scanline(&self) -> u16

Source

pub fn write_display_brightness(&self, dbv: u8)

Source

pub fn read_display_brightness(&self) -> u8

Source

pub fn write_ctrl_display(&self, value: CtrlDisplay)

Source

pub fn read_ctrl_display(&self) -> CtrlDisplay

Source

pub fn write_cabc(&self, c: u8)

Source

pub fn read_cabc(&self) -> u8

Source

pub fn write_cabc_minimum_brightness(&self, cmb: u8)

Source

pub fn read_cabc_minimum_brightness(&self) -> u8

Source

pub fn read_id1(&self) -> u8

Source

pub fn read_id2(&self) -> u8

Source

pub fn read_id3(&self) -> u8

Trait Implementations§

Source§

impl<T> Clone for Controller<T>
where T: Interface + Clone,

Source§

fn clone(&self) -> Controller<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Copy for Controller<T>
where T: Interface + Copy,

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.