pub enum EightBit {}
Expand description
CharSize
variant for 8-bit transactions
Trait Implementations
sourceimpl<P, M, A> Transfer<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, A>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
impl<P, M, A> Transfer<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, A>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
sourceimpl<P, M> Write<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Duplex>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> Write<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Duplex>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
Implement Write
for Spi
structs with Duplex
Capability
The transfer accepts a slice of primitive integers, depending on
the CharSize
(u8
or u16
).
sourceimpl<P, M> Write<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Tx>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> Write<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Tx>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
Implement Write
for Spi
structs with Tx
Capability
The transfer accepts a slice of primitive integers, depending on
the CharSize
(u8
or u16
).
Because the Capability
is Tx
, this implementation never
reads the DATA register and ignores all buffer overflow errors.
sourceimpl<P, M> WriteIter<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Duplex>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> WriteIter<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Duplex>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
Implement WriteIter
for Spi
structs with Duplex
Capability
The transfer accepts a slice of primitive integers, depending on
the CharSize
(u8
or u16
).
sourcefn write_iter<WI>(&mut self, words: WI) -> Result<(), Error>where
WI: IntoIterator<Item = Word<EightBit>>,
fn write_iter<WI>(&mut self, words: WI) -> Result<(), Error>where
WI: IntoIterator<Item = Word<EightBit>>,
words
to the slave, ignoring all the incoming wordssourceimpl<P, M> WriteIter<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Tx>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> WriteIter<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Tx>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
Implement WriteIter
for Spi
structs with Tx
Capability
The transfer accepts a slice of primitive integers, depending on
the CharSize
(u8
or u16
).
Because the Capability
is Tx
, this implementation never
reads the DATA register and ignores all buffer overflow errors.
sourcefn write_iter<WI>(&mut self, words: WI) -> Result<(), Error>where
WI: IntoIterator<Item = Word<EightBit>>,
fn write_iter<WI>(&mut self, words: WI) -> Result<(), Error>where
WI: IntoIterator<Item = Word<EightBit>>,
words
to the slave, ignoring all the incoming words