pub struct Channel<C: Instance> { /* private fields */ }Expand description
DTC transfer channel.
DTC has no channels per se, instead transfers are bound to interrupts which are then bound to specific events.
Implementations§
Source§impl<C: Instance> Channel<C>
impl<C: Instance> Channel<C>
Sourcepub fn new<'d>(
peri: Peri<'d, C>,
irqs: impl Binding<C::Int, DtcInterruptHandler<C>>,
) -> Self
pub fn new<'d>( peri: Peri<'d, C>, irqs: impl Binding<C::Int, DtcInterruptHandler<C>>, ) -> Self
Constructs a new Dtc driver bound to an interrupt.
Sourcepub unsafe fn copy_slice<'d, W: Word>(
&mut self,
source: &'d [W],
dest: &'d mut [W],
increment_on: InterruptEvent,
) -> Transfer<'d, C> ⓘ
pub unsafe fn copy_slice<'d, W: Word>( &mut self, source: &'d [W], dest: &'d mut [W], increment_on: InterruptEvent, ) -> Transfer<'d, C> ⓘ
Copies the contents of source to dest.
§Arguments
sourceSlice to copy from.destSlice to write to.increment_onAnInterruptEventused to start the transfer. Can be used withSoftwareEvent.
Trait Implementations§
Auto Trait Implementations§
impl<C> Forget for Channel<C>
impl<C> Freeze for Channel<C>where
PhantomData<C>: Freeze,
impl<C> Move for Channel<C>
impl<C> RefUnwindSafe for Channel<C>where
PhantomData<C>: RefUnwindSafe,
impl<C> Send for Channel<C>where
PhantomData<C>: Send,
impl<C> Sync for Channel<C>where
PhantomData<C>: Sync,
impl<C> Unpin for Channel<C>where
PhantomData<C>: Unpin,
impl<C> UnsafeUnpin for Channel<C>where
PhantomData<C>: UnsafeUnpin,
impl<C> UnwindSafe for Channel<C>where
PhantomData<C>: 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