#[repr(u8)]pub enum MODESELECT_A {
USART_EXT_CLK = 0,
USART_INT_CLK = 1,
SPI_SLAVE = 2,
SPI_MASTER = 3,
I2C_SLAVE = 4,
I2C_MASTER = 5,
}
Expand description
Operating Mode
Value on reset: 0
Variants§
USART_EXT_CLK = 0
0: USART with external clock
USART_INT_CLK = 1
1: USART with internal clock
SPI_SLAVE = 2
2: SPI in slave operation
SPI_MASTER = 3
3: SPI in master operation
I2C_SLAVE = 4
4: I2C slave operation
I2C_MASTER = 5
5: I2C master operation
Trait Implementations§
source§impl Clone for MODESELECT_A
impl Clone for MODESELECT_A
source§fn clone(&self) -> MODESELECT_A
fn clone(&self) -> 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 MODESELECT_A
impl Debug for MODESELECT_A
source§impl From<MODESELECT_A> for u8
impl From<MODESELECT_A> for u8
source§fn from(variant: MODESELECT_A) -> Self
fn from(variant: MODESELECT_A) -> Self
Converts to this type from the input type.
source§impl PartialEq for MODESELECT_A
impl PartialEq for MODESELECT_A
source§fn eq(&self, other: &MODESELECT_A) -> bool
fn eq(&self, other: &MODESELECT_A) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MODESELECT_A
impl Eq for MODESELECT_A
impl StructuralPartialEq for MODESELECT_A
Auto Trait Implementations§
impl Freeze for MODESELECT_A
impl RefUnwindSafe for MODESELECT_A
impl Send for MODESELECT_A
impl Sync for MODESELECT_A
impl Unpin for MODESELECT_A
impl UnwindSafe for 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