Struct RtcConfig

Source
pub struct RtcConfig(pub u32);
Available on crate feature unstable only.
Expand description

RTC Configuration.

Tuple Fields§

§0: u32

Implementations§

Source§

impl RtcConfig

Source

pub fn ck8m_wait(&self) -> u8

Number of rtc_fast_clk cycles to wait for 8M clock to be ready

Source

pub fn xtal_wait(&self) -> u8

Number of rtc_fast_clk cycles to wait for XTAL clock to be ready

Source

pub fn pll_wait(&self) -> u8

Number of rtc_fast_clk cycles to wait for PLL clock to be ready

Source

pub fn clkctl_init(&self) -> bool

Perform clock control related initialization.

Source

pub fn pwrctl_init(&self) -> bool

Perform power control related initialization.

Source

pub fn rtc_dboost_fpd(&self) -> bool

Force power down RTC_DBOOST

Source

pub fn xtal_fpu(&self) -> bool

Keep the XTAL oscillator powered up in sleep.

Source

pub fn bbpll_fpu(&self) -> bool

Keep the BBPLL oscillator powered up in sleep.

Source

pub fn cpu_waiti_clk_gate(&self) -> bool

Enable clock gating when the CPU is in wait-for-interrupt state.

Source

pub fn cali_ocode(&self) -> bool

Calibrate Ocode to make bandgap voltage more precise.

Source

pub fn set_ck8m_wait(&mut self, value: u8)

Number of rtc_fast_clk cycles to wait for 8M clock to be ready

Source

pub fn set_xtal_wait(&mut self, value: u8)

Number of rtc_fast_clk cycles to wait for XTAL clock to be ready

Source

pub fn set_pll_wait(&mut self, value: u8)

Number of rtc_fast_clk cycles to wait for PLL clock to be ready

Source

pub fn set_clkctl_init(&mut self, value: bool)

Perform clock control related initialization.

Source

pub fn set_pwrctl_init(&mut self, value: bool)

Perform power control related initialization.

Source

pub fn set_rtc_dboost_fpd(&mut self, value: bool)

Force power down RTC_DBOOST

Source

pub fn set_xtal_fpu(&mut self, value: bool)

Keep the XTAL oscillator powered up in sleep.

Source

pub fn set_bbpll_fpu(&mut self, value: bool)

Keep the BBPLL oscillator powered up in sleep.

Source

pub fn set_cpu_waiti_clk_gate(&mut self, value: bool)

Enable clock gating when the CPU is in wait-for-interrupt state.

Source

pub fn set_cali_ocode(&mut self, value: bool)

Calibrate Ocode to make bandgap voltage more precise.

Trait Implementations§

Source§

impl<T> BitRange<T> for RtcConfig
where u32: BitRange<T>,

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> T

Get a range of bits.
Source§

impl<T> BitRangeMut<T> for RtcConfig
where u32: BitRangeMut<T>,

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)

Set a range of bits.
Source§

impl Clone for RtcConfig

Source§

fn clone(&self) -> RtcConfig

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RtcConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RtcConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

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 UnwindSafe for RtcConfig

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Bit for T
where T: BitRange<u8>,

Source§

fn bit(&self, bit: usize) -> bool

Get a single bit.
Source§

impl<T> BitMut for T
where T: BitRangeMut<u8>,

Source§

fn set_bit(&mut self, bit: usize, value: bool)

Set a single bit.
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.