Struct esp32c2_hal::pac::spi2::clk_gate::W
pub struct W(_);
Expand description
Register CLK_GATE
writer
Implementations
impl W
impl W
pub fn clk_en(&mut self) -> BitWriterRaw<'_, u32, CLK_GATE_SPEC, bool, BitM, 0>
pub fn clk_en(&mut self) -> BitWriterRaw<'_, u32, CLK_GATE_SPEC, bool, BitM, 0>
Bit 0 - Set this bit to enable clk gate
pub fn mst_clk_active(
&mut self
) -> BitWriterRaw<'_, u32, CLK_GATE_SPEC, bool, BitM, 1>
pub fn mst_clk_active(
&mut self
) -> BitWriterRaw<'_, u32, CLK_GATE_SPEC, bool, BitM, 1>
Bit 1 - Set this bit to power on the SPI module clock.
pub fn mst_clk_sel(
&mut self
) -> BitWriterRaw<'_, u32, CLK_GATE_SPEC, bool, BitM, 2>
pub fn mst_clk_sel(
&mut self
) -> BitWriterRaw<'_, u32, CLK_GATE_SPEC, bool, BitM, 2>
Bit 2 - This bit is used to select SPI module clock source in master mode. 1: PLL_CLK_80M. 0: XTAL CLK.
Methods from Deref<Target = W<CLK_GATE_SPEC>>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.
Trait Implementations
impl From<W<CLK_GATE_SPEC>> for W
impl From<W<CLK_GATE_SPEC>> for W
fn from(writer: W<CLK_GATE_SPEC>) -> W
fn from(writer: W<CLK_GATE_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more