pub struct UartFunctionClockConfig { /* private fields */ }Available on crate feature
unstable only.Expand description
Configures the UART0_FUNCTION_CLOCK clock node.
The output is calculated as OUTPUT = sclk / (div_num + 1).
Implementations§
Source§impl UartFunctionClockConfig
impl UartFunctionClockConfig
Sourcepub const fn new(sclk: UartFunctionClockSclk, div_num: u32) -> Self
pub const fn new(sclk: UartFunctionClockSclk, 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 UartFunctionClockConfig
impl Clone for UartFunctionClockConfig
Source§fn clone(&self) -> UartFunctionClockConfig
fn clone(&self) -> UartFunctionClockConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UartFunctionClockConfig
impl Debug for UartFunctionClockConfig
Source§impl Hash for UartFunctionClockConfig
impl Hash for UartFunctionClockConfig
Source§impl PartialEq for UartFunctionClockConfig
impl PartialEq for UartFunctionClockConfig
impl Copy for UartFunctionClockConfig
impl Eq for UartFunctionClockConfig
impl StructuralPartialEq for UartFunctionClockConfig
Auto Trait Implementations§
impl Freeze for UartFunctionClockConfig
impl RefUnwindSafe for UartFunctionClockConfig
impl Send for UartFunctionClockConfig
impl Sync for UartFunctionClockConfig
impl Unpin for UartFunctionClockConfig
impl UnsafeUnpin for UartFunctionClockConfig
impl UnwindSafe for UartFunctionClockConfig
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)