[−][src]Struct display_interface_parallel_gpio::PGPIO8BitInterface
Parallel 8 Bit communication interface
This interface implements an 8-Bit "8080" style write-only display interface using any
embedded_hal
digital::v2::OutputPin
implementation.
For the 8-Bit implementation you need to provide 8 types implementing OutputPin
which
ressemble the bits 0 through 7 (which bit 0 being the LSB and 7 the MSB) 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
impl<P0, P1, P2, P3, P4, P5, P6, P7, DC, WR> PGPIO8BitInterface<P0, P1, P2, P3, P4, P5, P6, P7, DC, WR> where
P0: OutputPin,
P1: OutputPin,
P2: OutputPin,
P3: OutputPin,
P4: OutputPin,
P5: OutputPin,
P6: OutputPin,
P7: OutputPin,
DC: OutputPin,
WR: OutputPin,
[src]
P0: OutputPin,
P1: OutputPin,
P2: OutputPin,
P3: OutputPin,
P4: OutputPin,
P5: OutputPin,
P6: OutputPin,
P7: OutputPin,
DC: OutputPin,
WR: OutputPin,
pub fn new(
p0: P0,
p1: P1,
p2: P2,
p3: P3,
p4: P4,
p5: P5,
p6: P6,
p7: P7,
dc: DC,
wr: WR
) -> Self
[src]
p0: P0,
p1: P1,
p2: P2,
p3: P3,
p4: P4,
p5: P5,
p6: P6,
p7: P7,
dc: DC,
wr: WR
) -> Self
Create new parallel GPIO interface for communication with a display driver
pub fn release(self) -> (P0, P1, P2, P3, P4, P5, P6, P7, DC, WR)
[src]
Consume the display interface and return the GPIO pins used by it
Trait Implementations
impl<P0, P1, P2, P3, P4, P5, P6, P7, DC, WR> WriteOnlyDataCommand for PGPIO8BitInterface<P0, P1, P2, P3, P4, P5, P6, P7, DC, WR> where
P0: OutputPin,
P1: OutputPin,
P2: OutputPin,
P3: OutputPin,
P4: OutputPin,
P5: OutputPin,
P6: OutputPin,
P7: OutputPin,
DC: OutputPin,
WR: OutputPin,
[src]
P0: OutputPin,
P1: OutputPin,
P2: OutputPin,
P3: OutputPin,
P4: OutputPin,
P5: OutputPin,
P6: OutputPin,
P7: OutputPin,
DC: OutputPin,
WR: OutputPin,
fn send_commands(&mut self, cmds: DataFormat) -> Result<(), DisplayError>
[src]
fn send_data(&mut self, buf: DataFormat) -> Result<(), DisplayError>
[src]
Auto Trait Implementations
impl<P0, P1, P2, P3, P4, P5, P6, P7, DC, WR> Send for PGPIO8BitInterface<P0, P1, P2, P3, P4, P5, P6, P7, DC, WR> where
DC: Send,
P0: Send,
P1: Send,
P2: Send,
P3: Send,
P4: Send,
P5: Send,
P6: Send,
P7: Send,
WR: Send,
DC: Send,
P0: Send,
P1: Send,
P2: Send,
P3: Send,
P4: Send,
P5: Send,
P6: Send,
P7: Send,
WR: Send,
impl<P0, P1, P2, P3, P4, P5, P6, P7, DC, WR> Sync for PGPIO8BitInterface<P0, P1, P2, P3, P4, P5, P6, P7, DC, WR> where
DC: Sync,
P0: Sync,
P1: Sync,
P2: Sync,
P3: Sync,
P4: Sync,
P5: Sync,
P6: Sync,
P7: Sync,
WR: Sync,
DC: Sync,
P0: Sync,
P1: Sync,
P2: Sync,
P3: Sync,
P4: Sync,
P5: Sync,
P6: Sync,
P7: Sync,
WR: Sync,
impl<P0, P1, P2, P3, P4, P5, P6, P7, DC, WR> Unpin for PGPIO8BitInterface<P0, P1, P2, P3, P4, P5, P6, P7, DC, WR> where
DC: Unpin,
P0: Unpin,
P1: Unpin,
P2: Unpin,
P3: Unpin,
P4: Unpin,
P5: Unpin,
P6: Unpin,
P7: Unpin,
WR: Unpin,
DC: Unpin,
P0: Unpin,
P1: Unpin,
P2: Unpin,
P3: Unpin,
P4: Unpin,
P5: Unpin,
P6: Unpin,
P7: Unpin,
WR: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,