Enum atsam4e8c_pac::usart1::mr::USART_MODE_A
source · #[repr(u8)]
pub enum USART_MODE_A {
NORMAL,
RS485,
HW_HANDSHAKING,
MODEM,
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
MODEM
3: Modem
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.