#[repr(u8)]
pub enum Event {
    RxComplete,
    TxComplete,
    DataRegisterEmpty,
}
Expand description

Events/Interrupts for USART peripherals

Variants

RxComplete

A complete byte was received.

Corresponds to the USART_RX or USART#_RX interrupt. Please refer to the datasheet for your MCU for details.

TxComplete

A compete byte was sent.

Corresponds to the USART_TX or USART#_TX interrupt. Please refer to the datasheet for your MCU for details.

DataRegisterEmpty

All data from the USART data register was transmitted.

Corresponds to the USART_UDRE or USART#_UDRE interrupt. Please refer to the datasheet for your MCU for details.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.