Trait stm32f4xx_hal::serial::RxListen
source · 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§
sourcefn listen(&mut self)
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.
sourcefn listen_idle(&mut self)
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.
sourcefn unlisten_idle(&mut self)
fn unlisten_idle(&mut self)
Stop listening for the line idle interrupt event