Struct esp32c3_hal::pac::system::perip_clk_en0::W
pub struct W(_);
Expand description
Register PERIP_CLK_EN0
writer
Implementations
impl W
impl W
pub fn timers_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 0>
pub fn timers_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 0>
Bit 0 - reg_timers_clk_en
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 - reg_spi01_clk_en
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 - reg_uart_clk_en
pub fn wdg_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 3>
pub fn wdg_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 3>
Bit 3 - reg_wdg_clk_en
pub fn i2s0_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 4>
pub fn i2s0_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 4>
Bit 4 - reg_i2s0_clk_en
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 - reg_uart1_clk_en
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 - reg_spi2_clk_en
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 - reg_ext0_clk_en
pub fn uhci0_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 8>
pub fn uhci0_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 8>
Bit 8 - reg_uhci0_clk_en
pub fn rmt_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 9>
pub fn rmt_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 9>
Bit 9 - reg_rmt_clk_en
pub fn pcnt_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 10>
pub fn pcnt_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 10>
Bit 10 - reg_pcnt_clk_en
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 - reg_ledc_clk_en
pub fn uhci1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 12>
pub fn uhci1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 12>
Bit 12 - reg_uhci1_clk_en
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 - reg_timergroup_clk_en
pub fn efuse_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 14>
pub fn efuse_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 14>
Bit 14 - reg_efuse_clk_en
pub fn timergroup1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 15>
pub fn timergroup1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 15>
Bit 15 - reg_timergroup1_clk_en
pub fn spi3_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 16>
pub fn spi3_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 16>
Bit 16 - reg_spi3_clk_en
pub fn pwm0_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 17>
pub fn pwm0_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 17>
Bit 17 - reg_pwm0_clk_en
pub fn ext1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 18>
pub fn ext1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 18>
Bit 18 - reg_ext1_clk_en
pub fn can_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 19>
pub fn can_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 19>
Bit 19 - reg_can_clk_en
pub fn pwm1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 20>
pub fn pwm1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 20>
Bit 20 - reg_pwm1_clk_en
pub fn i2s1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 21>
pub fn i2s1_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 21>
Bit 21 - reg_i2s1_clk_en
pub fn spi2_dma_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 22>
pub fn spi2_dma_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 22>
Bit 22 - reg_spi2_dma_clk_en
pub fn usb_device_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 23>
pub fn usb_device_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 23>
Bit 23 - reg_usb_device_clk_en
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 - reg_uart_mem_clk_en
pub fn pwm2_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 25>
pub fn pwm2_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 25>
Bit 25 - reg_pwm2_clk_en
pub fn pwm3_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 26>
pub fn pwm3_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 26>
Bit 26 - reg_pwm3_clk_en
pub fn spi3_dma_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 27>
pub fn spi3_dma_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 27>
Bit 27 - reg_spi3_dma_clk_en
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 - reg_apb_saradc_clk_en
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 - reg_systimer_clk_en
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 - reg_adc2_arb_clk_en
pub fn spi4_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 31>
pub fn spi4_clk_en(
&mut self
) -> BitWriterRaw<'_, u32, PERIP_CLK_EN0_SPEC, bool, BitM, 31>
Bit 31 - reg_spi4_clk_en
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.