[−][src]Struct stm32f1xx_hal::dma::dma1::C3
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
Methods
impl C3
[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]
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]
Number of bytes to transfer
pub fn start(&mut self)
[src]
Starts the DMA transfer
pub fn stop(&mut self)
[src]
Stops the DMA transfer
impl C3
[src]
pub fn listen(&mut self, event: Event)
[src]
pub fn unlisten(&mut self, event: Event)
[src]
pub fn ch(&mut self) -> &CH
[src]
pub fn isr(&self) -> R
[src]
pub fn ifcr(&self) -> &IFCR
[src]
pub fn get_ndtr(&self) -> u32
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self