pub type R = crate::R<TTIRrs>;
pub type W = crate::W<TTIRrs>;
pub type SBC_R = crate::BitReader;
pub type SBC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SMC_R = crate::BitReader;
pub type SMC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CSM_R = crate::BitReader;
pub type CSM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SOG_R = crate::BitReader;
pub type SOG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RTMI_R = crate::BitReader;
pub type RTMI_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TTMI_R = crate::BitReader;
pub type TTMI_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWE_R = crate::BitReader;
pub type SWE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GTW_R = crate::BitReader;
pub type GTW_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GTD_R = crate::BitReader;
pub type GTD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GTE_R = crate::BitReader;
pub type GTE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXU_R = crate::BitReader;
pub type TXU_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXO_R = crate::BitReader;
pub type TXO_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SE1_R = crate::BitReader;
pub type SE1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SE2_R = crate::BitReader;
pub type SE2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ELC_R = crate::BitReader;
pub type ELC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IWTG_R = crate::BitReader;
pub type IWTG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WT_R = crate::BitReader;
pub type WT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AW_R = crate::BitReader;
pub type AW_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CER_R = crate::BitReader;
pub type CER_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn sbc(&self) -> SBC_R {
SBC_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn smc(&self) -> SMC_R {
SMC_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn csm(&self) -> CSM_R {
CSM_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn sog(&self) -> SOG_R {
SOG_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn rtmi(&self) -> RTMI_R {
RTMI_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn ttmi(&self) -> TTMI_R {
TTMI_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn swe(&self) -> SWE_R {
SWE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn gtw(&self) -> GTW_R {
GTW_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn gtd(&self) -> GTD_R {
GTD_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn gte(&self) -> GTE_R {
GTE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn txu(&self) -> TXU_R {
TXU_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn txo(&self) -> TXO_R {
TXO_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn se1(&self) -> SE1_R {
SE1_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn se2(&self) -> SE2_R {
SE2_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn elc(&self) -> ELC_R {
ELC_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn iwtg(&self) -> IWTG_R {
IWTG_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn wt(&self) -> WT_R {
WT_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn aw(&self) -> AW_R {
AW_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn cer(&self) -> CER_R {
CER_R::new(((self.bits >> 18) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TTIR")
.field("sbc", &self.sbc())
.field("smc", &self.smc())
.field("csm", &self.csm())
.field("sog", &self.sog())
.field("rtmi", &self.rtmi())
.field("ttmi", &self.ttmi())
.field("swe", &self.swe())
.field("gtw", &self.gtw())
.field("gtd", &self.gtd())
.field("gte", &self.gte())
.field("txu", &self.txu())
.field("txo", &self.txo())
.field("se1", &self.se1())
.field("se2", &self.se2())
.field("elc", &self.elc())
.field("iwtg", &self.iwtg())
.field("wt", &self.wt())
.field("aw", &self.aw())
.field("cer", &self.cer())
.finish()
}
}
impl W {
#[inline(always)]
pub fn sbc(&mut self) -> SBC_W<TTIRrs> {
SBC_W::new(self, 0)
}
#[inline(always)]
pub fn smc(&mut self) -> SMC_W<TTIRrs> {
SMC_W::new(self, 1)
}
#[inline(always)]
pub fn csm(&mut self) -> CSM_W<TTIRrs> {
CSM_W::new(self, 2)
}
#[inline(always)]
pub fn sog(&mut self) -> SOG_W<TTIRrs> {
SOG_W::new(self, 3)
}
#[inline(always)]
pub fn rtmi(&mut self) -> RTMI_W<TTIRrs> {
RTMI_W::new(self, 4)
}
#[inline(always)]
pub fn ttmi(&mut self) -> TTMI_W<TTIRrs> {
TTMI_W::new(self, 5)
}
#[inline(always)]
pub fn swe(&mut self) -> SWE_W<TTIRrs> {
SWE_W::new(self, 6)
}
#[inline(always)]
pub fn gtw(&mut self) -> GTW_W<TTIRrs> {
GTW_W::new(self, 7)
}
#[inline(always)]
pub fn gtd(&mut self) -> GTD_W<TTIRrs> {
GTD_W::new(self, 8)
}
#[inline(always)]
pub fn gte(&mut self) -> GTE_W<TTIRrs> {
GTE_W::new(self, 9)
}
#[inline(always)]
pub fn txu(&mut self) -> TXU_W<TTIRrs> {
TXU_W::new(self, 10)
}
#[inline(always)]
pub fn txo(&mut self) -> TXO_W<TTIRrs> {
TXO_W::new(self, 11)
}
#[inline(always)]
pub fn se1(&mut self) -> SE1_W<TTIRrs> {
SE1_W::new(self, 12)
}
#[inline(always)]
pub fn se2(&mut self) -> SE2_W<TTIRrs> {
SE2_W::new(self, 13)
}
#[inline(always)]
pub fn elc(&mut self) -> ELC_W<TTIRrs> {
ELC_W::new(self, 14)
}
#[inline(always)]
pub fn iwtg(&mut self) -> IWTG_W<TTIRrs> {
IWTG_W::new(self, 15)
}
#[inline(always)]
pub fn wt(&mut self) -> WT_W<TTIRrs> {
WT_W::new(self, 16)
}
#[inline(always)]
pub fn aw(&mut self) -> AW_W<TTIRrs> {
AW_W::new(self, 17)
}
#[inline(always)]
pub fn cer(&mut self) -> CER_W<TTIRrs> {
CER_W::new(self, 18)
}
}
pub struct TTIRrs;
impl crate::RegisterSpec for TTIRrs {
type Ux = u32;
}
impl crate::Readable for TTIRrs {}
impl crate::Writable for TTIRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TTIRrs {}