Trait esp32_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§

source

fn init(&mut self, burst_mode: bool, priority: DmaPriority)

source

fn init_channel(&mut self)

source

fn prepare_transfer_without_start( &mut self, circular: bool, peri: DmaPeripheral, data: *mut u8, len: usize ) -> Result<(), DmaError>

source

fn start_transfer(&mut self) -> Result<(), DmaError>

source

fn listen_ch_in_done(&self)

source

fn clear_ch_in_done(&self)

source

fn is_ch_in_done_set(&self) -> bool

source

fn unlisten_ch_in_done(&self)

source

fn is_listening_ch_in_done(&self) -> bool

source

fn is_done(&self) -> bool

source

fn is_listening_eof(&self) -> bool

source

fn listen_eof(&self)

source

fn unlisten_eof(&self)

source

fn available(&mut self) -> usize

source

fn pop(&mut self, data: &mut [u8]) -> Result<usize, DmaError>

source

fn drain_buffer(&mut self, dst: &mut [u8]) -> Result<usize, DmaError>

source

fn has_error(&self) -> bool

Descriptor error detected

source

fn has_dscr_empty_error(&self) -> bool

ERR_DSCR_EMPTY error detected

source

fn has_eof_error(&self) -> bool

ERR_EOF error detected

Implementors§

source§

impl<'a, T, R> RxPrivate for ChannelRx<'a, T, R>
where T: RxChannel<R>, R: RegisterAccess,