pub struct DmaChannel<'a> { /* private fields */ }Implementations§
Source§impl<'a> DmaChannel<'a>
impl<'a> DmaChannel<'a>
pub const fn new(dma: &'a Dma<'a>, ch: Channel) -> Self
pub fn set_client(&self, client: &'a dyn DmaChannelClient)
Source§impl DmaChannel<'_>
impl DmaChannel<'_>
pub fn trans_count(&self) -> u32
pub fn busy(&self) -> bool
pub fn set_read_addr(&self, addr: u32)
pub fn set_write_addr(&self, addr: u32)
pub fn set_len(&self, len: u32)
pub fn enable_interrupt(&self, irq: Irq)
pub fn disable_interrupt(&self, irq: Irq)
pub fn enable( &self, treq: DmaPeripheral, data_size: DataSize, transfer: Transfer, bswap: bool, )
Trait Implementations§
Source§impl<'a> Clone for DmaChannel<'a>
impl<'a> Clone for DmaChannel<'a>
Source§fn clone(&self) -> DmaChannel<'a>
fn clone(&self) -> DmaChannel<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for DmaChannel<'a>
Auto Trait Implementations§
impl<'a> Freeze for DmaChannel<'a>
impl<'a> !RefUnwindSafe for DmaChannel<'a>
impl<'a> !Send for DmaChannel<'a>
impl<'a> !Sync for DmaChannel<'a>
impl<'a> Unpin for DmaChannel<'a>
impl<'a> !UnwindSafe for DmaChannel<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more