pub struct Ch<DMA, const C: u8> { /* private fields */ }Implementations§
Source§impl<DMA, const C: u8> Ch<DMA, C>where
DMA: RegisterBlock,
impl<DMA, const C: u8> Ch<DMA, C>where
DMA: RegisterBlock,
pub fn set_priority(&mut self, priority: DmaPriority)
Trait Implementations§
Source§impl<DMA, const C: u8> DmaChannel for Ch<DMA, C>where
DMA: RegisterBlock,
impl<DMA, const C: u8> DmaChannel for Ch<DMA, C>where
DMA: RegisterBlock,
fn start(&mut self)
fn stop(&mut self)
fn set_peripheral_address<T: Sized>( &mut self, address: usize, mem_to_periph: bool, increase: bool, circular: bool, )
fn set_memory_address(&mut self, address: usize, increase: bool)
fn set_transfer_length(&mut self, len: usize)
fn set_memory_to_memory<T: Sized>( &mut self, _src_addr: usize, _dst_addr: usize, _len: usize, )
fn get_left_len(&self) -> usize
fn in_progress(&self) -> bool
fn set_interrupt(&mut self, event: DmaEvent, enable: bool)
fn is_interrupted(&mut self, event: DmaEvent) -> bool
fn set_memory_buf_for_peripheral<T: Sized + Copy>(&mut self, buf: &[T])
Auto Trait Implementations§
impl<DMA, const C: u8> Freeze for Ch<DMA, C>where
DMA: Freeze,
impl<DMA, const C: u8> RefUnwindSafe for Ch<DMA, C>where
DMA: RefUnwindSafe,
impl<DMA, const C: u8> Send for Ch<DMA, C>where
DMA: Send,
impl<DMA, const C: u8> Sync for Ch<DMA, C>where
DMA: Sync,
impl<DMA, const C: u8> Unpin for Ch<DMA, C>where
DMA: Unpin,
impl<DMA, const C: u8> UnwindSafe for Ch<DMA, C>where
DMA: UnwindSafe,
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