Struct display_interface_parallel_gpio::PGPIO16BitInterface[][src]

pub struct PGPIO16BitInterface<BUS, DC, WR> { /* fields omitted */ }
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

impl<BUS, DC, WR> PGPIO16BitInterface<BUS, DC, WR> where
    BUS: OutputBus<Word = u16>,
    DC: OutputPin,
    WR: OutputPin
[src]

pub fn new(bus: BUS, dc: DC, wr: WR) -> Self[src]

Create new parallel GPIO interface for communication with a display driver

pub fn release(self) -> (BUS, DC, WR)[src]

Consume the display interface and return the bus and GPIO pins used by it

Trait Implementations

impl<BUS, DC, WR> WriteOnlyDataCommand for PGPIO16BitInterface<BUS, DC, WR> where
    BUS: OutputBus<Word = u16>,
    DC: OutputPin,
    WR: OutputPin
[src]

fn send_commands(&mut self, cmds: DataFormat<'_>) -> Result<(), DisplayError>[src]

Send a batch of commands to display

fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>[src]

Send pixel data to display

Auto Trait Implementations

impl<BUS, DC, WR> Send for PGPIO16BitInterface<BUS, DC, WR> where
    BUS: Send,
    DC: Send,
    WR: Send

impl<BUS, DC, WR> Sync for PGPIO16BitInterface<BUS, DC, WR> where
    BUS: Sync,
    DC: Sync,
    WR: Sync

impl<BUS, DC, WR> Unpin for PGPIO16BitInterface<BUS, DC, WR> where
    BUS: Unpin,
    DC: Unpin,
    WR: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.