Trait display_interface_parallel_gpio::WriteOnlyDataCommand [−][src]
pub trait WriteOnlyDataCommand { fn send_commands(&mut self, cmd: DataFormat<'_>) -> Result<(), DisplayError>; fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>; }
Expand description
This trait implements a write-only interface for a display which has separate data and command modes. It is the responsibility of implementations to activate the correct mode in their implementation when corresponding method is called.
Required methods
fn send_commands(&mut self, cmd: DataFormat<'_>) -> Result<(), DisplayError>
[src]
Expand description
Send a batch of commands to display
fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
[src]
Expand description
Send pixel data to display
Implementors
impl<BUS, DC, WR> WriteOnlyDataCommand for PGPIO8BitInterface<BUS, DC, WR> where
BUS: OutputBus<Word = u8>,
DC: OutputPin,
WR: OutputPin,
[src]
impl<BUS, DC, WR> WriteOnlyDataCommand for PGPIO8BitInterface<BUS, DC, WR> where
BUS: OutputBus<Word = u8>,
DC: OutputPin,
WR: OutputPin,
[src]fn send_commands(&mut self, cmds: DataFormat<'_>) -> Result<(), DisplayError>
[src]
fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
[src]
impl<BUS, DC, WR> WriteOnlyDataCommand for PGPIO16BitInterface<BUS, DC, WR> where
BUS: OutputBus<Word = u16>,
DC: OutputPin,
WR: OutputPin,
[src]
impl<BUS, DC, WR> WriteOnlyDataCommand for PGPIO16BitInterface<BUS, DC, WR> where
BUS: OutputBus<Word = u16>,
DC: OutputPin,
WR: OutputPin,
[src]