Struct nrf51_hal::Twi [−][src]
pub struct Twi<T>(_);
Implementations
Read from an I2C slave.
pub fn write_then_read(
&mut self,
address: u8,
wr_buffer: &[u8],
rd_buffer: &mut [u8]
) -> Result<(), Error>
pub fn write_then_read(
&mut self,
address: u8,
wr_buffer: &[u8],
rd_buffer: &mut [u8]
) -> Result<(), Error>
Write data to an I2C slave, then read data from the slave without triggering a stop condition between the two.