Trait TxPrivate

Source
pub trait TxPrivate {
Show 16 methods // Required methods 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 is_listening_eof(&self) -> bool; fn listen_eof(&self); fn unlisten_eof(&self); fn available(&mut self) -> usize; fn has_error(&self) -> bool; fn push(&mut self, data: &[u8]) -> Result<usize, DmaError>;
}
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, peri: DmaPeripheral, circular: bool, data: *const u8, len: usize, ) -> Result<(), DmaError>

Source

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

Source

fn clear_ch_out_done(&self)

Source

fn is_ch_out_done_set(&self) -> bool

Source

fn listen_ch_out_done(&self)

Source

fn unlisten_ch_out_done(&self)

Source

fn is_listening_ch_out_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 has_error(&self) -> bool

Source

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

Implementors§

Source§

impl<'a, T, R> TxPrivate for ChannelTx<'a, T, R>
where T: TxChannel<R>, R: RegisterAccess,