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,
impl<S> Lcd<S>where
S: SubBank,
sourcepub fn write_data(&mut self, value: u16)
pub fn write_data(&mut self, value: u16)
Writes a value with the data/command (address) signals set high
sourcepub fn write_command(&mut self, value: u16)
pub fn write_command(&mut self, value: u16)
Writes a value with the data/command (address) signals set low
sourcepub fn read_command(&self) -> u16
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,
impl<S> WriteOnlyDataCommand for Lcd<S>where
S: SubBank,
source§fn send_commands(&mut self, cmd: DataFormat<'_>) -> Result<(), DisplayError>
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>
fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
Send pixel data to display
source§impl<S> WriteOnlyDataCommand for Lcd<S>where
S: SubBank,
impl<S> WriteOnlyDataCommand for Lcd<S>where
S: SubBank,
source§fn send_commands(&mut self, cmd: DataFormat<'_>) -> Result<(), DisplayError>
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>
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> 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