fn disable(&self) {
        self.slave_enabled.set(false);

        self.slave_registers.map(|slave_registers| {
            let regs: &TWISRegisters = unsafe { &*slave_registers };

            regs.control.set(0);
            self.slave_clock.map(|slave_clock| unsafe {
                pm::disable_clock(slave_clock);
            });
        });
        self.slave_disable_interrupts();
    }
/// This disables the entire I2C peripheral
This disables the entire I2C peripheral
This disables the entire I2C peripheral
fn disable(&self) {
        self.slave_enabled.set(false);
        self.slave_registers.map(|slave_registers| {
            let regs: &TWISRegisters = unsafe { &*slave_registers };
            regs.control.set(0);
            self.slave_clock.map(|slave_clock| unsafe {
                pm::disable_clock(slave_clock);
            });
        });
        self.slave_disable_interrupts();
    }
fn disable ( & self ) { self . slave_enabled . set ( false ) ; self . slave_registers . map ( | slave_registers | { let regs : & TWISRegisters = unsafe { & * slave_registers } ; regs . control . set ( 0 ) ; self . slave_clock . map ( | slave_clock | unsafe { pm :: disable_clock ( slave_clock ) ; } ) ; } ) ; self . slave_disable_interrupts ( ) ; }
This disables the entire I2C peripheral
This disables the entire I2C peripheral
&self
&self