pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type TES_R = crate::FieldReader;
pub type TES_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type TEPOL_R = crate::BitReader;
pub type TEPOL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SYNCS_R = crate::FieldReader;
pub type SYNCS_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type FCCOE_R = crate::BitReader;
pub type FCCOE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LCCOE_R = crate::BitReader;
pub type LCCOE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tes(&self) -> TES_R {
TES_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn tepol(&self) -> TEPOL_R {
TEPOL_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn syncs(&self) -> SYNCS_R {
SYNCS_R::new(((self.bits >> 8) & 3) as u8)
}
#[inline(always)]
pub fn fccoe(&self) -> FCCOE_R {
FCCOE_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn lccoe(&self) -> LCCOE_R {
LCCOE_R::new(((self.bits >> 17) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CR")
.field("tes", &self.tes())
.field("tepol", &self.tepol())
.field("syncs", &self.syncs())
.field("fccoe", &self.fccoe())
.field("lccoe", &self.lccoe())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tes(&mut self) -> TES_W<CRrs> {
TES_W::new(self, 0)
}
#[inline(always)]
pub fn tepol(&mut self) -> TEPOL_W<CRrs> {
TEPOL_W::new(self, 4)
}
#[inline(always)]
pub fn syncs(&mut self) -> SYNCS_W<CRrs> {
SYNCS_W::new(self, 8)
}
#[inline(always)]
pub fn fccoe(&mut self) -> FCCOE_W<CRrs> {
FCCOE_W::new(self, 16)
}
#[inline(always)]
pub fn lccoe(&mut self) -> LCCOE_W<CRrs> {
LCCOE_W::new(self, 17)
}
}
pub struct CRrs;
impl crate::RegisterSpec for CRrs {
type Ux = u32;
}
impl crate::Readable for CRrs {}
impl crate::Writable for CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CRrs {}