pub fn read_bytes(&mut self, reg: u8, buf: &mut [u8]) -> Result<(), Mpu6050Error<E>> {
        self.i2c.write_read(SLAVE_ADDR, &[reg], buf)
            .map_err(Mpu6050Error::I2c)?;
        Ok(())
    }
/// Reads series of bytes into buf from specified reg
Reads series of bytes into buf from specified reg
Reads series of bytes into buf from specified reg
pub fn read_bytes(&mut self, reg: u8, buf: &mut [u8]) -> Result<(), Mpu6050Error<E>> {
        self.i2c.write_read(SLAVE_ADDR, &[reg], buf)
            .map_err(Mpu6050Error::I2c)?;
        Ok(())
    }
pub fn read_bytes ( & mut self , reg : u8 , buf : & mut [ u8 ] ) -> Result < ( ) , Mpu6050Error < E > > { self . i2c . write_read ( SLAVE_ADDR , & [ reg ] , buf ) . map_err ( Mpu6050Error :: I2c ) ? ; Ok ( ( ) ) }
Reads series of bytes into buf from specified reg
Reads series of bytes into buf from specified reg
&mut self
reg
u8
buf
&mut [u8]
&mut self
reg
u8
buf
&mut [u8]