Struct d1_pac::rtc::rtc_spi_clk_ctrl::W
source · pub struct W(/* private fields */);
Expand description
Register rtc_spi_clk_ctrl
writer
Implementations§
source§impl W
impl W
sourcepub fn rtc_spi_clk_div(&mut self) -> RTC_SPI_CLK_DIV_W<'_, 0>
pub fn rtc_spi_clk_div(&mut self) -> RTC_SPI_CLK_DIV_W<'_, 0>
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(&mut self) -> RTC_SPI_CLK_GATING_W<'_, 31>
pub fn rtc_spi_clk_gating(&mut self) -> RTC_SPI_CLK_GATING_W<'_, 31>
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 = W<RTC_SPI_CLK_CTRL_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
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