Enum stm32_metapac::rcc::vals::I2c2i2s1sel
#[repr(u8)]pub enum I2c2i2s1sel {
PCLK1 = 0,
SYS = 1,
HSI = 2,
I2S_CKIN = 3,
}
Variants§
PCLK1 = 0
PCLK used as I2C2/I2S2 clock source
SYS = 1
SYSCLK used as I2C2/I2S2 clock source
HSI = 2
HSI used as I2C2/I2S2 clock source
I2S_CKIN = 3
External clock used as I2C2/I2S2 clock source
Implementations§
§impl I2c2i2s1sel
impl I2c2i2s1sel
pub const fn from_bits(val: u8) -> I2c2i2s1sel
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for I2c2i2s1sel
impl Clone for I2c2i2s1sel
§fn clone(&self) -> I2c2i2s1sel
fn clone(&self) -> I2c2i2s1sel
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<I2c2i2s1sel> for u8
impl From<I2c2i2s1sel> for u8
§fn from(val: I2c2i2s1sel) -> u8
fn from(val: I2c2i2s1sel) -> u8
Converts to this type from the input type.
§impl From<u8> for I2c2i2s1sel
impl From<u8> for I2c2i2s1sel
§fn from(val: u8) -> I2c2i2s1sel
fn from(val: u8) -> I2c2i2s1sel
Converts to this type from the input type.
§impl Ord for I2c2i2s1sel
impl Ord for I2c2i2s1sel
§impl PartialEq for I2c2i2s1sel
impl PartialEq for I2c2i2s1sel
§impl PartialOrd for I2c2i2s1sel
impl PartialOrd for I2c2i2s1sel
impl Copy for I2c2i2s1sel
impl Eq for I2c2i2s1sel
impl StructuralPartialEq for I2c2i2s1sel
Auto Trait Implementations§
impl Freeze for I2c2i2s1sel
impl RefUnwindSafe for I2c2i2s1sel
impl Send for I2c2i2s1sel
impl Sync for I2c2i2s1sel
impl Unpin for I2c2i2s1sel
impl UnwindSafe for I2c2i2s1sel
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)