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