#[non_exhaustive]pub struct ChannelCreator2 {}
Implementations§
Source§impl ChannelCreator2
impl ChannelCreator2
Sourcepub fn configure<'a>(
self,
burst_mode: bool,
tx_descriptors: &'a mut [u32],
rx_descriptors: &'a mut [u32],
priority: DmaPriority,
) -> Channel<'a, Channel2>
pub fn configure<'a>( self, burst_mode: bool, tx_descriptors: &'a mut [u32], rx_descriptors: &'a mut [u32], priority: DmaPriority, ) -> Channel<'a, Channel2>
Configure the channel for use
Descriptors should be sized as ((CHUNK_SIZE + 4091) / 4092) * 3
. I.e., to
transfer buffers of size 1..=4092
, you need 3 descriptors. The number of
descriptors must be a multiple of 3.
Auto Trait Implementations§
impl Freeze for ChannelCreator2
impl RefUnwindSafe for ChannelCreator2
impl Send for ChannelCreator2
impl Sync for ChannelCreator2
impl Unpin for ChannelCreator2
impl UnwindSafe for ChannelCreator2
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