#[repr(transparent)]pub struct Xosc32mcaps(pub u32);
Expand description
Programmable capacitance of XC1 and XC2
Tuple Fields§
§0: u32
Implementations§
Source§impl Xosc32mcaps
impl Xosc32mcaps
Sourcepub const fn capvalue(&self) -> u8
pub const fn capvalue(&self) -> u8
Value representing capacitance, calculated using provided equation
Sourcepub fn set_capvalue(&mut self, val: u8)
pub fn set_capvalue(&mut self, val: u8)
Value representing capacitance, calculated using provided equation
Sourcepub fn set_enable(&mut self, val: bool)
pub fn set_enable(&mut self, val: bool)
Enable on-chip capacitors on XC1 and XC2
Trait Implementations§
Source§impl Clone for Xosc32mcaps
impl Clone for Xosc32mcaps
Source§fn clone(&self) -> Xosc32mcaps
fn clone(&self) -> Xosc32mcaps
Returns a copy 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 Default for Xosc32mcaps
impl Default for Xosc32mcaps
Source§fn default() -> Xosc32mcaps
fn default() -> Xosc32mcaps
Returns the “default value” for a type. Read more
Source§impl PartialEq for Xosc32mcaps
impl PartialEq for Xosc32mcaps
impl Copy for Xosc32mcaps
impl Eq for Xosc32mcaps
impl StructuralPartialEq for Xosc32mcaps
Auto Trait Implementations§
impl Freeze for Xosc32mcaps
impl RefUnwindSafe for Xosc32mcaps
impl Send for Xosc32mcaps
impl Sync for Xosc32mcaps
impl Unpin for Xosc32mcaps
impl UnwindSafe for Xosc32mcaps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)