Struct esp_idf_sys::rtc_clk_config_t
source · [−]#[repr(C)]#[repr(align(4))]pub struct rtc_clk_config_t {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 6]>,
pub __bindgen_padding_0: u16,
}
Expand description
Initialization parameters for rtc_clk_init
Fields
_bitfield_align_1: [u16; 0]
_bitfield_1: __BindgenBitfieldUnit<[u8; 6]>
__bindgen_padding_0: u16
Implementations
sourceimpl rtc_clk_config_t
impl rtc_clk_config_t
pub fn xtal_freq(&self) -> rtc_xtal_freq_t
pub fn set_xtal_freq(&mut self, val: rtc_xtal_freq_t)
pub fn cpu_freq_mhz(&self) -> u32
pub fn set_cpu_freq_mhz(&mut self, val: u32)
pub fn fast_freq(&self) -> rtc_fast_freq_t
pub fn set_fast_freq(&mut self, val: rtc_fast_freq_t)
pub fn slow_freq(&self) -> rtc_slow_freq_t
pub fn set_slow_freq(&mut self, val: rtc_slow_freq_t)
pub fn clk_rtc_clk_div(&self) -> u32
pub fn set_clk_rtc_clk_div(&mut self, val: u32)
pub fn clk_8m_clk_div(&self) -> u32
pub fn set_clk_8m_clk_div(&mut self, val: u32)
pub fn slow_clk_dcap(&self) -> u32
pub fn set_slow_clk_dcap(&mut self, val: u32)
pub fn clk_8m_dfreq(&self) -> u32
pub fn set_clk_8m_dfreq(&mut self, val: u32)
pub fn new_bitfield_1(
xtal_freq: rtc_xtal_freq_t,
cpu_freq_mhz: u32,
fast_freq: rtc_fast_freq_t,
slow_freq: rtc_slow_freq_t,
clk_rtc_clk_div: u32,
clk_8m_clk_div: u32,
slow_clk_dcap: u32,
clk_8m_dfreq: u32
) -> __BindgenBitfieldUnit<[u8; 6]>
Trait Implementations
sourceimpl Clone for rtc_clk_config_t
impl Clone for rtc_clk_config_t
sourcefn clone(&self) -> rtc_clk_config_t
fn clone(&self) -> rtc_clk_config_t
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for rtc_clk_config_t
impl Debug for rtc_clk_config_t
sourceimpl Default for rtc_clk_config_t
impl Default for rtc_clk_config_t
impl Copy for rtc_clk_config_t
Auto Trait Implementations
impl RefUnwindSafe for rtc_clk_config_t
impl Send for rtc_clk_config_t
impl Sync for rtc_clk_config_t
impl Unpin for rtc_clk_config_t
impl UnwindSafe for rtc_clk_config_t
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more