Trait esp32c2_hal::spi::slave::InstanceDma
source · pub trait InstanceDma<TX, RX>: Instancewhere
TX: Tx,
RX: Rx,{
// Provided methods
fn start_transfer_dma(
&mut self,
write_buffer_ptr: *const u8,
write_buffer_len: usize,
read_buffer_ptr: *mut u8,
read_buffer_len: usize,
tx: &mut TX,
rx: &mut RX
) -> Result<(), Error> { ... }
fn start_write_bytes_dma(
&mut self,
ptr: *const u8,
len: usize,
tx: &mut TX
) -> Result<(), Error> { ... }
fn start_read_bytes_dma(
&mut self,
ptr: *mut u8,
len: usize,
rx: &mut RX
) -> Result<(), Error> { ... }
fn dma_peripheral(&self) -> DmaPeripheral { ... }
fn enable_dma(&self) { ... }
fn clear_dma_interrupts(&self) { ... }
}
Provided Methods§
fn start_transfer_dma( &mut self, write_buffer_ptr: *const u8, write_buffer_len: usize, read_buffer_ptr: *mut u8, read_buffer_len: usize, tx: &mut TX, rx: &mut RX ) -> Result<(), Error>
fn start_write_bytes_dma( &mut self, ptr: *const u8, len: usize, tx: &mut TX ) -> Result<(), Error>
fn start_read_bytes_dma( &mut self, ptr: *mut u8, len: usize, rx: &mut RX ) -> Result<(), Error>
fn dma_peripheral(&self) -> DmaPeripheral
fn enable_dma(&self)
fn clear_dma_interrupts(&self)
Object Safety§
This trait is not object safe.