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