Struct stm32f4xx_hal::fsmc_lcd::Lcd

source ·
pub struct Lcd<S> { /* private fields */ }
Expand description

An interface to an LCD controller using one sub-bank

This struct provides low-level read and write commands that can be used to implement drivers for LCD controllers. Each function corresponds to exactly one transaction on the bus.

Implementations§

source§

impl<S> Lcd<S>
where S: SubBank,

source

pub fn write_data(&mut self, value: u16)

Writes a value with the data/command (address) signals set high

source

pub fn write_command(&mut self, value: u16)

Writes a value with the data/command (address) signals set low

source

pub fn read_data(&self) -> u16

Reads a value with the data/command (address) signals set high

source

pub fn read_command(&self) -> u16

Reads a value with the data/command (address) signals set low

Trait Implementations§

source§

impl<S> WriteOnlyDataCommand for Lcd<S>
where S: SubBank,

source§

fn send_commands(&mut self, cmd: DataFormat<'_>) -> Result<(), DisplayError>

Send a batch of commands to display
source§

fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>

Send pixel data to display
source§

impl<S> WriteOnlyDataCommand for Lcd<S>
where S: SubBank,

source§

fn send_commands(&mut self, cmd: DataFormat<'_>) -> Result<(), DisplayError>

Send a batch of commands to display
source§

fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>

Send pixel data to display

Auto Trait Implementations§

§

impl<S> RefUnwindSafe for Lcd<S>
where S: RefUnwindSafe,

§

impl<S> Send for Lcd<S>
where S: Send,

§

impl<S> Sync for Lcd<S>
where S: Sync,

§

impl<S> Unpin for Lcd<S>
where S: Unpin,

§

impl<S> UnwindSafe for Lcd<S>
where S: 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> 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>,

§

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

§

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.