#[repr(u8)]
pub enum USART_MODESELECT_A {
NORMAL,
RS485,
HW_HANDSHAKING,
MODEM,
IS07816_T_0,
IS07816_T_1,
IRDA,
LON,
LIN_MASTER,
LIN_SLAVE,
SPI_MASTER,
SPI_SLAVE,
}
Expand description
USART Mode of Operation
Value on reset: 0
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
LON
9: LON
LIN_MASTER
10: LIN Master mode
LIN_SLAVE
11: LIN Slave mode
SPI_MASTER
14: SPI Master mode (CLKO must be written to 1 and USCLKS = 0, 1 or 2)
SPI_SLAVE
15: SPI Slave mode
Trait Implementations
sourceimpl Clone for USART_MODESELECT_A
impl Clone for USART_MODESELECT_A
sourcefn clone(&self) -> USART_MODESELECT_A
fn clone(&self) -> USART_MODESELECT_A
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for USART_MODESELECT_A
impl Debug for USART_MODESELECT_A
sourceimpl From<USART_MODESELECT_A> for u8
impl From<USART_MODESELECT_A> for u8
sourcefn from(variant: USART_MODESELECT_A) -> Self
fn from(variant: USART_MODESELECT_A) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<USART_MODESELECT_A> for USART_MODESELECT_A
impl PartialEq<USART_MODESELECT_A> for USART_MODESELECT_A
sourcefn eq(&self, other: &USART_MODESELECT_A) -> bool
fn eq(&self, other: &USART_MODESELECT_A) -> bool
impl Copy 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more