pub fn start<F>(&mut self, f: F)
    where
        F: FnOnce(&mut PERIPHERAL),
    {
        // Preserve the instruction and bus ordering of preceding buffer access
        // to the subsequent access by the DMA peripheral due to enabling it.
        fence(Ordering::SeqCst);

        unsafe {
            self.stream.enable();
        }
        f(&mut self.peripheral);
    }
/// Starts the transfer. The closure will be executed immediately after
/// enabling the stream.
Starts the transfer. The closure will be executed immediately after
enabling the stream.
Starts the transfer . The closure will be executed immediately after enabling the stream .
pub fn start<F>(&mut self, f: F)
    where
        F: FnOnce(&mut PERIPHERAL),
    {
        // Preserve the instruction and bus ordering of preceding buffer access
        // to the subsequent access by the DMA peripheral due to enabling it.
        fence(Ordering::SeqCst);
        unsafe {
            self.stream.enable();
        }
        f(&mut self.peripheral);
    }
pub fn start < F > ( & mut self , f : F ) where F : FnOnce ( & mut PERIPHERAL ) , { // Preserve the instruction and bus ordering of preceding buffer access // to the subsequent access by the DMA peripheral due to enabling it. fence ( Ordering :: SeqCst ) ; unsafe { self . stream . enable ( ) ; } f ( & mut self . peripheral ) ; }
Starts the transfer.
Starts the transfer .
&mut self
f
F
&mut self
f
F