pub type R = crate::R<PRCRrs>;
pub type W = crate::W<PRCRrs>;
pub type ESS_R = crate::BitReader;
pub type ESS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PCKPOL_R = crate::BitReader;
pub type PCKPOL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSPOL_R = crate::BitReader;
pub type HSPOL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type VSPOL_R = crate::BitReader;
pub type VSPOL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EDM_R = crate::FieldReader;
pub type EDM_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type ENABLE_R = crate::BitReader;
pub type ENABLE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FORMAT_R = crate::FieldReader;
pub type FORMAT_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type SWAPCYCLES_R = crate::BitReader;
pub type SWAPCYCLES_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWAPBITS_R = crate::BitReader;
pub type SWAPBITS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn ess(&self) -> ESS_R {
ESS_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn pckpol(&self) -> PCKPOL_R {
PCKPOL_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn hspol(&self) -> HSPOL_R {
HSPOL_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn vspol(&self) -> VSPOL_R {
VSPOL_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn edm(&self) -> EDM_R {
EDM_R::new(((self.bits >> 10) & 7) as u8)
}
#[inline(always)]
pub fn enable(&self) -> ENABLE_R {
ENABLE_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn format(&self) -> FORMAT_R {
FORMAT_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn swapcycles(&self) -> SWAPCYCLES_R {
SWAPCYCLES_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn swapbits(&self) -> SWAPBITS_R {
SWAPBITS_R::new(((self.bits >> 26) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PRCR")
.field("ess", &self.ess())
.field("pckpol", &self.pckpol())
.field("hspol", &self.hspol())
.field("vspol", &self.vspol())
.field("edm", &self.edm())
.field("enable", &self.enable())
.field("format", &self.format())
.field("swapcycles", &self.swapcycles())
.field("swapbits", &self.swapbits())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ess(&mut self) -> ESS_W<PRCRrs> {
ESS_W::new(self, 4)
}
#[inline(always)]
pub fn pckpol(&mut self) -> PCKPOL_W<PRCRrs> {
PCKPOL_W::new(self, 5)
}
#[inline(always)]
pub fn hspol(&mut self) -> HSPOL_W<PRCRrs> {
HSPOL_W::new(self, 6)
}
#[inline(always)]
pub fn vspol(&mut self) -> VSPOL_W<PRCRrs> {
VSPOL_W::new(self, 7)
}
#[inline(always)]
pub fn edm(&mut self) -> EDM_W<PRCRrs> {
EDM_W::new(self, 10)
}
#[inline(always)]
pub fn enable(&mut self) -> ENABLE_W<PRCRrs> {
ENABLE_W::new(self, 14)
}
#[inline(always)]
pub fn format(&mut self) -> FORMAT_W<PRCRrs> {
FORMAT_W::new(self, 16)
}
#[inline(always)]
pub fn swapcycles(&mut self) -> SWAPCYCLES_W<PRCRrs> {
SWAPCYCLES_W::new(self, 25)
}
#[inline(always)]
pub fn swapbits(&mut self) -> SWAPBITS_W<PRCRrs> {
SWAPBITS_W::new(self, 26)
}
}
pub struct PRCRrs;
impl crate::RegisterSpec for PRCRrs {
type Ux = u32;
}
impl crate::Readable for PRCRrs {}
impl crate::Writable for PRCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PRCRrs {}