pub fn read_bits(&mut self, reg: u8, start_bit: u8, length: u8) -> Result<u8, Mpu6050Error<E>> {
        let mut byte: [u8; 1] = [0; 1];
        self.read_bytes(reg, &mut byte)?;
        Ok(bits::get_bits(byte[0], start_bit, length))
    }
/// Read bits at register reg, starting with bit start_bit, until start_bit+length
Read bits at register reg, starting with bit start_bit, until start_bit+length
Read bits at register reg starting with bit start_bit until start_bit + length
pub fn read_bits(&mut self, reg: u8, start_bit: u8, length: u8) -> Result<u8, Mpu6050Error<E>> {
        let mut byte: [u8; 1] = [0; 1];
        self.read_bytes(reg, &mut byte)?;
        Ok(bits::get_bits(byte[0], start_bit, length))
    }
pub fn read_bits ( & mut self , reg : u8 , start_bit : u8 , length : u8 ) -> Result < u8 , Mpu6050Error < E > > { let mut byte : [ u8 ; 1 ] = [ 0 ; 1 ] ; self . read_bytes ( reg , & mut byte ) ? ; Ok ( bits :: get_bits ( byte [ 0 ] , start_bit , length ) ) }
Read bits at register reg, starting with bit start_bit, until start_bit+length
Read bits at register reg starting with bit start_bit until start_bit + length
&mut self
reg
u8
start_bit
u8
length
u8
&mut self
reg
u8
start_bit
u8
length
u8