pub type R = crate::R<TTOCNrs>;
pub type W = crate::W<TTOCNrs>;
pub type SGT_R = crate::BitReader;
pub type SGT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ECS_R = crate::BitReader;
pub type ECS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWP_R = crate::BitReader;
pub type SWP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWS_R = crate::FieldReader;
pub type SWS_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type RTIE_R = crate::BitReader;
pub type RTIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TMC_R = crate::FieldReader;
pub type TMC_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type TTIE_R = crate::BitReader;
pub type TTIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GCS_R = crate::BitReader;
pub type GCS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FGP_R = crate::BitReader;
pub type FGP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TMG_R = crate::BitReader;
pub type TMG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type NIG_R = crate::BitReader;
pub type NIG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ESCN_R = crate::BitReader;
pub type ESCN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LCKC_R = crate::BitReader;
pub type LCKC_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn sgt(&self) -> SGT_R {
SGT_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ecs(&self) -> ECS_R {
ECS_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn swp(&self) -> SWP_R {
SWP_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn sws(&self) -> SWS_R {
SWS_R::new(((self.bits >> 3) & 3) as u8)
}
#[inline(always)]
pub fn rtie(&self) -> RTIE_R {
RTIE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn tmc(&self) -> TMC_R {
TMC_R::new(((self.bits >> 6) & 3) as u8)
}
#[inline(always)]
pub fn ttie(&self) -> TTIE_R {
TTIE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn gcs(&self) -> GCS_R {
GCS_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn fgp(&self) -> FGP_R {
FGP_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn tmg(&self) -> TMG_R {
TMG_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn nig(&self) -> NIG_R {
NIG_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn escn(&self) -> ESCN_R {
ESCN_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn lckc(&self) -> LCKC_R {
LCKC_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TTOCN")
.field("sgt", &self.sgt())
.field("ecs", &self.ecs())
.field("swp", &self.swp())
.field("sws", &self.sws())
.field("rtie", &self.rtie())
.field("tmc", &self.tmc())
.field("ttie", &self.ttie())
.field("gcs", &self.gcs())
.field("fgp", &self.fgp())
.field("tmg", &self.tmg())
.field("nig", &self.nig())
.field("escn", &self.escn())
.field("lckc", &self.lckc())
.finish()
}
}
impl W {
#[inline(always)]
pub fn sgt(&mut self) -> SGT_W<TTOCNrs> {
SGT_W::new(self, 0)
}
#[inline(always)]
pub fn ecs(&mut self) -> ECS_W<TTOCNrs> {
ECS_W::new(self, 1)
}
#[inline(always)]
pub fn swp(&mut self) -> SWP_W<TTOCNrs> {
SWP_W::new(self, 2)
}
#[inline(always)]
pub fn sws(&mut self) -> SWS_W<TTOCNrs> {
SWS_W::new(self, 3)
}
#[inline(always)]
pub fn rtie(&mut self) -> RTIE_W<TTOCNrs> {
RTIE_W::new(self, 5)
}
#[inline(always)]
pub fn tmc(&mut self) -> TMC_W<TTOCNrs> {
TMC_W::new(self, 6)
}
#[inline(always)]
pub fn ttie(&mut self) -> TTIE_W<TTOCNrs> {
TTIE_W::new(self, 8)
}
#[inline(always)]
pub fn gcs(&mut self) -> GCS_W<TTOCNrs> {
GCS_W::new(self, 9)
}
#[inline(always)]
pub fn fgp(&mut self) -> FGP_W<TTOCNrs> {
FGP_W::new(self, 10)
}
#[inline(always)]
pub fn tmg(&mut self) -> TMG_W<TTOCNrs> {
TMG_W::new(self, 11)
}
#[inline(always)]
pub fn nig(&mut self) -> NIG_W<TTOCNrs> {
NIG_W::new(self, 12)
}
#[inline(always)]
pub fn escn(&mut self) -> ESCN_W<TTOCNrs> {
ESCN_W::new(self, 13)
}
#[inline(always)]
pub fn lckc(&mut self) -> LCKC_W<TTOCNrs> {
LCKC_W::new(self, 15)
}
}
pub struct TTOCNrs;
impl crate::RegisterSpec for TTOCNrs {
type Ux = u32;
}
impl crate::Readable for TTOCNrs {}
impl crate::Writable for TTOCNrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TTOCNrs {}