pub struct LcdPins<D, AD, NE> {
    pub data: D,
    pub address: AD,
    pub read_enable: Noe,
    pub write_enable: Nwe,
    pub chip_select: NE,
}
Expand description

A set of pins used to interface with an LCD

The address and enable fields can be individual pins, or tuples of 2, 3, or 4 pins.

Fields§

§data: D

The 16-bit data bus

§address: AD

Address pin(s) (data/command)

§read_enable: Noe

Output enable (read enable)

§write_enable: Nwe

Write enable

§chip_select: NE

Chip select / bank enable pin(s)

Implementations§

source§

impl<D, AD, NE> LcdPins<D, AD, NE>
where D: DataPins, AD: AddressPins, NE: ChipSelectPins,

source

pub fn new( data: D, address: AD, read_enable: impl Into<Noe>, write_enable: impl Into<Nwe>, chip_select: NE ) -> Self

source

pub fn split(self) -> (D, AD, Noe, Nwe, NE)

Trait Implementations§

source§

impl<D, AD, NE> Pins for LcdPins<D, AD, NE>
where D: DataPins, AD: AddressPins, NE: ChipSelectPins,

§

type Lcds = <NE as ChipSelectPins>::Lcds

One, two, three, or four Lcd<_> objects associated with the sub-bank(s) that the chip select pin pin(s) control

Auto Trait Implementations§

§

impl<D, AD, NE> RefUnwindSafe for LcdPins<D, AD, NE>

§

impl<D, AD, NE> Send for LcdPins<D, AD, NE>
where AD: Send, D: Send, NE: Send,

§

impl<D, AD, NE> Sync for LcdPins<D, AD, NE>
where AD: Sync, D: Sync, NE: Sync,

§

impl<D, AD, NE> Unpin for LcdPins<D, AD, NE>
where AD: Unpin, D: Unpin, NE: Unpin,

§

impl<D, AD, NE> UnwindSafe for LcdPins<D, AD, NE>
where AD: UnwindSafe, D: UnwindSafe, NE: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.