Struct d1_pac::rtc::rtc_spi_clk_ctrl::R
source · pub struct R(/* private fields */);
Expand description
Register rtc_spi_clk_ctrl
reader
Implementations§
source§impl R
impl R
sourcepub fn rtc_spi_clk_div(&self) -> RTC_SPI_CLK_DIV_R
pub fn rtc_spi_clk_div(&self) -> RTC_SPI_CLK_DIV_R
Bits 0:4 - RTC Reg CFG SPI Clock Divider: M
Actual SPI Clock = AHBS1/(M+1), (0 to 15) The default frequency of AHBS1 is 200 MHz, and the default frequency of SPI Clock is 20 MHz.
Note: The SPI clock can not exceed 50 MHz, or else the RTC register may be abnormal.
sourcepub fn rtc_spi_clk_gating(&self) -> RTC_SPI_CLK_GATING_R
pub fn rtc_spi_clk_gating(&self) -> RTC_SPI_CLK_GATING_R
Bit 31 - RTC Reg CFG SPI Clock Gating
Before configurating RTC register, the clock divider of SPI needs be configured firstly, then clock gating needs be enabled.
Note: Frequency division and clock gating can not be set at the same time.
Methods from Deref<Target = R<RTC_SPI_CLK_CTRL_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for R
impl RefUnwindSafe for R
impl Send for R
impl Sync for R
impl Unpin for R
impl UnwindSafe for R
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