pub trait RxPrivate {
    // Required methods
    fn init(&mut self, burst_mode: bool, priority: DmaPriority);
    fn init_channel(&mut self);
    fn prepare_transfer(
        &mut self,
        circular: bool,
        peri: DmaPeripheral,
        data: *mut u8,
        len: usize
    ) -> Result<(), DmaError>;
    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>;
}
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( &mut self, circular: bool, peri: DmaPeripheral, data: *mut u8, len: usize ) -> Result<(), DmaError>

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>

Implementors§

source§

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