Enum atsam4n16c_pac::usart0::mr::USART_MODE_A
source · #[repr(u8)]
pub enum USART_MODE_A {
NORMAL,
RS485,
HW_HANDSHAKING,
IS07816_T_0,
IS07816_T_1,
IRDA,
SPI_MASTER,
SPI_SLAVE,
}
Expand description
USART Mode of Operation
Variants§
NORMAL
0: Normal mode
RS485
1: RS485
HW_HANDSHAKING
2: Hardware Handshaking
IS07816_T_0
4: IS07816 Protocol: T = 0
IS07816_T_1
6: IS07816 Protocol: T = 1
IRDA
8: IrDA
SPI_MASTER
14: SPI Master
SPI_SLAVE
15: SPI Slave
Trait Implementations§
source§impl Clone for USART_MODE_A
impl Clone for USART_MODE_A
source§fn clone(&self) -> USART_MODE_A
fn clone(&self) -> USART_MODE_A
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for USART_MODE_A
impl Debug for USART_MODE_A
source§impl From<USART_MODE_A> for u8
impl From<USART_MODE_A> for u8
source§fn from(variant: USART_MODE_A) -> Self
fn from(variant: USART_MODE_A) -> Self
Converts to this type from the input type.
source§impl PartialEq<USART_MODE_A> for USART_MODE_A
impl PartialEq<USART_MODE_A> for USART_MODE_A
source§fn eq(&self, other: &USART_MODE_A) -> bool
fn eq(&self, other: &USART_MODE_A) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for USART_MODE_A
impl Eq for USART_MODE_A
impl StructuralEq for USART_MODE_A
impl StructuralPartialEq for USART_MODE_A
Auto Trait Implementations§
impl RefUnwindSafe for USART_MODE_A
impl Send for USART_MODE_A
impl Sync for USART_MODE_A
impl Unpin for USART_MODE_A
impl UnwindSafe for USART_MODE_A
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