LcdPins

Struct LcdPins 

Source
pub struct LcdPins<D, AD, NE, WORD> {
    pub data: D,
    pub address: AD,
    pub read_enable: Noe,
    pub write_enable: Nwe,
    pub chip_select: NE,
    /* private fields */
}
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, WORD> LcdPins<D, AD, NE, WORD>
where D: DataPins<WORD>, AD: AddressPins, NE: ChipSelectPins, WORD: Word,

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, WORD> Pins<WORD> for LcdPins<D, AD, NE, WORD>
where D: DataPins<WORD>, AD: AddressPins, NE: ChipSelectPins, WORD: Word,

Source§

type Lcds = <NE as ChipSelectPins>::Lcds<WORD>

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, WORD> Freeze for LcdPins<D, AD, NE, WORD>
where D: Freeze, AD: Freeze, NE: Freeze,

§

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

§

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

§

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

§

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

§

impl<D, AD, NE, WORD> UnwindSafe for LcdPins<D, AD, NE, WORD>
where D: UnwindSafe, AD: UnwindSafe, NE: UnwindSafe, WORD: 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>,

Source§

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>,

Source§

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.