Struct esp32c2_hal::dma::ChannelTx
source · pub struct ChannelTx<'a, T, R>where
T: TxChannel<R>,
R: RegisterAccess,{
pub descriptors: &'a mut [u32],
pub burst_mode: bool,
pub tx_impl: T,
pub write_offset: usize,
pub write_descr_ptr: *const u32,
pub available: usize,
pub last_seen_handled_descriptor_ptr: *const u32,
pub buffer_start: *const u8,
pub buffer_len: usize,
pub _phantom: PhantomData<R>,
}
Expand description
DMA transmit channel
Fields§
§descriptors: &'a mut [u32]
§burst_mode: bool
§tx_impl: T
§write_offset: usize
§write_descr_ptr: *const u32
§available: usize
§last_seen_handled_descriptor_ptr: *const u32
§buffer_start: *const u8
§buffer_len: usize
§_phantom: PhantomData<R>
Trait Implementations§
source§impl<'a, T, R> TxPrivate for ChannelTx<'a, T, R>where
T: TxChannel<R>,
R: RegisterAccess,
impl<'a, T, R> TxPrivate for ChannelTx<'a, T, R>where T: TxChannel<R>, R: RegisterAccess,
fn init(&mut self, burst_mode: bool, priority: DmaPriority)
fn init_channel(&mut self)
fn prepare_transfer_without_start( &mut self, peri: DmaPeripheral, circular: bool, data: *const u8, len: usize ) -> Result<(), DmaError>
fn start_transfer(&mut self) -> Result<(), DmaError>
fn clear_ch_out_done(&self)
fn is_ch_out_done_set(&self) -> bool
fn listen_ch_out_done(&self)
fn unlisten_ch_out_done(&self)
fn is_listening_ch_out_done(&self) -> bool
fn is_done(&self) -> bool
fn available(&mut self) -> usize
fn push(&mut self, data: &[u8]) -> Result<usize, DmaError>
fn is_listening_eof(&self) -> bool
fn listen_eof(&self)
fn unlisten_eof(&self)
fn has_error(&self) -> bool
impl<'a, T, R> Tx for ChannelTx<'a, T, R>where T: TxChannel<R>, R: RegisterAccess,
Auto Trait Implementations§
impl<'a, T, R> RefUnwindSafe for ChannelTx<'a, T, R>where R: RefUnwindSafe, T: RefUnwindSafe,
impl<'a, T, R> !Send for ChannelTx<'a, T, R>
impl<'a, T, R> !Sync for ChannelTx<'a, T, R>
impl<'a, T, R> Unpin for ChannelTx<'a, T, R>where R: Unpin, T: Unpin,
impl<'a, T, R> !UnwindSafe for ChannelTx<'a, T, R>
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