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>;
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)
}
}
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())
.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)
}
}
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 {}