Trait esp32c2_hal::dma::RxPrivate
source · pub trait RxPrivate {
Show 19 methods
// Required methods
fn init(&mut self, burst_mode: bool, priority: DmaPriority);
fn init_channel(&mut self);
fn prepare_transfer_without_start(
&mut self,
circular: bool,
peri: DmaPeripheral,
data: *mut u8,
len: usize
) -> Result<(), DmaError>;
fn start_transfer(&mut self) -> Result<(), DmaError>;
fn listen_ch_in_done(&self);
fn clear_ch_in_done(&self);
fn is_ch_in_done_set(&self) -> bool;
fn unlisten_ch_in_done(&self);
fn is_listening_ch_in_done(&self) -> bool;
fn is_done(&self) -> bool;
fn is_listening_eof(&self) -> bool;
fn listen_eof(&self);
fn unlisten_eof(&self);
fn available(&mut self) -> usize;
fn pop(&mut self, data: &mut [u8]) -> Result<usize, DmaError>;
fn drain_buffer(&mut self, dst: &mut [u8]) -> Result<usize, DmaError>;
fn has_error(&self) -> bool;
fn has_dscr_empty_error(&self) -> bool;
fn has_eof_error(&self) -> bool;
}
Expand description
The functions here are not meant to be used outside the HAL
Required Methods§
fn init(&mut self, burst_mode: bool, priority: DmaPriority)
fn init_channel(&mut self)
fn prepare_transfer_without_start( &mut self, circular: bool, peri: DmaPeripheral, data: *mut u8, len: usize ) -> Result<(), DmaError>
fn start_transfer(&mut self) -> Result<(), DmaError>
fn listen_ch_in_done(&self)
fn clear_ch_in_done(&self)
fn is_ch_in_done_set(&self) -> bool
fn unlisten_ch_in_done(&self)
fn is_listening_ch_in_done(&self) -> bool
fn is_done(&self) -> bool
fn is_listening_eof(&self) -> bool
fn listen_eof(&self)
fn unlisten_eof(&self)
fn available(&mut self) -> usize
fn pop(&mut self, data: &mut [u8]) -> Result<usize, DmaError>
fn drain_buffer(&mut self, dst: &mut [u8]) -> Result<usize, DmaError>
sourcefn has_dscr_empty_error(&self) -> bool
fn has_dscr_empty_error(&self) -> bool
ERR_DSCR_EMPTY error detected
sourcefn has_eof_error(&self) -> bool
fn has_eof_error(&self) -> bool
ERR_EOF error detected