pub trait RxListen {
    // Required methods
    fn listen(&mut self);
    fn unlisten(&mut self);
    fn listen_idle(&mut self);
    fn unlisten_idle(&mut self);
}
Expand description

Trait for listening Rx interrupt events.

Required Methods§

source

fn listen(&mut self)

Start listening for an rx not empty interrupt event

Note, you will also have to enable the corresponding interrupt in the NVIC to start receiving events.

source

fn unlisten(&mut self)

Stop listening for the rx not empty interrupt event

source

fn listen_idle(&mut self)

Start listening for a line idle interrupt event

Note, you will also have to enable the corresponding interrupt in the NVIC to start receiving events.

source

fn unlisten_idle(&mut self)

Stop listening for the line idle interrupt event

Implementors§

source§

impl<UART: Instance, WORD> RxListen for Rx<UART, WORD>
where <UART as Instance>::RegisterBlock: RegisterBlockImpl,