pub fn abort_xfer(&self) -> Option<&'static mut [u8]> {
        let registers: &DMARegisters = unsafe { &*self.registers };
        registers.interrupt_disable.set(!0);

        // Reset counter
        registers.transfer_counter.set(0);

        self.buffer.take()
    }
/// Aborts any current transactions and returns the buffer used in the
/// transaction.
Aborts any current transactions and returns the buffer used in the
transaction.
Aborts any current transactions and returns the buffer used in the transaction .
pub fn abort_xfer(&self) -> Option<&'static mut [u8]> {
        let registers: &DMARegisters = unsafe { &*self.registers };
        registers.interrupt_disable.set(!0);
        // Reset counter
        registers.transfer_counter.set(0);
        self.buffer.take()
    }
pub fn abort_xfer ( & self ) -> Option < & ' static mut [ u8 ] > { let registers : & DMARegisters = unsafe { & * self . registers } ; registers . interrupt_disable . set ( ! 0 ) ; // Reset counter registers . transfer_counter . set ( 0 ) ; self . buffer . take ( ) }
Aborts any current transactions and returns the buffer used in the
transaction.
Aborts any current transactions and returns the buffer used in the transaction .
&self
&self