Struct esp32s2_hal::dma::pdma::Spi2DmaChannelCreator
source · 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<ChannelTx<'a, Spi2DmaChannelTxImpl, Spi2DmaChannel>, ChannelRx<'a, Spi2DmaChannelRxImpl, Spi2DmaChannel>, Spi2DmaSuitablePeripheral>
pub fn configure<'a>( self, burst_mode: bool, tx_descriptors: &'a mut [u32], rx_descriptors: &'a mut [u32], priority: DmaPriority ) -> Channel<ChannelTx<'a, Spi2DmaChannelTxImpl, Spi2DmaChannel>, ChannelRx<'a, Spi2DmaChannelRxImpl, Spi2DmaChannel>, Spi2DmaSuitablePeripheral>
Configure the channel for use
Descriptors should be sized as (BUFFERSIZE / 4092) * 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