pub struct PGPIO16BitInterface<BUS, DC, WR> { /* private fields */ }
Expand description
Parallel 16 Bit communication interface
This interface implements a 16-Bit “8080” style write-only display interface using any
16-bit OutputBus implementation as well as one
OutputPin
for the data/command selection and one OutputPin
for the write-enable flag.
All pins are supposed to be high-active, high for the D/C pin meaning “data” and the write-enable being pulled low before the setting of the bits and supposed to be sampled at a low to high edge.
Implementations§
Source§impl<BUS, DC, WR> PGPIO16BitInterface<BUS, DC, WR>
impl<BUS, DC, WR> PGPIO16BitInterface<BUS, DC, WR>
Sourcepub fn new(bus: BUS, dc: DC, wr: WR) -> Self
pub fn new(bus: BUS, dc: DC, wr: WR) -> Self
Create new parallel GPIO interface for communication with a display driver
Sourcepub fn release(self) -> (BUS, DC, WR)
pub fn release(self) -> (BUS, DC, WR)
Consume the display interface and return the bus and GPIO pins used by it
Trait Implementations§
Source§impl<BUS, DC, WR> WriteOnlyDataCommand for PGPIO16BitInterface<BUS, DC, WR>
impl<BUS, DC, WR> WriteOnlyDataCommand for PGPIO16BitInterface<BUS, DC, WR>
Source§fn send_commands(&mut self, cmds: DataFormat<'_>) -> Result<(), DisplayError>
fn send_commands(&mut self, cmds: 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<BUS, DC, WR> Freeze for PGPIO16BitInterface<BUS, DC, WR>
impl<BUS, DC, WR> RefUnwindSafe for PGPIO16BitInterface<BUS, DC, WR>
impl<BUS, DC, WR> Send for PGPIO16BitInterface<BUS, DC, WR>
impl<BUS, DC, WR> Sync for PGPIO16BitInterface<BUS, DC, WR>
impl<BUS, DC, WR> Unpin for PGPIO16BitInterface<BUS, DC, WR>
impl<BUS, DC, WR> UnwindSafe for PGPIO16BitInterface<BUS, DC, WR>
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