SpiCommon

Trait SpiCommon 

Source
pub trait SpiCommon {
    type MSck;
    type SSck;
    type Mi<PULL>;
    type So<Otype>;
    type Mo;
    type Si<PULL>;
    type Nss;
    type Ss<PULL>;
}
Expand description

SPI pins

Required Associated Types§

Source

type MSck

Master Serial Clock

Alternate function push-pull

Source

type SSck

Slave Serial Clock

Input floating

Source

type Mi<PULL>

Master In

Input floating / Input pull-up

Source

type So<Otype>

Slave Out

Alternate function push-pull / open drain

Source

type Mo

Master Out

Alternate function push-pull

Source

type Si<PULL>

Slave In

Input floating / Input pull-up

Source

type Nss

HW Slave Select (output)

Alternate function push-pull

Source

type Ss<PULL>

HW Slave Select (input)

Input floating/ Input pull-up / Input pull-down

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.

Implementors§

Source§

impl SpiCommon for SPI1

Source§

type MSck = MSck

Source§

type SSck = SSck

Source§

type Mi<PULL> = Mi<PULL>

Source§

type So<Otype> = So<Otype>

Source§

type Mo = Mo

Source§

type Si<PULL> = Si<PULL>

Source§

type Nss = Nss

Source§

type Ss<PULL> = Ss<PULL>

Source§

impl SpiCommon for SPI2

Source§

type MSck = MSck

Source§

type SSck = SSck

Source§

type Mi<PULL> = Mi<PULL>

Source§

type So<Otype> = So<Otype>

Source§

type Mo = Mo

Source§

type Si<PULL> = Si<PULL>

Source§

type Nss = Nss

Source§

type Ss<PULL> = Ss<PULL>

Source§

impl SpiCommon for SPI3

Source§

type MSck = MSck

Source§

type SSck = SSck

Source§

type Mi<PULL> = Mi<PULL>

Source§

type So<Otype> = So<Otype>

Source§

type Mo = Mo

Source§

type Si<PULL> = Si<PULL>

Source§

type Nss = Nss

Source§

type Ss<PULL> = Ss<PULL>