Struct esp32_hal::dma::pdma::Spi2DmaChannelCreator
source · #[non_exhaustive]pub struct Spi2DmaChannelCreator {}
Implementations§
source§impl Spi2DmaChannelCreator
impl Spi2DmaChannelCreator
sourcepub fn configure<'a>(
self,
burst_mode: bool,
tx_descriptors: &'a mut [u32],
rx_descriptors: &'a mut [u32],
priority: DmaPriority
) -> Channel<'a, Spi2DmaChannel>
pub fn configure<'a>( self, burst_mode: bool, tx_descriptors: &'a mut [u32], rx_descriptors: &'a mut [u32], priority: DmaPriority ) -> Channel<'a, Spi2DmaChannel>
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 RefUnwindSafe for Spi2DmaChannelCreator
impl Send for Spi2DmaChannelCreator
impl Sync for Spi2DmaChannelCreator
impl Unpin for Spi2DmaChannelCreator
impl UnwindSafe for Spi2DmaChannelCreator
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