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]

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

pub fn in_progress(&self) -> bool[src]

Returns true if there’s a transfer in progress

pub fn listen(&mut self, event: Event)[src]

pub fn unlisten(&mut self, event: Event)[src]

Auto Trait Implementations

impl Send for C1

impl Sync for C1

impl Unpin for C1

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.