Struct esp32s2::system::perip_clk_en0::W

source ·
pub struct W(_);
Expand description

Register PERIP_CLK_EN0 writer

Implementations§

source§

impl W

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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

source

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

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<'_, 28>

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

source

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

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<'_, 30>

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

source

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

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.

Methods from Deref<Target = W<PERIP_CLK_EN0_SPEC>>§

source

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

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<PERIP_CLK_EN0_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<PERIP_CLK_EN0_SPEC>> for W

source§

fn from(writer: W<PERIP_CLK_EN0_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.