pub struct I2cFunctionClockConfig { /* private fields */ }Available on crate feature
unstable only.Expand description
Configures the I2C0_FUNCTION_CLOCK clock node.
The output is calculated as OUTPUT = sclk / (div_num + 1).
Implementations§
Source§impl I2cFunctionClockConfig
impl I2cFunctionClockConfig
Sourcepub const fn new(sclk: I2cFunctionClockSclk, div_num: u32) -> Self
pub const fn new(sclk: I2cFunctionClockSclk, div_num: u32) -> Self
Creates a new configuration for the FUNCTION_CLOCK clock node.
§Panics
Panics if the div_num value is outside the valid range (0 ..= 255).
Trait Implementations§
Source§impl Clone for I2cFunctionClockConfig
impl Clone for I2cFunctionClockConfig
Source§fn clone(&self) -> I2cFunctionClockConfig
fn clone(&self) -> I2cFunctionClockConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for I2cFunctionClockConfig
Source§impl Debug for I2cFunctionClockConfig
impl Debug for I2cFunctionClockConfig
impl Eq for I2cFunctionClockConfig
Source§impl Hash for I2cFunctionClockConfig
impl Hash for I2cFunctionClockConfig
Source§impl PartialEq for I2cFunctionClockConfig
impl PartialEq for I2cFunctionClockConfig
impl StructuralPartialEq for I2cFunctionClockConfig
Auto Trait Implementations§
impl Freeze for I2cFunctionClockConfig
impl RefUnwindSafe for I2cFunctionClockConfig
impl Send for I2cFunctionClockConfig
impl Sync for I2cFunctionClockConfig
impl Unpin for I2cFunctionClockConfig
impl UnsafeUnpin for I2cFunctionClockConfig
impl UnwindSafe for I2cFunctionClockConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)