Enum stm32_metapac::rcc::vals::I2c1I3c1sel
#[repr(u8)]pub enum I2c1I3c1sel {
PCLK1 = 0,
PLL3_R = 1,
HSI = 2,
CSI = 3,
}
Variants§
PCLK1 = 0
rcc_pclk1 selected as peripheral clock
PLL3_R = 1
pll3_r selected as peripheral clock
HSI = 2
hsi_ker selected as peripheral clock
CSI = 3
csi_ker selected as peripheral clock
Implementations§
§impl I2c1I3c1sel
impl I2c1I3c1sel
pub const fn from_bits(val: u8) -> I2c1I3c1sel
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for I2c1I3c1sel
impl Clone for I2c1I3c1sel
§fn clone(&self) -> I2c1I3c1sel
fn clone(&self) -> I2c1I3c1sel
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 more§impl From<I2c1I3c1sel> for u8
impl From<I2c1I3c1sel> for u8
§fn from(val: I2c1I3c1sel) -> u8
fn from(val: I2c1I3c1sel) -> u8
Converts to this type from the input type.
§impl From<u8> for I2c1I3c1sel
impl From<u8> for I2c1I3c1sel
§fn from(val: u8) -> I2c1I3c1sel
fn from(val: u8) -> I2c1I3c1sel
Converts to this type from the input type.
§impl Ord for I2c1I3c1sel
impl Ord for I2c1I3c1sel
§fn cmp(&self, other: &I2c1I3c1sel) -> Ordering
fn cmp(&self, other: &I2c1I3c1sel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for I2c1I3c1sel
impl PartialEq for I2c1I3c1sel
§fn eq(&self, other: &I2c1I3c1sel) -> bool
fn eq(&self, other: &I2c1I3c1sel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for I2c1I3c1sel
impl PartialOrd for I2c1I3c1sel
§fn partial_cmp(&self, other: &I2c1I3c1sel) -> Option<Ordering>
fn partial_cmp(&self, other: &I2c1I3c1sel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for I2c1I3c1sel
impl Eq for I2c1I3c1sel
impl StructuralEq for I2c1I3c1sel
impl StructuralPartialEq for I2c1I3c1sel
Auto Trait Implementations§
impl RefUnwindSafe for I2c1I3c1sel
impl Send for I2c1I3c1sel
impl Sync for I2c1I3c1sel
impl Unpin for I2c1I3c1sel
impl UnwindSafe for I2c1I3c1sel
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