pub fn write_bit(&mut self, reg: u8, bit_n: u8, enable: bool) -> Result<(), Mpu6050Error<E>> {
        let mut byte: [u8; 1] = [0; 1];
        self.read_bytes(reg, &mut byte)?;
        bits::set_bit(&mut byte[0], bit_n, enable);
        Ok(self.write_byte(reg, byte[0])?)
    }
/// Enables bit n at register address reg
Enables bit n at register address reg
Enables bit n at register address reg
pub fn write_bit(&mut self, reg: u8, bit_n: u8, enable: bool) -> Result<(), Mpu6050Error<E>> {
        let mut byte: [u8; 1] = [0; 1];
        self.read_bytes(reg, &mut byte)?;
        bits::set_bit(&mut byte[0], bit_n, enable);
        Ok(self.write_byte(reg, byte[0])?)
    }
pub fn write_bit ( & mut self , reg : u8 , bit_n : u8 , enable : bool ) -> Result < ( ) , Mpu6050Error < E > > { let mut byte : [ u8 ; 1 ] = [ 0 ; 1 ] ; self . read_bytes ( reg , & mut byte ) ? ; bits :: set_bit ( & mut byte [ 0 ] , bit_n , enable ) ; Ok ( self . write_byte ( reg , byte [ 0 ] ) ? ) }
Enables bit n at register address reg
Enables bit n at register address reg
&mut self
reg
u8
bit_n
u8
enable
bool
&mut self
reg
u8
bit_n
u8
enable
bool