Enum Event

Source
pub enum Event {
Show 14 variants TXFT = 134_217_728, RXFT = 67_108_864, RXFF = 16_777_216, TXFE = 8_388_608, BUSY = 65_536, RTOF = 2_048, Txe = 128, TC = 64, Rxne = 32, Idle = 16, ORE = 8, NE = 4, FE = 2, PE = 1,
}
Expand description

Interrupt event

Variants§

§

TXFT = 134_217_728

TXFIFO reaches the threshold

§

RXFT = 67_108_864

This bit is set by hardware when the threshold programmed in RXFTCFG in USART_CR3 register is reached.

§

RXFF = 16_777_216

RXFIFO full

§

TXFE = 8_388_608

TXFIFO empty

§

BUSY = 65_536

Active when a communication is ongoing on the RX line

§

RTOF = 2_048

Receiver timeout.This bit is set by hardware when the timeout value, programmed in the RTOR register has lapsed, without any communication.

§

Txe = 128

Transmit data register empty. New data can be sent

§

TC = 64

Transmission Complete. The last data written in the USART_TDR has been transmitted out of the shift register.

§

Rxne = 32

New data has been received

§

Idle = 16

Idle line state detected

§

ORE = 8

Overrun error

§

NE = 4

Noise detection flag

§

FE = 2

Framing error

§

PE = 1

Parity error

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.