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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more