Struct esp32c2_hal::pac::system::perip_clk_en0::W
pub struct W(_);
Expand description
Register PERIP_CLK_EN0
writer
Implementations§
§impl W
impl W
pub fn spi01_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 1>
pub fn spi01_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 1>
Bit 1 - Set 1 to enable SPI01 clock
pub fn uart_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 2>
pub fn uart_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 2>
Bit 2 - Set 1 to enable UART clock
pub fn uart1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 5>
pub fn uart1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 5>
Bit 5 - Set 1 to enable UART1 clock
pub fn spi2_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 6>
pub fn spi2_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 6>
Bit 6 - Set 1 to enable SPI2 clock
pub fn i2c_ext0_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 7>
pub fn i2c_ext0_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 7>
Bit 7 - Set 1 to enable I2C_EXT0 clock
pub fn ledc_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 11>
pub fn ledc_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 11>
Bit 11 - Set 1 to enable LEDC clock
pub fn timergroup_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 13>
pub fn timergroup_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 13>
Bit 13 - Set 1 to enable TIMERGROUP clock
pub fn uart_mem_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 24>
pub fn uart_mem_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 24>
Bit 24 - Set 1 to enable UART_MEM clock
pub fn apb_saradc_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 28>
pub fn apb_saradc_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 28>
Bit 28 - Set 1 to enable APB_SARADC clock
pub fn systimer_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 29>
pub fn systimer_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 29>
Bit 29 - Set 1 to enable SYSTEMTIMER clock
pub fn adc2_arb_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 30>
pub fn adc2_arb_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 30>
Bit 30 - Set 1 to enable ADC2_ARB clock
Methods from Deref<Target = W<PERIP_CLK_EN0_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<PERIP_CLK_EN0_SPEC>> for W
impl From<W<PERIP_CLK_EN0_SPEC>> for W
§fn from(writer: W<PERIP_CLK_EN0_SPEC>) -> W
fn from(writer: W<PERIP_CLK_EN0_SPEC>) -> W
Converts to this type from the input type.