pub enum NineBit {}
Expand description
CharSize
variant for 9-bit transactions
Trait Implementations
sourceimpl<P, M, A> Transfer<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, A> where
Config<P, M, NineBit>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
impl<P, M, A> Transfer<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, A> where
Config<P, M, NineBit>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
sourceimpl<P, M> Write<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Duplex> where
Config<P, M, NineBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> Write<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Duplex> where
Config<P, M, NineBit>: 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<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Tx> where
Config<P, M, NineBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> Write<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Tx> where
Config<P, M, NineBit>: 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<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Duplex> where
Config<P, M, NineBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> WriteIter<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Duplex> where
Config<P, M, NineBit>: 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<NineBit>>,
fn write_iter<WI>(&mut self, words: WI) -> Result<(), Error> where
WI: IntoIterator<Item = Word<NineBit>>,
Sends words
to the slave, ignoring all the incoming words
sourceimpl<P, M> WriteIter<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Tx> where
Config<P, M, NineBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> WriteIter<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Tx> where
Config<P, M, NineBit>: 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<NineBit>>,
fn write_iter<WI>(&mut self, words: WI) -> Result<(), Error> where
WI: IntoIterator<Item = Word<NineBit>>,
Sends words
to the slave, ignoring all the incoming words
Auto Trait Implementations
impl RefUnwindSafe for NineBit
impl Send for NineBit
impl Sync for NineBit
impl Unpin for NineBit
impl UnwindSafe for NineBit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more