Struct gd32f1x0_hal::dma::C1 [−][src]
pub struct C1 { /* fields omitted */ }
Expand description
A singleton that represents a single DMA channel (channel X in this case)
This singleton has exclusive access to the registers of the DMA channel X
Implementations
impl C1
[src]
impl C1
[src]pub fn set_peripheral_address(&mut self, address: u32, inc: bool)
[src]
pub fn set_peripheral_address(&mut self, address: u32, inc: bool)
[src]Associated peripheral address
inc
indicates whether the address will be incremented after every byte transfer
pub fn set_memory_address(&mut self, address: u32, inc: bool)
[src]
pub fn set_memory_address(&mut self, address: u32, inc: bool)
[src]address
where from/to data will be read/write
inc
indicates whether the address will be incremented after every byte transfer
pub fn set_transfer_length(&mut self, len: usize)
[src]
pub fn set_transfer_length(&mut self, len: usize)
[src]Number of bytes to transfer
pub fn in_progress(&self) -> bool
[src]
pub fn in_progress(&self) -> bool
[src]Returns true
if there’s a transfer in progress