#[repr(transparent)]pub struct OscConfig2(pub u32);Expand description
XTAL OSC Configuration 2 Register
Tuple Fields§
§0: u32Implementations§
Source§impl OscConfig2
impl OscConfig2
Sourcepub const fn count_1m_trg(&self) -> u16
pub const fn count_1m_trg(&self) -> u16
The target count used to tune the 1MHz clock frequency
Sourcepub const fn set_count_1m_trg(&mut self, val: u16)
pub const fn set_count_1m_trg(&mut self, val: u16)
The target count used to tune the 1MHz clock frequency
Sourcepub const fn set_enable_1m(&mut self, val: bool)
pub const fn set_enable_1m(&mut self, val: bool)
Enable the 1MHz clock output. 0 - disabled; 1 - enabled.
Sourcepub const fn set_mux_1m(&mut self, val: bool)
pub const fn set_mux_1m(&mut self, val: bool)
Mux the corrected or uncorrected 1MHz clock to the output
Sourcepub const fn clk_1m_err_fl(&self) -> bool
pub const fn clk_1m_err_fl(&self) -> bool
Flag indicates that the count_1m count wasn’t reached within 1 32kHz period
Sourcepub const fn set_clk_1m_err_fl(&mut self, val: bool)
pub const fn set_clk_1m_err_fl(&mut self, val: bool)
Flag indicates that the count_1m count wasn’t reached within 1 32kHz period
Trait Implementations§
Source§impl Clone for OscConfig2
impl Clone for OscConfig2
Source§fn clone(&self) -> OscConfig2
fn clone(&self) -> OscConfig2
Returns a duplicate 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 moreSource§impl Debug for OscConfig2
impl Debug for OscConfig2
Source§impl Default for OscConfig2
impl Default for OscConfig2
Source§fn default() -> OscConfig2
fn default() -> OscConfig2
Returns the “default value” for a type. Read more
Source§impl PartialEq for OscConfig2
impl PartialEq for OscConfig2
impl Copy for OscConfig2
impl Eq for OscConfig2
impl StructuralPartialEq for OscConfig2
Auto Trait Implementations§
impl Freeze for OscConfig2
impl RefUnwindSafe for OscConfig2
impl Send for OscConfig2
impl Sync for OscConfig2
impl Unpin for OscConfig2
impl UnwindSafe for OscConfig2
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