#[repr(transparent)]pub struct OscConfig0Clr(pub u32);Expand description
XTAL OSC Configuration 0 Register
Tuple Fields§
§0: u32Implementations§
Source§impl OscConfig0Clr
impl OscConfig0Clr
Sourcepub const fn start(&self) -> bool
pub const fn start(&self) -> bool
Start/stop bit for the RC tuning calculation logic. If stopped the tuning logic is reset.
Sourcepub const fn set_start(&mut self, val: bool)
pub const fn set_start(&mut self, val: bool)
Start/stop bit for the RC tuning calculation logic. If stopped the tuning logic is reset.
Sourcepub const fn set_enable(&mut self, val: bool)
pub const fn set_enable(&mut self, val: bool)
Enables the tuning logic to calculate new RC tuning values
Sourcepub const fn bypass(&self) -> bool
pub const fn bypass(&self) -> bool
Bypasses any calculated RC tuning value and uses the programmed register value.
Sourcepub const fn set_bypass(&mut self, val: bool)
pub const fn set_bypass(&mut self, val: bool)
Bypasses any calculated RC tuning value and uses the programmed register value.
Sourcepub const fn set_invert(&mut self, val: bool)
pub const fn set_invert(&mut self, val: bool)
Invert the stepping of the calculated RC tuning value.
Sourcepub const fn rc_osc_prog(&self) -> u8
pub const fn rc_osc_prog(&self) -> u8
RC osc. tuning values.
Sourcepub const fn set_rc_osc_prog(&mut self, val: u8)
pub const fn set_rc_osc_prog(&mut self, val: u8)
RC osc. tuning values.
Sourcepub const fn set_hyst_plus(&mut self, val: u8)
pub const fn set_hyst_plus(&mut self, val: u8)
Positive hysteresis value
Sourcepub const fn hyst_minus(&self) -> u8
pub const fn hyst_minus(&self) -> u8
Negative hysteresis value
Sourcepub const fn set_hyst_minus(&mut self, val: u8)
pub const fn set_hyst_minus(&mut self, val: u8)
Negative hysteresis value
Sourcepub const fn rc_osc_prog_cur(&self) -> u8
pub const fn rc_osc_prog_cur(&self) -> u8
The current tuning value in use.
Sourcepub const fn set_rc_osc_prog_cur(&mut self, val: u8)
pub const fn set_rc_osc_prog_cur(&mut self, val: u8)
The current tuning value in use.
Trait Implementations§
Source§impl Clone for OscConfig0Clr
impl Clone for OscConfig0Clr
Source§fn clone(&self) -> OscConfig0Clr
fn clone(&self) -> OscConfig0Clr
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 OscConfig0Clr
impl Debug for OscConfig0Clr
Source§impl Default for OscConfig0Clr
impl Default for OscConfig0Clr
Source§fn default() -> OscConfig0Clr
fn default() -> OscConfig0Clr
Returns the “default value” for a type. Read more
Source§impl PartialEq for OscConfig0Clr
impl PartialEq for OscConfig0Clr
impl Copy for OscConfig0Clr
impl Eq for OscConfig0Clr
impl StructuralPartialEq for OscConfig0Clr
Auto Trait Implementations§
impl Freeze for OscConfig0Clr
impl RefUnwindSafe for OscConfig0Clr
impl Send for OscConfig0Clr
impl Sync for OscConfig0Clr
impl Unpin for OscConfig0Clr
impl UnwindSafe for OscConfig0Clr
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