pub type R = crate::R<WPCR1rs>;
pub type W = crate::W<WPCR1rs>;
pub type SKEWCL_R = crate::FieldReader;
pub type SKEWCL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type SKEWDL_R = crate::FieldReader;
pub type SKEWDL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type LPTXSRCL_R = crate::FieldReader;
pub type LPTXSRCL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type LPTXSRDL_R = crate::FieldReader;
pub type LPTXSRDL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type SDDCCL_R = crate::BitReader;
pub type SDDCCL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SDDCDL_R = crate::BitReader;
pub type SDDCDL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSTXSRUCL_R = crate::BitReader;
pub type HSTXSRUCL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSTXSRDCL_R = crate::BitReader;
pub type HSTXSRDCL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSTXSRUDL_R = crate::BitReader;
pub type HSTXSRUDL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSTXSRDDL_R = crate::BitReader;
pub type HSTXSRDDL_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn skewcl(&self) -> SKEWCL_R {
SKEWCL_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn skewdl(&self) -> SKEWDL_R {
SKEWDL_R::new(((self.bits >> 2) & 3) as u8)
}
#[inline(always)]
pub fn lptxsrcl(&self) -> LPTXSRCL_R {
LPTXSRCL_R::new(((self.bits >> 6) & 3) as u8)
}
#[inline(always)]
pub fn lptxsrdl(&self) -> LPTXSRDL_R {
LPTXSRDL_R::new(((self.bits >> 8) & 3) as u8)
}
#[inline(always)]
pub fn sddccl(&self) -> SDDCCL_R {
SDDCCL_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn sddcdl(&self) -> SDDCDL_R {
SDDCDL_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn hstxsrucl(&self) -> HSTXSRUCL_R {
HSTXSRUCL_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn hstxsrdcl(&self) -> HSTXSRDCL_R {
HSTXSRDCL_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn hstxsrudl(&self) -> HSTXSRUDL_R {
HSTXSRUDL_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn hstxsrddl(&self) -> HSTXSRDDL_R {
HSTXSRDDL_R::new(((self.bits >> 19) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WPCR1")
.field("skewcl", &self.skewcl())
.field("skewdl", &self.skewdl())
.field("lptxsrcl", &self.lptxsrcl())
.field("lptxsrdl", &self.lptxsrdl())
.field("sddccl", &self.sddccl())
.field("sddcdl", &self.sddcdl())
.field("hstxsrucl", &self.hstxsrucl())
.field("hstxsrdcl", &self.hstxsrdcl())
.field("hstxsrudl", &self.hstxsrudl())
.field("hstxsrddl", &self.hstxsrddl())
.finish()
}
}
impl W {
#[inline(always)]
pub fn skewcl(&mut self) -> SKEWCL_W<WPCR1rs> {
SKEWCL_W::new(self, 0)
}
#[inline(always)]
pub fn skewdl(&mut self) -> SKEWDL_W<WPCR1rs> {
SKEWDL_W::new(self, 2)
}
#[inline(always)]
pub fn lptxsrcl(&mut self) -> LPTXSRCL_W<WPCR1rs> {
LPTXSRCL_W::new(self, 6)
}
#[inline(always)]
pub fn lptxsrdl(&mut self) -> LPTXSRDL_W<WPCR1rs> {
LPTXSRDL_W::new(self, 8)
}
#[inline(always)]
pub fn sddccl(&mut self) -> SDDCCL_W<WPCR1rs> {
SDDCCL_W::new(self, 12)
}
#[inline(always)]
pub fn sddcdl(&mut self) -> SDDCDL_W<WPCR1rs> {
SDDCDL_W::new(self, 13)
}
#[inline(always)]
pub fn hstxsrucl(&mut self) -> HSTXSRUCL_W<WPCR1rs> {
HSTXSRUCL_W::new(self, 16)
}
#[inline(always)]
pub fn hstxsrdcl(&mut self) -> HSTXSRDCL_W<WPCR1rs> {
HSTXSRDCL_W::new(self, 17)
}
#[inline(always)]
pub fn hstxsrudl(&mut self) -> HSTXSRUDL_W<WPCR1rs> {
HSTXSRUDL_W::new(self, 18)
}
#[inline(always)]
pub fn hstxsrddl(&mut self) -> HSTXSRDDL_W<WPCR1rs> {
HSTXSRDDL_W::new(self, 19)
}
}
pub struct WPCR1rs;
impl crate::RegisterSpec for WPCR1rs {
type Ux = u32;
}
impl crate::Readable for WPCR1rs {}
impl crate::Writable for WPCR1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WPCR1rs {}