pub type R = crate::R<WPCR0rs>;
pub type W = crate::W<WPCR0rs>;
pub type UIX4_R = crate::FieldReader;
pub type UIX4_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
pub type SWCL_R = crate::BitReader;
pub type SWCL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWDL0_R = crate::BitReader;
pub type SWDL0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWDL1_R = crate::BitReader;
pub type SWDL1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSICL_R = crate::BitReader;
pub type HSICL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSIDL0_R = crate::BitReader;
pub type HSIDL0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSIDL1_R = crate::BitReader;
pub type HSIDL1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FTXSMCL_R = crate::BitReader;
pub type FTXSMCL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FTXSMDL_R = crate::BitReader;
pub type FTXSMDL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CDOFFDL_R = crate::BitReader;
pub type CDOFFDL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TDDL_R = crate::BitReader;
pub type TDDL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDEN_R = crate::BitReader;
pub type PDEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TCLKPREPEN_R = crate::BitReader;
pub type TCLKPREPEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TCLKZEROEN_R = crate::BitReader;
pub type TCLKZEROEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type THSPREPEN_R = crate::BitReader;
pub type THSPREPEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type THSTRAILEN_R = crate::BitReader;
pub type THSTRAILEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type THSZEROEN_R = crate::BitReader;
pub type THSZEROEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TLPXDEN_R = crate::BitReader;
pub type TLPXDEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type THSEXITEN_R = crate::BitReader;
pub type THSEXITEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TLPXCEN_R = crate::BitReader;
pub type TLPXCEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TCLKPOSTEN_R = crate::BitReader;
pub type TCLKPOSTEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn uix4(&self) -> UIX4_R {
UIX4_R::new((self.bits & 0x3f) as u8)
}
#[inline(always)]
pub fn swcl(&self) -> SWCL_R {
SWCL_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn swdl0(&self) -> SWDL0_R {
SWDL0_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn swdl1(&self) -> SWDL1_R {
SWDL1_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn hsicl(&self) -> HSICL_R {
HSICL_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn hsidl0(&self) -> HSIDL0_R {
HSIDL0_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn hsidl1(&self) -> HSIDL1_R {
HSIDL1_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn ftxsmcl(&self) -> FTXSMCL_R {
FTXSMCL_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn ftxsmdl(&self) -> FTXSMDL_R {
FTXSMDL_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn cdoffdl(&self) -> CDOFFDL_R {
CDOFFDL_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn tddl(&self) -> TDDL_R {
TDDL_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn pden(&self) -> PDEN_R {
PDEN_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn tclkprepen(&self) -> TCLKPREPEN_R {
TCLKPREPEN_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn tclkzeroen(&self) -> TCLKZEROEN_R {
TCLKZEROEN_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn thsprepen(&self) -> THSPREPEN_R {
THSPREPEN_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn thstrailen(&self) -> THSTRAILEN_R {
THSTRAILEN_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn thszeroen(&self) -> THSZEROEN_R {
THSZEROEN_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn tlpxden(&self) -> TLPXDEN_R {
TLPXDEN_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn thsexiten(&self) -> THSEXITEN_R {
THSEXITEN_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn tlpxcen(&self) -> TLPXCEN_R {
TLPXCEN_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn tclkposten(&self) -> TCLKPOSTEN_R {
TCLKPOSTEN_R::new(((self.bits >> 27) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WPCR0")
.field("uix4", &self.uix4())
.field("swcl", &self.swcl())
.field("swdl0", &self.swdl0())
.field("swdl1", &self.swdl1())
.field("hsicl", &self.hsicl())
.field("hsidl0", &self.hsidl0())
.field("hsidl1", &self.hsidl1())
.field("ftxsmcl", &self.ftxsmcl())
.field("ftxsmdl", &self.ftxsmdl())
.field("cdoffdl", &self.cdoffdl())
.field("tddl", &self.tddl())
.field("pden", &self.pden())
.field("tclkprepen", &self.tclkprepen())
.field("tclkzeroen", &self.tclkzeroen())
.field("thsprepen", &self.thsprepen())
.field("thstrailen", &self.thstrailen())
.field("thszeroen", &self.thszeroen())
.field("tlpxden", &self.tlpxden())
.field("thsexiten", &self.thsexiten())
.field("tlpxcen", &self.tlpxcen())
.field("tclkposten", &self.tclkposten())
.finish()
}
}
impl W {
#[inline(always)]
pub fn uix4(&mut self) -> UIX4_W<WPCR0rs> {
UIX4_W::new(self, 0)
}
#[inline(always)]
pub fn swcl(&mut self) -> SWCL_W<WPCR0rs> {
SWCL_W::new(self, 6)
}
#[inline(always)]
pub fn swdl0(&mut self) -> SWDL0_W<WPCR0rs> {
SWDL0_W::new(self, 7)
}
#[inline(always)]
pub fn swdl1(&mut self) -> SWDL1_W<WPCR0rs> {
SWDL1_W::new(self, 8)
}
#[inline(always)]
pub fn hsicl(&mut self) -> HSICL_W<WPCR0rs> {
HSICL_W::new(self, 9)
}
#[inline(always)]
pub fn hsidl0(&mut self) -> HSIDL0_W<WPCR0rs> {
HSIDL0_W::new(self, 10)
}
#[inline(always)]
pub fn hsidl1(&mut self) -> HSIDL1_W<WPCR0rs> {
HSIDL1_W::new(self, 11)
}
#[inline(always)]
pub fn ftxsmcl(&mut self) -> FTXSMCL_W<WPCR0rs> {
FTXSMCL_W::new(self, 12)
}
#[inline(always)]
pub fn ftxsmdl(&mut self) -> FTXSMDL_W<WPCR0rs> {
FTXSMDL_W::new(self, 13)
}
#[inline(always)]
pub fn cdoffdl(&mut self) -> CDOFFDL_W<WPCR0rs> {
CDOFFDL_W::new(self, 14)
}
#[inline(always)]
pub fn tddl(&mut self) -> TDDL_W<WPCR0rs> {
TDDL_W::new(self, 16)
}
#[inline(always)]
pub fn pden(&mut self) -> PDEN_W<WPCR0rs> {
PDEN_W::new(self, 18)
}
#[inline(always)]
pub fn tclkprepen(&mut self) -> TCLKPREPEN_W<WPCR0rs> {
TCLKPREPEN_W::new(self, 19)
}
#[inline(always)]
pub fn tclkzeroen(&mut self) -> TCLKZEROEN_W<WPCR0rs> {
TCLKZEROEN_W::new(self, 20)
}
#[inline(always)]
pub fn thsprepen(&mut self) -> THSPREPEN_W<WPCR0rs> {
THSPREPEN_W::new(self, 21)
}
#[inline(always)]
pub fn thstrailen(&mut self) -> THSTRAILEN_W<WPCR0rs> {
THSTRAILEN_W::new(self, 22)
}
#[inline(always)]
pub fn thszeroen(&mut self) -> THSZEROEN_W<WPCR0rs> {
THSZEROEN_W::new(self, 23)
}
#[inline(always)]
pub fn tlpxden(&mut self) -> TLPXDEN_W<WPCR0rs> {
TLPXDEN_W::new(self, 24)
}
#[inline(always)]
pub fn thsexiten(&mut self) -> THSEXITEN_W<WPCR0rs> {
THSEXITEN_W::new(self, 25)
}
#[inline(always)]
pub fn tlpxcen(&mut self) -> TLPXCEN_W<WPCR0rs> {
TLPXCEN_W::new(self, 26)
}
#[inline(always)]
pub fn tclkposten(&mut self) -> TCLKPOSTEN_W<WPCR0rs> {
TCLKPOSTEN_W::new(self, 27)
}
}
pub struct WPCR0rs;
impl crate::RegisterSpec for WPCR0rs {
type Ux = u32;
}
impl crate::Readable for WPCR0rs {}
impl crate::Writable for WPCR0rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WPCR0rs {}