Trait ChipSelectPins

Source
pub trait ChipSelectPins: Sealed {
    type Lcds<WORD: Word>: Conjure;
}
Expand description

One, two, three, or four chip select pins

Due to trait system limitations, this trait is only implemented for pins wrapped in the ChipSelect1, ChipSelect2, ChipSelect3, and ChipSelect4 wrappers.

This trait is implemented for all non-empty subsets of the 4 possible chip select signals. The pins must be in order.

§Example types that implement ChipSelectPins

Wrapped single pins:

  • ChipSelect1<PD7<Alternate<12>>>
  • ChipSelect2<PG9<Alternate<12>>>
  • ChipSelect3<PG10<Alternate<12>>>
  • ChipSelect4<PG12<Alternate<12>>>

Tuples of wrapped pins:

  • (ChipSelect1<PD7<Alternate<12>>>, ChipSelect2<PG9<Alternate<12>>>)
  • (ChipSelect1<PD7<Alternate<12>>>, ChipSelect4<PG4<Alternate<12>>>)
  • (ChipSelect1<PD7<Alternate<12>>>, ChipSelect2<PG9<Alternate<12>>>, ChipSelect3<PG10<Alternate<12>>>, ChipSelect4<PG12<Alternate<12>>>)

Required Associated Types§

Source

type Lcds<WORD: Word>: Conjure

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ChipSelectPins for (Ne1, Ne2)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank1, WORD>, Lcd<SubBank2, WORD>)

Source§

impl ChipSelectPins for (Ne1, Ne2, Ne3)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank1, WORD>, Lcd<SubBank2, WORD>, Lcd<SubBank3, WORD>)

Source§

impl ChipSelectPins for (Ne1, Ne2, Ne3, Ne4)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank1, WORD>, Lcd<SubBank2, WORD>, Lcd<SubBank3, WORD>, Lcd<SubBank4, WORD>)

Source§

impl ChipSelectPins for (Ne1, Ne2, Ne4)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank1, WORD>, Lcd<SubBank2, WORD>, Lcd<SubBank4, WORD>)

Source§

impl ChipSelectPins for (Ne1, Ne3)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank1, WORD>, Lcd<SubBank3, WORD>)

Source§

impl ChipSelectPins for (Ne1, Ne3, Ne4)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank1, WORD>, Lcd<SubBank3, WORD>, Lcd<SubBank4, WORD>)

Source§

impl ChipSelectPins for (Ne1, Ne4)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank1, WORD>, Lcd<SubBank4, WORD>)

Source§

impl ChipSelectPins for (Ne2, Ne3)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank2, WORD>, Lcd<SubBank3, WORD>)

Source§

impl ChipSelectPins for (Ne2, Ne3, Ne4)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank2, WORD>, Lcd<SubBank3, WORD>, Lcd<SubBank4, WORD>)

Source§

impl ChipSelectPins for (Ne2, Ne4)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank2, WORD>, Lcd<SubBank4, WORD>)

Source§

impl ChipSelectPins for (Ne3, Ne4)

Source§

type Lcds<WORD: Word> = (Lcd<SubBank3, WORD>, Lcd<SubBank4, WORD>)

Implementors§