Trait TxListen

Source
pub trait TxListen {
    // Required methods
    fn listen(&mut self);
    fn unlisten(&mut self);
}
Expand description

Trait for listening Tx interrupt event.

Required Methods§

Source

fn listen(&mut self)

Start listening for a tx 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 tx empty interrupt event

Implementors§

Source§

impl<UART: Instance, WORD> TxListen for Tx<UART, WORD>