pub struct UartBaudRateGeneratorConfig { /* private fields */ }Available on crate feature
unstable only.Expand description
Configures the UART0_BAUD_RATE_GENERATOR clock node.
The output is calculated as OUTPUT = (FUNCTION_CLOCK * 16) / (integral * 16 + fractional).
Implementations§
Source§impl UartBaudRateGeneratorConfig
impl UartBaudRateGeneratorConfig
Sourcepub const fn new(fractional: u32, integral: u32) -> Self
pub const fn new(fractional: u32, integral: u32) -> Self
Creates a new configuration for the BAUD_RATE_GENERATOR clock node.
§Panics
Panics if the fractional value is outside the valid range (0 ..= 15).
Panics if the integral value is outside the valid range (0 ..= 4095).
pub fn fractional(self) -> u32
pub fn integral(self) -> u32
Trait Implementations§
Source§impl Clone for UartBaudRateGeneratorConfig
impl Clone for UartBaudRateGeneratorConfig
Source§fn clone(&self) -> UartBaudRateGeneratorConfig
fn clone(&self) -> UartBaudRateGeneratorConfig
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 UartBaudRateGeneratorConfig
Source§impl Debug for UartBaudRateGeneratorConfig
impl Debug for UartBaudRateGeneratorConfig
impl Eq for UartBaudRateGeneratorConfig
Source§impl Hash for UartBaudRateGeneratorConfig
impl Hash for UartBaudRateGeneratorConfig
Source§impl PartialEq for UartBaudRateGeneratorConfig
impl PartialEq for UartBaudRateGeneratorConfig
impl StructuralPartialEq for UartBaudRateGeneratorConfig
Auto Trait Implementations§
impl Freeze for UartBaudRateGeneratorConfig
impl RefUnwindSafe for UartBaudRateGeneratorConfig
impl Send for UartBaudRateGeneratorConfig
impl Sync for UartBaudRateGeneratorConfig
impl Unpin for UartBaudRateGeneratorConfig
impl UnsafeUnpin for UartBaudRateGeneratorConfig
impl UnwindSafe for UartBaudRateGeneratorConfig
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)