Trait stm32f7xx_hal::prelude::_embedded_hal_blocking_i2c_Read [−][src]
pub trait _embedded_hal_blocking_i2c_Read {
type Error;
fn read(
&mut self,
address: u8,
buffer: &mut [u8]
) -> Result<(), Self::Error>;
}
Expand description
Blocking read
Associated Types
Required methods
Reads enough bytes from slave with address
to fill buffer
I2C Events (contract)
Master: ST SAD+R MAK MAK ... NMAK SP
Slave: SAK B0 B1 ... BN
Where
ST
= start conditionSAD+R
= slave address followed by bit 1 to indicate readingSAK
= slave acknowledgeBi
= ith byte of dataMAK
= master acknowledgeNMAK
= master no acknowledgeSP
= stop condition