pub type R = crate::R<TTOCFrs>;
pub type W = crate::W<TTOCFrs>;
pub type OM_R = crate::FieldReader;
pub type OM_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type GEN_R = crate::BitReader;
pub type GEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TM_R = crate::BitReader;
pub type TM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LDSDL_R = crate::FieldReader;
pub type LDSDL_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type IRTO_R = crate::FieldReader;
pub type IRTO_W<'a, REG> = crate::FieldWriter<'a, REG, 7>;
pub type EECS_R = crate::BitReader;
pub type EECS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AWL_R = crate::FieldReader;
pub type AWL_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type EGTF_R = crate::BitReader;
pub type EGTF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ECC_R = crate::BitReader;
pub type ECC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EVTP_R = crate::BitReader;
pub type EVTP_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn om(&self) -> OM_R {
OM_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn gen_(&self) -> GEN_R {
GEN_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn tm(&self) -> TM_R {
TM_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn ldsdl(&self) -> LDSDL_R {
LDSDL_R::new(((self.bits >> 5) & 7) as u8)
}
#[inline(always)]
pub fn irto(&self) -> IRTO_R {
IRTO_R::new(((self.bits >> 8) & 0x7f) as u8)
}
#[inline(always)]
pub fn eecs(&self) -> EECS_R {
EECS_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn awl(&self) -> AWL_R {
AWL_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn egtf(&self) -> EGTF_R {
EGTF_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn ecc(&self) -> ECC_R {
ECC_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn evtp(&self) -> EVTP_R {
EVTP_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("TTOCF")
.field("om", &self.om())
.field("gen_", &self.gen_())
.field("tm", &self.tm())
.field("ldsdl", &self.ldsdl())
.field("irto", &self.irto())
.field("eecs", &self.eecs())
.field("awl", &self.awl())
.field("egtf", &self.egtf())
.field("ecc", &self.ecc())
.field("evtp", &self.evtp())
.finish()
}
}
impl W {
#[inline(always)]
pub fn om(&mut self) -> OM_W<TTOCFrs> {
OM_W::new(self, 0)
}
#[inline(always)]
pub fn gen_(&mut self) -> GEN_W<TTOCFrs> {
GEN_W::new(self, 3)
}
#[inline(always)]
pub fn tm(&mut self) -> TM_W<TTOCFrs> {
TM_W::new(self, 4)
}
#[inline(always)]
pub fn ldsdl(&mut self) -> LDSDL_W<TTOCFrs> {
LDSDL_W::new(self, 5)
}
#[inline(always)]
pub fn irto(&mut self) -> IRTO_W<TTOCFrs> {
IRTO_W::new(self, 8)
}
#[inline(always)]
pub fn eecs(&mut self) -> EECS_W<TTOCFrs> {
EECS_W::new(self, 15)
}
#[inline(always)]
pub fn awl(&mut self) -> AWL_W<TTOCFrs> {
AWL_W::new(self, 16)
}
#[inline(always)]
pub fn egtf(&mut self) -> EGTF_W<TTOCFrs> {
EGTF_W::new(self, 24)
}
#[inline(always)]
pub fn ecc(&mut self) -> ECC_W<TTOCFrs> {
ECC_W::new(self, 25)
}
#[inline(always)]
pub fn evtp(&mut self) -> EVTP_W<TTOCFrs> {
EVTP_W::new(self, 26)
}
}
pub struct TTOCFrs;
impl crate::RegisterSpec for TTOCFrs {
type Ux = u32;
}
impl crate::Readable for TTOCFrs {}
impl crate::Writable for TTOCFrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TTOCFrs {
const RESET_VALUE: u32 = 0x0001_0000;
}