pub struct RtcConfig(pub u32);unstable only.Expand description
RTC Configuration.
Tuple Fields§
§0: u32Implementations§
Source§impl RtcConfig
impl RtcConfig
Sourcepub fn clkctl_init(&self) -> bool
pub fn clkctl_init(&self) -> bool
Performs clock control related initialization.
Sourcepub fn pwrctl_init(&self) -> bool
pub fn pwrctl_init(&self) -> bool
Performs power control related initialization.
Sourcepub fn rtc_dboost_fpd(&self) -> bool
pub fn rtc_dboost_fpd(&self) -> bool
Forces power-down of RTC_DBOOST.
Sourcepub fn cpu_waiti_clk_gate(&self) -> bool
pub fn cpu_waiti_clk_gate(&self) -> bool
Enables clock gating when the CPU is in wait-for-interrupt state.
Sourcepub fn cali_ocode(&self) -> bool
pub fn cali_ocode(&self) -> bool
Calibrates Ocode to make bandgap voltage more precise.
Sourcepub fn set_ck8m_wait(&mut self, value: u8)
pub fn set_ck8m_wait(&mut self, value: u8)
Number of rtc_fast_clk cycles to wait for 8M clock to be ready
Sourcepub fn set_xtal_wait(&mut self, value: u8)
pub fn set_xtal_wait(&mut self, value: u8)
Number of rtc_fast_clk cycles to wait for XTAL clock to be ready
Sourcepub fn set_pll_wait(&mut self, value: u8)
pub fn set_pll_wait(&mut self, value: u8)
Number of rtc_fast_clk cycles to wait for PLL clock to be ready
Sourcepub fn set_clkctl_init(&mut self, value: bool)
pub fn set_clkctl_init(&mut self, value: bool)
Performs clock control related initialization.
Sourcepub fn set_pwrctl_init(&mut self, value: bool)
pub fn set_pwrctl_init(&mut self, value: bool)
Performs power control related initialization.
Sourcepub fn set_rtc_dboost_fpd(&mut self, value: bool)
pub fn set_rtc_dboost_fpd(&mut self, value: bool)
Forces power-down of RTC_DBOOST.
Sourcepub fn set_xtal_fpu(&mut self, value: bool)
pub fn set_xtal_fpu(&mut self, value: bool)
Keeps the XTAL oscillator powered up in sleep.
Sourcepub fn set_bbpll_fpu(&mut self, value: bool)
pub fn set_bbpll_fpu(&mut self, value: bool)
Keeps the BBPLL oscillator powered up in sleep.
Sourcepub fn set_cpu_waiti_clk_gate(&mut self, value: bool)
pub fn set_cpu_waiti_clk_gate(&mut self, value: bool)
Enables clock gating when the CPU is in wait-for-interrupt state.
Sourcepub fn set_cali_ocode(&mut self, value: bool)
pub fn set_cali_ocode(&mut self, value: bool)
Calibrates Ocode to make bandgap voltage more precise.
Trait Implementations§
Source§impl<T> BitRangeMut<T> for RtcConfigwhere
u32: BitRangeMut<T>,
impl<T> BitRangeMut<T> for RtcConfigwhere
u32: BitRangeMut<T>,
Source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
impl Copy for RtcConfig
Auto Trait Implementations§
impl Freeze for RtcConfig
impl RefUnwindSafe for RtcConfig
impl Send for RtcConfig
impl Sync for RtcConfig
impl Unpin for RtcConfig
impl UnsafeUnpin for RtcConfig
impl UnwindSafe for RtcConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
Source§impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)