pub struct Lcd<S, WORD> { /* 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, WORD: Word> Lcd<S, WORD>where
S: SubBank,
impl<S, WORD: Word> Lcd<S, WORD>where
S: SubBank,
Sourcepub fn write_data(&mut self, value: WORD)
pub fn write_data(&mut self, value: WORD)
Writes a value with the data/command (address) signals set high
Sourcepub fn write_command(&mut self, value: WORD)
pub fn write_command(&mut self, value: WORD)
Writes a value with the data/command (address) signals set low
Sourcepub fn read_command(&self) -> WORD
pub fn read_command(&self) -> WORD
Reads a value with the data/command (address) signals set low
Trait Implementations§
Source§impl<S> WriteOnlyDataCommand for Lcd<S, u16>where
S: SubBank,
impl<S> WriteOnlyDataCommand for Lcd<S, u16>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, u16>where
S: SubBank,
impl<S> WriteOnlyDataCommand for Lcd<S, u16>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, u8>where
S: SubBank,
impl<S> WriteOnlyDataCommand for Lcd<S, u8>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, u8>where
S: SubBank,
impl<S> WriteOnlyDataCommand for Lcd<S, u8>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, WORD> Freeze for Lcd<S, WORD>
impl<S, WORD> RefUnwindSafe for Lcd<S, WORD>where
S: RefUnwindSafe,
WORD: RefUnwindSafe,
impl<S, WORD> Send for Lcd<S, WORD>
impl<S, WORD> Sync for Lcd<S, WORD>
impl<S, WORD> Unpin for Lcd<S, WORD>
impl<S, WORD> UnwindSafe for Lcd<S, WORD>where
S: UnwindSafe,
WORD: 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