Type Alias esp32s2::system::perip_clk_en0::W

source ·
pub type W = W<PERIP_CLK_EN0_SPEC>;
Expand description

Register PERIP_CLK_EN0 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn timers_clk_en(&mut self) -> TIMERS_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 0 - Set this bit to enable clock of timers.

source

pub fn spi01_clk_en(&mut self) -> SPI01_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 1 - Set this bit to enable clock of SPI0 and SPI1.

source

pub fn uart_clk_en(&mut self) -> UART_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 2 - Set this bit to enable clock of UART0.

source

pub fn wdg_clk_en(&mut self) -> WDG_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 3 - Set this bit to enable clock of WDG.

source

pub fn i2s0_clk_en(&mut self) -> I2S0_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 4 - Set this bit to enable clock of I2S0.

source

pub fn uart1_clk_en(&mut self) -> UART1_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 5 - Set this bit to enable clock of UART1.

source

pub fn spi2_clk_en(&mut self) -> SPI2_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 6 - Set this bit to enable clock of SPI2.

source

pub fn i2c_ext0_clk_en(&mut self) -> I2C_EXT0_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 7 - Set this bit to enable clock of I2C EXT0.

source

pub fn uhci0_clk_en(&mut self) -> UHCI0_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 8 - Set this bit to enable clock of UHCI0.

source

pub fn rmt_clk_en(&mut self) -> RMT_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 9 - Set this bit to enable clock of remote controller.

source

pub fn pcnt_clk_en(&mut self) -> PCNT_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 10 - Set this bit to enable clock of pulse count.

source

pub fn ledc_clk_en(&mut self) -> LEDC_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 11 - Set this bit to enable clock of LED PWM.

source

pub fn uhci1_clk_en(&mut self) -> UHCI1_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 12 - Set this bit to enable clock of UHCI1.

source

pub fn timergroup_clk_en( &mut self ) -> TIMERGROUP_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 13 - Set this bit to enable clock of timer group0.

source

pub fn efuse_clk_en(&mut self) -> EFUSE_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 14 - Set this bit to enable clock of eFuse.

source

pub fn timergroup1_clk_en( &mut self ) -> TIMERGROUP1_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 15 - Set this bit to enable clock of timer group1.

source

pub fn spi3_clk_en(&mut self) -> SPI3_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 16 - Set this bit to enable clock of SPI3.

source

pub fn pwm0_clk_en(&mut self) -> PWM0_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 17 - Set this bit to enable clock of PWM0.

source

pub fn i2c_ext1_clk_en(&mut self) -> I2C_EXT1_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 18 - Set this bit to enable clock of I2C EXT1.

source

pub fn twai_clk_en(&mut self) -> TWAI_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 19 - Set this bit to enable clock of CAN.

source

pub fn pwm1_clk_en(&mut self) -> PWM1_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 20 - Set this bit to enable clock of PWM1.

source

pub fn i2s1_clk_en(&mut self) -> I2S1_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 21 - Set this bit to enable clock of I2S1.

source

pub fn spi2_dma_clk_en(&mut self) -> SPI2_DMA_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 22 - Set this bit to enable clock of SPI2 DMA.

source

pub fn usb_clk_en(&mut self) -> USB_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 23 - Set this bit to enable clock of USB.

source

pub fn uart_mem_clk_en(&mut self) -> UART_MEM_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 24 - Set this bit to enable clock of UART memory.

source

pub fn pwm2_clk_en(&mut self) -> PWM2_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 25 - Set this bit to enable clock of PWM2.

source

pub fn pwm3_clk_en(&mut self) -> PWM3_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 26 - Set this bit to enable clock of PWM3.

source

pub fn spi3_dma_clk_en(&mut self) -> SPI3_DMA_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 27 - Set this bit to enable clock of SPI3 DMA.

source

pub fn apb_saradc_clk_en( &mut self ) -> APB_SARADC_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 28 - Set this bit to enable clock of SAR ADC.

source

pub fn systimer_clk_en(&mut self) -> SYSTIMER_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 29 - Set this bit to enable clock of system timer.

source

pub fn adc2_arb_clk_en(&mut self) -> ADC2_ARB_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 30 - Set this bit to enable clock of aribiter of ADC2.

source

pub fn spi4_clk_en(&mut self) -> SPI4_CLK_EN_W<'_, PERIP_CLK_EN0_SPEC>

Bit 31 - Set this bit to enable clock of SPI4.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual