#[doc = "Register `SOC_CLK_CTRL2` reader"]
pub type R = crate::R<SOC_CLK_CTRL2_SPEC>;
#[doc = "Register `SOC_CLK_CTRL2` writer"]
pub type W = crate::W<SOC_CLK_CTRL2_SPEC>;
#[doc = "Field `RMT_SYS_CLK_EN` reader - Reserved"]
pub type RMT_SYS_CLK_EN_R = crate::BitReader;
#[doc = "Field `RMT_SYS_CLK_EN` writer - Reserved"]
pub type RMT_SYS_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `HP_CLKRST_APB_CLK_EN` reader - Reserved"]
pub type HP_CLKRST_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `HP_CLKRST_APB_CLK_EN` writer - Reserved"]
pub type HP_CLKRST_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SYSREG_APB_CLK_EN` reader - Reserved"]
pub type SYSREG_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `SYSREG_APB_CLK_EN` writer - Reserved"]
pub type SYSREG_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ICM_APB_CLK_EN` reader - Reserved"]
pub type ICM_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `ICM_APB_CLK_EN` writer - Reserved"]
pub type ICM_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `INTRMTX_APB_CLK_EN` reader - Reserved"]
pub type INTRMTX_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `INTRMTX_APB_CLK_EN` writer - Reserved"]
pub type INTRMTX_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ADC_APB_CLK_EN` reader - Reserved"]
pub type ADC_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `ADC_APB_CLK_EN` writer - Reserved"]
pub type ADC_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `UHCI_APB_CLK_EN` reader - Reserved"]
pub type UHCI_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `UHCI_APB_CLK_EN` writer - Reserved"]
pub type UHCI_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `UART0_APB_CLK_EN` reader - Reserved"]
pub type UART0_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `UART0_APB_CLK_EN` writer - Reserved"]
pub type UART0_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `UART1_APB_CLK_EN` reader - Reserved"]
pub type UART1_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `UART1_APB_CLK_EN` writer - Reserved"]
pub type UART1_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `UART2_APB_CLK_EN` reader - Reserved"]
pub type UART2_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `UART2_APB_CLK_EN` writer - Reserved"]
pub type UART2_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `UART3_APB_CLK_EN` reader - Reserved"]
pub type UART3_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `UART3_APB_CLK_EN` writer - Reserved"]
pub type UART3_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `UART4_APB_CLK_EN` reader - Reserved"]
pub type UART4_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `UART4_APB_CLK_EN` writer - Reserved"]
pub type UART4_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `I2C0_APB_CLK_EN` reader - Reserved"]
pub type I2C0_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `I2C0_APB_CLK_EN` writer - Reserved"]
pub type I2C0_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `I2C1_APB_CLK_EN` reader - Reserved"]
pub type I2C1_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `I2C1_APB_CLK_EN` writer - Reserved"]
pub type I2C1_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `I2S0_APB_CLK_EN` reader - Reserved"]
pub type I2S0_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `I2S0_APB_CLK_EN` writer - Reserved"]
pub type I2S0_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `I2S1_APB_CLK_EN` reader - Reserved"]
pub type I2S1_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `I2S1_APB_CLK_EN` writer - Reserved"]
pub type I2S1_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `I2S2_APB_CLK_EN` reader - Reserved"]
pub type I2S2_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `I2S2_APB_CLK_EN` writer - Reserved"]
pub type I2S2_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `I3C_MST_APB_CLK_EN` reader - Reserved"]
pub type I3C_MST_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `I3C_MST_APB_CLK_EN` writer - Reserved"]
pub type I3C_MST_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `I3C_SLV_APB_CLK_EN` reader - Reserved"]
pub type I3C_SLV_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `I3C_SLV_APB_CLK_EN` writer - Reserved"]
pub type I3C_SLV_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `GPSPI2_APB_CLK_EN` reader - Reserved"]
pub type GPSPI2_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `GPSPI2_APB_CLK_EN` writer - Reserved"]
pub type GPSPI2_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `GPSPI3_APB_CLK_EN` reader - Reserved"]
pub type GPSPI3_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `GPSPI3_APB_CLK_EN` writer - Reserved"]
pub type GPSPI3_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TIMERGRP0_APB_CLK_EN` reader - Reserved"]
pub type TIMERGRP0_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `TIMERGRP0_APB_CLK_EN` writer - Reserved"]
pub type TIMERGRP0_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TIMERGRP1_APB_CLK_EN` reader - Reserved"]
pub type TIMERGRP1_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `TIMERGRP1_APB_CLK_EN` writer - Reserved"]
pub type TIMERGRP1_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SYSTIMER_APB_CLK_EN` reader - Reserved"]
pub type SYSTIMER_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `SYSTIMER_APB_CLK_EN` writer - Reserved"]
pub type SYSTIMER_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TWAI0_APB_CLK_EN` reader - Reserved"]
pub type TWAI0_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `TWAI0_APB_CLK_EN` writer - Reserved"]
pub type TWAI0_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TWAI1_APB_CLK_EN` reader - Reserved"]
pub type TWAI1_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `TWAI1_APB_CLK_EN` writer - Reserved"]
pub type TWAI1_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TWAI2_APB_CLK_EN` reader - Reserved"]
pub type TWAI2_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `TWAI2_APB_CLK_EN` writer - Reserved"]
pub type TWAI2_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MCPWM0_APB_CLK_EN` reader - Reserved"]
pub type MCPWM0_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `MCPWM0_APB_CLK_EN` writer - Reserved"]
pub type MCPWM0_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `MCPWM1_APB_CLK_EN` reader - Reserved"]
pub type MCPWM1_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `MCPWM1_APB_CLK_EN` writer - Reserved"]
pub type MCPWM1_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `USB_DEVICE_APB_CLK_EN` reader - Reserved"]
pub type USB_DEVICE_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `USB_DEVICE_APB_CLK_EN` writer - Reserved"]
pub type USB_DEVICE_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PCNT_APB_CLK_EN` reader - Reserved"]
pub type PCNT_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `PCNT_APB_CLK_EN` writer - Reserved"]
pub type PCNT_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PARLIO_APB_CLK_EN` reader - Reserved"]
pub type PARLIO_APB_CLK_EN_R = crate::BitReader;
#[doc = "Field `PARLIO_APB_CLK_EN` writer - Reserved"]
pub type PARLIO_APB_CLK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - Reserved"]
#[inline(always)]
pub fn rmt_sys_clk_en(&self) -> RMT_SYS_CLK_EN_R {
RMT_SYS_CLK_EN_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - Reserved"]
#[inline(always)]
pub fn hp_clkrst_apb_clk_en(&self) -> HP_CLKRST_APB_CLK_EN_R {
HP_CLKRST_APB_CLK_EN_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - Reserved"]
#[inline(always)]
pub fn sysreg_apb_clk_en(&self) -> SYSREG_APB_CLK_EN_R {
SYSREG_APB_CLK_EN_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - Reserved"]
#[inline(always)]
pub fn icm_apb_clk_en(&self) -> ICM_APB_CLK_EN_R {
ICM_APB_CLK_EN_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - Reserved"]
#[inline(always)]
pub fn intrmtx_apb_clk_en(&self) -> INTRMTX_APB_CLK_EN_R {
INTRMTX_APB_CLK_EN_R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - Reserved"]
#[inline(always)]
pub fn adc_apb_clk_en(&self) -> ADC_APB_CLK_EN_R {
ADC_APB_CLK_EN_R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - Reserved"]
#[inline(always)]
pub fn uhci_apb_clk_en(&self) -> UHCI_APB_CLK_EN_R {
UHCI_APB_CLK_EN_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - Reserved"]
#[inline(always)]
pub fn uart0_apb_clk_en(&self) -> UART0_APB_CLK_EN_R {
UART0_APB_CLK_EN_R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - Reserved"]
#[inline(always)]
pub fn uart1_apb_clk_en(&self) -> UART1_APB_CLK_EN_R {
UART1_APB_CLK_EN_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - Reserved"]
#[inline(always)]
pub fn uart2_apb_clk_en(&self) -> UART2_APB_CLK_EN_R {
UART2_APB_CLK_EN_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - Reserved"]
#[inline(always)]
pub fn uart3_apb_clk_en(&self) -> UART3_APB_CLK_EN_R {
UART3_APB_CLK_EN_R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - Reserved"]
#[inline(always)]
pub fn uart4_apb_clk_en(&self) -> UART4_APB_CLK_EN_R {
UART4_APB_CLK_EN_R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12 - Reserved"]
#[inline(always)]
pub fn i2c0_apb_clk_en(&self) -> I2C0_APB_CLK_EN_R {
I2C0_APB_CLK_EN_R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13 - Reserved"]
#[inline(always)]
pub fn i2c1_apb_clk_en(&self) -> I2C1_APB_CLK_EN_R {
I2C1_APB_CLK_EN_R::new(((self.bits >> 13) & 1) != 0)
}
#[doc = "Bit 14 - Reserved"]
#[inline(always)]
pub fn i2s0_apb_clk_en(&self) -> I2S0_APB_CLK_EN_R {
I2S0_APB_CLK_EN_R::new(((self.bits >> 14) & 1) != 0)
}
#[doc = "Bit 15 - Reserved"]
#[inline(always)]
pub fn i2s1_apb_clk_en(&self) -> I2S1_APB_CLK_EN_R {
I2S1_APB_CLK_EN_R::new(((self.bits >> 15) & 1) != 0)
}
#[doc = "Bit 16 - Reserved"]
#[inline(always)]
pub fn i2s2_apb_clk_en(&self) -> I2S2_APB_CLK_EN_R {
I2S2_APB_CLK_EN_R::new(((self.bits >> 16) & 1) != 0)
}
#[doc = "Bit 17 - Reserved"]
#[inline(always)]
pub fn i3c_mst_apb_clk_en(&self) -> I3C_MST_APB_CLK_EN_R {
I3C_MST_APB_CLK_EN_R::new(((self.bits >> 17) & 1) != 0)
}
#[doc = "Bit 18 - Reserved"]
#[inline(always)]
pub fn i3c_slv_apb_clk_en(&self) -> I3C_SLV_APB_CLK_EN_R {
I3C_SLV_APB_CLK_EN_R::new(((self.bits >> 18) & 1) != 0)
}
#[doc = "Bit 19 - Reserved"]
#[inline(always)]
pub fn gpspi2_apb_clk_en(&self) -> GPSPI2_APB_CLK_EN_R {
GPSPI2_APB_CLK_EN_R::new(((self.bits >> 19) & 1) != 0)
}
#[doc = "Bit 20 - Reserved"]
#[inline(always)]
pub fn gpspi3_apb_clk_en(&self) -> GPSPI3_APB_CLK_EN_R {
GPSPI3_APB_CLK_EN_R::new(((self.bits >> 20) & 1) != 0)
}
#[doc = "Bit 21 - Reserved"]
#[inline(always)]
pub fn timergrp0_apb_clk_en(&self) -> TIMERGRP0_APB_CLK_EN_R {
TIMERGRP0_APB_CLK_EN_R::new(((self.bits >> 21) & 1) != 0)
}
#[doc = "Bit 22 - Reserved"]
#[inline(always)]
pub fn timergrp1_apb_clk_en(&self) -> TIMERGRP1_APB_CLK_EN_R {
TIMERGRP1_APB_CLK_EN_R::new(((self.bits >> 22) & 1) != 0)
}
#[doc = "Bit 23 - Reserved"]
#[inline(always)]
pub fn systimer_apb_clk_en(&self) -> SYSTIMER_APB_CLK_EN_R {
SYSTIMER_APB_CLK_EN_R::new(((self.bits >> 23) & 1) != 0)
}
#[doc = "Bit 24 - Reserved"]
#[inline(always)]
pub fn twai0_apb_clk_en(&self) -> TWAI0_APB_CLK_EN_R {
TWAI0_APB_CLK_EN_R::new(((self.bits >> 24) & 1) != 0)
}
#[doc = "Bit 25 - Reserved"]
#[inline(always)]
pub fn twai1_apb_clk_en(&self) -> TWAI1_APB_CLK_EN_R {
TWAI1_APB_CLK_EN_R::new(((self.bits >> 25) & 1) != 0)
}
#[doc = "Bit 26 - Reserved"]
#[inline(always)]
pub fn twai2_apb_clk_en(&self) -> TWAI2_APB_CLK_EN_R {
TWAI2_APB_CLK_EN_R::new(((self.bits >> 26) & 1) != 0)
}
#[doc = "Bit 27 - Reserved"]
#[inline(always)]
pub fn mcpwm0_apb_clk_en(&self) -> MCPWM0_APB_CLK_EN_R {
MCPWM0_APB_CLK_EN_R::new(((self.bits >> 27) & 1) != 0)
}
#[doc = "Bit 28 - Reserved"]
#[inline(always)]
pub fn mcpwm1_apb_clk_en(&self) -> MCPWM1_APB_CLK_EN_R {
MCPWM1_APB_CLK_EN_R::new(((self.bits >> 28) & 1) != 0)
}
#[doc = "Bit 29 - Reserved"]
#[inline(always)]
pub fn usb_device_apb_clk_en(&self) -> USB_DEVICE_APB_CLK_EN_R {
USB_DEVICE_APB_CLK_EN_R::new(((self.bits >> 29) & 1) != 0)
}
#[doc = "Bit 30 - Reserved"]
#[inline(always)]
pub fn pcnt_apb_clk_en(&self) -> PCNT_APB_CLK_EN_R {
PCNT_APB_CLK_EN_R::new(((self.bits >> 30) & 1) != 0)
}
#[doc = "Bit 31 - Reserved"]
#[inline(always)]
pub fn parlio_apb_clk_en(&self) -> PARLIO_APB_CLK_EN_R {
PARLIO_APB_CLK_EN_R::new(((self.bits >> 31) & 1) != 0)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SOC_CLK_CTRL2")
.field(
"rmt_sys_clk_en",
&format_args!("{}", self.rmt_sys_clk_en().bit()),
)
.field(
"hp_clkrst_apb_clk_en",
&format_args!("{}", self.hp_clkrst_apb_clk_en().bit()),
)
.field(
"sysreg_apb_clk_en",
&format_args!("{}", self.sysreg_apb_clk_en().bit()),
)
.field(
"icm_apb_clk_en",
&format_args!("{}", self.icm_apb_clk_en().bit()),
)
.field(
"intrmtx_apb_clk_en",
&format_args!("{}", self.intrmtx_apb_clk_en().bit()),
)
.field(
"adc_apb_clk_en",
&format_args!("{}", self.adc_apb_clk_en().bit()),
)
.field(
"uhci_apb_clk_en",
&format_args!("{}", self.uhci_apb_clk_en().bit()),
)
.field(
"uart0_apb_clk_en",
&format_args!("{}", self.uart0_apb_clk_en().bit()),
)
.field(
"uart1_apb_clk_en",
&format_args!("{}", self.uart1_apb_clk_en().bit()),
)
.field(
"uart2_apb_clk_en",
&format_args!("{}", self.uart2_apb_clk_en().bit()),
)
.field(
"uart3_apb_clk_en",
&format_args!("{}", self.uart3_apb_clk_en().bit()),
)
.field(
"uart4_apb_clk_en",
&format_args!("{}", self.uart4_apb_clk_en().bit()),
)
.field(
"i2c0_apb_clk_en",
&format_args!("{}", self.i2c0_apb_clk_en().bit()),
)
.field(
"i2c1_apb_clk_en",
&format_args!("{}", self.i2c1_apb_clk_en().bit()),
)
.field(
"i2s0_apb_clk_en",
&format_args!("{}", self.i2s0_apb_clk_en().bit()),
)
.field(
"i2s1_apb_clk_en",
&format_args!("{}", self.i2s1_apb_clk_en().bit()),
)
.field(
"i2s2_apb_clk_en",
&format_args!("{}", self.i2s2_apb_clk_en().bit()),
)
.field(
"i3c_mst_apb_clk_en",
&format_args!("{}", self.i3c_mst_apb_clk_en().bit()),
)
.field(
"i3c_slv_apb_clk_en",
&format_args!("{}", self.i3c_slv_apb_clk_en().bit()),
)
.field(
"gpspi2_apb_clk_en",
&format_args!("{}", self.gpspi2_apb_clk_en().bit()),
)
.field(
"gpspi3_apb_clk_en",
&format_args!("{}", self.gpspi3_apb_clk_en().bit()),
)
.field(
"timergrp0_apb_clk_en",
&format_args!("{}", self.timergrp0_apb_clk_en().bit()),
)
.field(
"timergrp1_apb_clk_en",
&format_args!("{}", self.timergrp1_apb_clk_en().bit()),
)
.field(
"systimer_apb_clk_en",
&format_args!("{}", self.systimer_apb_clk_en().bit()),
)
.field(
"twai0_apb_clk_en",
&format_args!("{}", self.twai0_apb_clk_en().bit()),
)
.field(
"twai1_apb_clk_en",
&format_args!("{}", self.twai1_apb_clk_en().bit()),
)
.field(
"twai2_apb_clk_en",
&format_args!("{}", self.twai2_apb_clk_en().bit()),
)
.field(
"mcpwm0_apb_clk_en",
&format_args!("{}", self.mcpwm0_apb_clk_en().bit()),
)
.field(
"mcpwm1_apb_clk_en",
&format_args!("{}", self.mcpwm1_apb_clk_en().bit()),
)
.field(
"usb_device_apb_clk_en",
&format_args!("{}", self.usb_device_apb_clk_en().bit()),
)
.field(
"pcnt_apb_clk_en",
&format_args!("{}", self.pcnt_apb_clk_en().bit()),
)
.field(
"parlio_apb_clk_en",
&format_args!("{}", self.parlio_apb_clk_en().bit()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<SOC_CLK_CTRL2_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Debug::fmt(&self.read(), f)
}
}
impl W {
#[doc = "Bit 0 - Reserved"]
#[inline(always)]
#[must_use]
pub fn rmt_sys_clk_en(&mut self) -> RMT_SYS_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
RMT_SYS_CLK_EN_W::new(self, 0)
}
#[doc = "Bit 1 - Reserved"]
#[inline(always)]
#[must_use]
pub fn hp_clkrst_apb_clk_en(&mut self) -> HP_CLKRST_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
HP_CLKRST_APB_CLK_EN_W::new(self, 1)
}
#[doc = "Bit 2 - Reserved"]
#[inline(always)]
#[must_use]
pub fn sysreg_apb_clk_en(&mut self) -> SYSREG_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
SYSREG_APB_CLK_EN_W::new(self, 2)
}
#[doc = "Bit 3 - Reserved"]
#[inline(always)]
#[must_use]
pub fn icm_apb_clk_en(&mut self) -> ICM_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
ICM_APB_CLK_EN_W::new(self, 3)
}
#[doc = "Bit 4 - Reserved"]
#[inline(always)]
#[must_use]
pub fn intrmtx_apb_clk_en(&mut self) -> INTRMTX_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
INTRMTX_APB_CLK_EN_W::new(self, 4)
}
#[doc = "Bit 5 - Reserved"]
#[inline(always)]
#[must_use]
pub fn adc_apb_clk_en(&mut self) -> ADC_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
ADC_APB_CLK_EN_W::new(self, 5)
}
#[doc = "Bit 6 - Reserved"]
#[inline(always)]
#[must_use]
pub fn uhci_apb_clk_en(&mut self) -> UHCI_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
UHCI_APB_CLK_EN_W::new(self, 6)
}
#[doc = "Bit 7 - Reserved"]
#[inline(always)]
#[must_use]
pub fn uart0_apb_clk_en(&mut self) -> UART0_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
UART0_APB_CLK_EN_W::new(self, 7)
}
#[doc = "Bit 8 - Reserved"]
#[inline(always)]
#[must_use]
pub fn uart1_apb_clk_en(&mut self) -> UART1_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
UART1_APB_CLK_EN_W::new(self, 8)
}
#[doc = "Bit 9 - Reserved"]
#[inline(always)]
#[must_use]
pub fn uart2_apb_clk_en(&mut self) -> UART2_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
UART2_APB_CLK_EN_W::new(self, 9)
}
#[doc = "Bit 10 - Reserved"]
#[inline(always)]
#[must_use]
pub fn uart3_apb_clk_en(&mut self) -> UART3_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
UART3_APB_CLK_EN_W::new(self, 10)
}
#[doc = "Bit 11 - Reserved"]
#[inline(always)]
#[must_use]
pub fn uart4_apb_clk_en(&mut self) -> UART4_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
UART4_APB_CLK_EN_W::new(self, 11)
}
#[doc = "Bit 12 - Reserved"]
#[inline(always)]
#[must_use]
pub fn i2c0_apb_clk_en(&mut self) -> I2C0_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
I2C0_APB_CLK_EN_W::new(self, 12)
}
#[doc = "Bit 13 - Reserved"]
#[inline(always)]
#[must_use]
pub fn i2c1_apb_clk_en(&mut self) -> I2C1_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
I2C1_APB_CLK_EN_W::new(self, 13)
}
#[doc = "Bit 14 - Reserved"]
#[inline(always)]
#[must_use]
pub fn i2s0_apb_clk_en(&mut self) -> I2S0_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
I2S0_APB_CLK_EN_W::new(self, 14)
}
#[doc = "Bit 15 - Reserved"]
#[inline(always)]
#[must_use]
pub fn i2s1_apb_clk_en(&mut self) -> I2S1_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
I2S1_APB_CLK_EN_W::new(self, 15)
}
#[doc = "Bit 16 - Reserved"]
#[inline(always)]
#[must_use]
pub fn i2s2_apb_clk_en(&mut self) -> I2S2_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
I2S2_APB_CLK_EN_W::new(self, 16)
}
#[doc = "Bit 17 - Reserved"]
#[inline(always)]
#[must_use]
pub fn i3c_mst_apb_clk_en(&mut self) -> I3C_MST_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
I3C_MST_APB_CLK_EN_W::new(self, 17)
}
#[doc = "Bit 18 - Reserved"]
#[inline(always)]
#[must_use]
pub fn i3c_slv_apb_clk_en(&mut self) -> I3C_SLV_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
I3C_SLV_APB_CLK_EN_W::new(self, 18)
}
#[doc = "Bit 19 - Reserved"]
#[inline(always)]
#[must_use]
pub fn gpspi2_apb_clk_en(&mut self) -> GPSPI2_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
GPSPI2_APB_CLK_EN_W::new(self, 19)
}
#[doc = "Bit 20 - Reserved"]
#[inline(always)]
#[must_use]
pub fn gpspi3_apb_clk_en(&mut self) -> GPSPI3_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
GPSPI3_APB_CLK_EN_W::new(self, 20)
}
#[doc = "Bit 21 - Reserved"]
#[inline(always)]
#[must_use]
pub fn timergrp0_apb_clk_en(&mut self) -> TIMERGRP0_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
TIMERGRP0_APB_CLK_EN_W::new(self, 21)
}
#[doc = "Bit 22 - Reserved"]
#[inline(always)]
#[must_use]
pub fn timergrp1_apb_clk_en(&mut self) -> TIMERGRP1_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
TIMERGRP1_APB_CLK_EN_W::new(self, 22)
}
#[doc = "Bit 23 - Reserved"]
#[inline(always)]
#[must_use]
pub fn systimer_apb_clk_en(&mut self) -> SYSTIMER_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
SYSTIMER_APB_CLK_EN_W::new(self, 23)
}
#[doc = "Bit 24 - Reserved"]
#[inline(always)]
#[must_use]
pub fn twai0_apb_clk_en(&mut self) -> TWAI0_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
TWAI0_APB_CLK_EN_W::new(self, 24)
}
#[doc = "Bit 25 - Reserved"]
#[inline(always)]
#[must_use]
pub fn twai1_apb_clk_en(&mut self) -> TWAI1_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
TWAI1_APB_CLK_EN_W::new(self, 25)
}
#[doc = "Bit 26 - Reserved"]
#[inline(always)]
#[must_use]
pub fn twai2_apb_clk_en(&mut self) -> TWAI2_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
TWAI2_APB_CLK_EN_W::new(self, 26)
}
#[doc = "Bit 27 - Reserved"]
#[inline(always)]
#[must_use]
pub fn mcpwm0_apb_clk_en(&mut self) -> MCPWM0_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
MCPWM0_APB_CLK_EN_W::new(self, 27)
}
#[doc = "Bit 28 - Reserved"]
#[inline(always)]
#[must_use]
pub fn mcpwm1_apb_clk_en(&mut self) -> MCPWM1_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
MCPWM1_APB_CLK_EN_W::new(self, 28)
}
#[doc = "Bit 29 - Reserved"]
#[inline(always)]
#[must_use]
pub fn usb_device_apb_clk_en(&mut self) -> USB_DEVICE_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
USB_DEVICE_APB_CLK_EN_W::new(self, 29)
}
#[doc = "Bit 30 - Reserved"]
#[inline(always)]
#[must_use]
pub fn pcnt_apb_clk_en(&mut self) -> PCNT_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
PCNT_APB_CLK_EN_W::new(self, 30)
}
#[doc = "Bit 31 - Reserved"]
#[inline(always)]
#[must_use]
pub fn parlio_apb_clk_en(&mut self) -> PARLIO_APB_CLK_EN_W<SOC_CLK_CTRL2_SPEC> {
PARLIO_APB_CLK_EN_W::new(self, 31)
}
}
#[doc = "Reserved\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`soc_clk_ctrl2::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`soc_clk_ctrl2::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SOC_CLK_CTRL2_SPEC;
impl crate::RegisterSpec for SOC_CLK_CTRL2_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`soc_clk_ctrl2::R`](R) reader structure"]
impl crate::Readable for SOC_CLK_CTRL2_SPEC {}
#[doc = "`write(|w| ..)` method takes [`soc_clk_ctrl2::W`](W) writer structure"]
impl crate::Writable for SOC_CLK_CTRL2_SPEC {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets SOC_CLK_CTRL2 to value 0x20f8_0fde"]
impl crate::Resettable for SOC_CLK_CTRL2_SPEC {
const RESET_VALUE: u32 = 0x20f8_0fde;
}