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