#[repr(u8)]pub enum USART_MODESELECT_A {
NORMAL = 0,
RS485 = 1,
HW_HANDSHAKING = 2,
MODEM = 3,
IS07816_T_0 = 4,
IS07816_T_1 = 6,
IRDA = 8,
LON = 9,
LIN_MASTER = 10,
LIN_SLAVE = 11,
SPI_MASTER = 14,
SPI_SLAVE = 15,
}
Expand description
USART Mode of Operation
Value on reset: 0
Variants§
NORMAL = 0
0: Normal mode
RS485 = 1
1: RS485
HW_HANDSHAKING = 2
2: Hardware handshaking
MODEM = 3
3: Modem
IS07816_T_0 = 4
4: IS07816 Protocol: T = 0
IS07816_T_1 = 6
6: IS07816 Protocol: T = 1
IRDA = 8
8: IrDA
LON = 9
9: LON
LIN_MASTER = 10
10: LIN Master mode
LIN_SLAVE = 11
11: LIN Slave mode
SPI_MASTER = 14
14: SPI Master mode (CLKO must be written to 1 and USCLKS = 0, 1 or 2)
SPI_SLAVE = 15
15: SPI Slave mode
Trait Implementations§
source§impl Clone for USART_MODESELECT_A
impl Clone for USART_MODESELECT_A
source§fn clone(&self) -> USART_MODESELECT_A
fn clone(&self) -> USART_MODESELECT_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_MODESELECT_A
impl Debug for USART_MODESELECT_A
source§impl From<USART_MODESELECT_A> for u8
impl From<USART_MODESELECT_A> for u8
source§fn from(variant: USART_MODESELECT_A) -> Self
fn from(variant: USART_MODESELECT_A) -> Self
Converts to this type from the input type.
source§impl PartialEq for USART_MODESELECT_A
impl PartialEq for USART_MODESELECT_A
source§fn eq(&self, other: &USART_MODESELECT_A) -> bool
fn eq(&self, other: &USART_MODESELECT_A) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for USART_MODESELECT_A
impl Eq for USART_MODESELECT_A
impl StructuralEq for USART_MODESELECT_A
impl StructuralPartialEq for USART_MODESELECT_A
Auto Trait Implementations§
impl RefUnwindSafe for USART_MODESELECT_A
impl Send for USART_MODESELECT_A
impl Sync for USART_MODESELECT_A
impl Unpin for USART_MODESELECT_A
impl UnwindSafe for USART_MODESELECT_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