pub type R = crate::R<WPCR1rs>;
pub type W = crate::W<WPCR1rs>;
pub type HSTXDCL_R = crate::FieldReader;
pub type HSTXDCL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type HSTXDDL_R = crate::FieldReader;
pub type HSTXDDL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type LPSRCCL_R = crate::FieldReader;
pub type LPSRCCL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type LPSRCDL_R = crate::FieldReader;
pub type LPSRCDL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type SDDC_R = crate::BitReader;
pub type SDDC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSTXSRCCL_R = crate::FieldReader;
pub type HSTXSRCCL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type HSTXSRCDL_R = crate::FieldReader;
pub type HSTXSRCDL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type FLPRXLPM_R = crate::BitReader;
pub type FLPRXLPM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPRXFT_R = crate::FieldReader;
pub type LPRXFT_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[inline(always)]
pub fn hstxdcl(&self) -> HSTXDCL_R {
HSTXDCL_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn hstxddl(&self) -> HSTXDDL_R {
HSTXDDL_R::new(((self.bits >> 2) & 3) as u8)
}
#[inline(always)]
pub fn lpsrccl(&self) -> LPSRCCL_R {
LPSRCCL_R::new(((self.bits >> 6) & 3) as u8)
}
#[inline(always)]
pub fn lpsrcdl(&self) -> LPSRCDL_R {
LPSRCDL_R::new(((self.bits >> 8) & 3) as u8)
}
#[inline(always)]
pub fn sddc(&self) -> SDDC_R {
SDDC_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn hstxsrccl(&self) -> HSTXSRCCL_R {
HSTXSRCCL_R::new(((self.bits >> 16) & 3) as u8)
}
#[inline(always)]
pub fn hstxsrcdl(&self) -> HSTXSRCDL_R {
HSTXSRCDL_R::new(((self.bits >> 18) & 3) as u8)
}
#[inline(always)]
pub fn flprxlpm(&self) -> FLPRXLPM_R {
FLPRXLPM_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn lprxft(&self) -> LPRXFT_R {
LPRXFT_R::new(((self.bits >> 25) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WPCR1")
.field("hstxdcl", &self.hstxdcl())
.field("hstxddl", &self.hstxddl())
.field("lpsrccl", &self.lpsrccl())
.field("lpsrcdl", &self.lpsrcdl())
.field("sddc", &self.sddc())
.field("hstxsrccl", &self.hstxsrccl())
.field("hstxsrcdl", &self.hstxsrcdl())
.field("flprxlpm", &self.flprxlpm())
.field("lprxft", &self.lprxft())
.finish()
}
}
impl W {
#[inline(always)]
pub fn hstxdcl(&mut self) -> HSTXDCL_W<WPCR1rs> {
HSTXDCL_W::new(self, 0)
}
#[inline(always)]
pub fn hstxddl(&mut self) -> HSTXDDL_W<WPCR1rs> {
HSTXDDL_W::new(self, 2)
}
#[inline(always)]
pub fn lpsrccl(&mut self) -> LPSRCCL_W<WPCR1rs> {
LPSRCCL_W::new(self, 6)
}
#[inline(always)]
pub fn lpsrcdl(&mut self) -> LPSRCDL_W<WPCR1rs> {
LPSRCDL_W::new(self, 8)
}
#[inline(always)]
pub fn sddc(&mut self) -> SDDC_W<WPCR1rs> {
SDDC_W::new(self, 12)
}
#[inline(always)]
pub fn hstxsrccl(&mut self) -> HSTXSRCCL_W<WPCR1rs> {
HSTXSRCCL_W::new(self, 16)
}
#[inline(always)]
pub fn hstxsrcdl(&mut self) -> HSTXSRCDL_W<WPCR1rs> {
HSTXSRCDL_W::new(self, 18)
}
#[inline(always)]
pub fn flprxlpm(&mut self) -> FLPRXLPM_W<WPCR1rs> {
FLPRXLPM_W::new(self, 22)
}
#[inline(always)]
pub fn lprxft(&mut self) -> LPRXFT_W<WPCR1rs> {
LPRXFT_W::new(self, 25)
}
}
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 {}