Struct embedded_hal_compat::Reverse [−][src]
pub struct Reverse<T> { /* fields omitted */ }
Expand description
Reverse compatibility container object. This is generic over different E-H types and will provide adaption depending on the bound type.
Implementations
Trait Implementations
type Error = E
type Error = E
Error type
type Error = E
type Error = E
Error type
fn write<B>(
&mut self,
address: SevenBitAddress,
words: B
) -> Result<(), Self::Error> where
B: IntoIterator<Item = u8>,
fn write<B>(
&mut self,
address: SevenBitAddress,
words: B
) -> Result<(), Self::Error> where
B: IntoIterator<Item = u8>,
Writes bytes to slave with address address
Read more
type Error = E
type Error = E
Error type
fn write_iter<WI>(&mut self, words: WI) -> Result<(), Self::Error> where
WI: IntoIterator<Item = u8>,
fn write_iter<WI>(&mut self, words: WI) -> Result<(), Self::Error> where
WI: IntoIterator<Item = u8>,
Sends words
to the slave, ignoring all the incoming words
impl<T, E> WriteIterRead<u8> for Reverse<T> where
T: WriteIterRead<SevenBitAddress, Error = E>,
E: Debug,
impl<T, E> WriteIterRead<u8> for Reverse<T> where
T: WriteIterRead<SevenBitAddress, Error = E>,
E: Debug,
type Error = E
type Error = E
Error type
fn write_iter_read<B>(
&mut self,
address: SevenBitAddress,
bytes: B,
buffer: &mut [u8]
) -> Result<(), Self::Error> where
B: IntoIterator<Item = u8>,
fn write_iter_read<B>(
&mut self,
address: SevenBitAddress,
bytes: B,
buffer: &mut [u8]
) -> Result<(), Self::Error> where
B: IntoIterator<Item = u8>,
Writes bytes to slave with address address
and then reads enough bytes to fill buffer
in a
single transaction Read more