pub type R = crate::R<C7CRrs>;
pub type W = crate::W<C7CRrs>;
pub type EN_R = crate::BitReader;
pub type EN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TEIE_R = crate::BitReader;
pub type TEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CTCIE_R = crate::BitReader;
pub type CTCIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BRTIE_R = crate::BitReader;
pub type BRTIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BTIE_R = crate::BitReader;
pub type BTIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TCIE_R = crate::BitReader;
pub type TCIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PL_R = crate::FieldReader;
pub type PL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type BEX_R = crate::BitReader;
pub type BEX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HEX_R = crate::BitReader;
pub type HEX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WEX_R = crate::BitReader;
pub type WEX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWRQ_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn en(&self) -> EN_R {
EN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn teie(&self) -> TEIE_R {
TEIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ctcie(&self) -> CTCIE_R {
CTCIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn brtie(&self) -> BRTIE_R {
BRTIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn btie(&self) -> BTIE_R {
BTIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn tcie(&self) -> TCIE_R {
TCIE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn pl(&self) -> PL_R {
PL_R::new(((self.bits >> 6) & 3) as u8)
}
#[inline(always)]
pub fn bex(&self) -> BEX_R {
BEX_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn hex(&self) -> HEX_R {
HEX_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn wex(&self) -> WEX_R {
WEX_R::new(((self.bits >> 14) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("C7CR")
.field("en", &self.en())
.field("teie", &self.teie())
.field("ctcie", &self.ctcie())
.field("brtie", &self.brtie())
.field("btie", &self.btie())
.field("tcie", &self.tcie())
.field("pl", &self.pl())
.field("bex", &self.bex())
.field("hex", &self.hex())
.field("wex", &self.wex())
.finish()
}
}
impl W {
#[inline(always)]
pub fn en(&mut self) -> EN_W<C7CRrs> {
EN_W::new(self, 0)
}
#[inline(always)]
pub fn teie(&mut self) -> TEIE_W<C7CRrs> {
TEIE_W::new(self, 1)
}
#[inline(always)]
pub fn ctcie(&mut self) -> CTCIE_W<C7CRrs> {
CTCIE_W::new(self, 2)
}
#[inline(always)]
pub fn brtie(&mut self) -> BRTIE_W<C7CRrs> {
BRTIE_W::new(self, 3)
}
#[inline(always)]
pub fn btie(&mut self) -> BTIE_W<C7CRrs> {
BTIE_W::new(self, 4)
}
#[inline(always)]
pub fn tcie(&mut self) -> TCIE_W<C7CRrs> {
TCIE_W::new(self, 5)
}
#[inline(always)]
pub fn pl(&mut self) -> PL_W<C7CRrs> {
PL_W::new(self, 6)
}
#[inline(always)]
pub fn bex(&mut self) -> BEX_W<C7CRrs> {
BEX_W::new(self, 12)
}
#[inline(always)]
pub fn hex(&mut self) -> HEX_W<C7CRrs> {
HEX_W::new(self, 13)
}
#[inline(always)]
pub fn wex(&mut self) -> WEX_W<C7CRrs> {
WEX_W::new(self, 14)
}
#[inline(always)]
pub fn swrq(&mut self) -> SWRQ_W<C7CRrs> {
SWRQ_W::new(self, 16)
}
}
pub struct C7CRrs;
impl crate::RegisterSpec for C7CRrs {
type Ux = u32;
}
impl crate::Readable for C7CRrs {}
impl crate::Writable for C7CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for C7CRrs {}