Enum avr_hal_generic::usart::Event
source · #[repr(u8)]pub enum Event {
RxComplete = 0,
TxComplete = 1,
DataRegisterEmpty = 2,
}
Expand description
Events/Interrupts for USART peripherals
Variants§
RxComplete = 0
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 = 1
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 = 2
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§
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