#[repr(transparent)]pub struct OscConfig2Tog(pub u32);Expand description
XTAL OSC Configuration 2 Register
Tuple Fields§
§0: u32Implementations§
Source§impl OscConfig2Tog
impl OscConfig2Tog
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 OscConfig2Tog
impl Clone for OscConfig2Tog
Source§fn clone(&self) -> OscConfig2Tog
fn clone(&self) -> OscConfig2Tog
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 OscConfig2Tog
impl Debug for OscConfig2Tog
Source§impl Default for OscConfig2Tog
impl Default for OscConfig2Tog
Source§fn default() -> OscConfig2Tog
fn default() -> OscConfig2Tog
Returns the “default value” for a type. Read more
Source§impl PartialEq for OscConfig2Tog
impl PartialEq for OscConfig2Tog
impl Copy for OscConfig2Tog
impl Eq for OscConfig2Tog
impl StructuralPartialEq for OscConfig2Tog
Auto Trait Implementations§
impl Freeze for OscConfig2Tog
impl RefUnwindSafe for OscConfig2Tog
impl Send for OscConfig2Tog
impl Sync for OscConfig2Tog
impl Unpin for OscConfig2Tog
impl UnwindSafe for OscConfig2Tog
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