pub type R = crate::R<DTOGENrs>;
pub type W = crate::W<DTOGENrs>;
pub type Dtogcc0enR = crate::BitReader;
pub type Dtogcc0enW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Dtogcc1enR = crate::BitReader;
pub type Dtogcc1enW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Dtogcc2enR = crate::BitReader;
pub type Dtogcc2enW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Dtogcdti0enR = crate::BitReader;
pub type Dtogcdti0enW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Dtogcdti1enR = crate::BitReader;
pub type Dtogcdti1enW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Dtogcdti2enR = crate::BitReader;
pub type Dtogcdti2enW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dtogcc0en(&self) -> Dtogcc0enR {
Dtogcc0enR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dtogcc1en(&self) -> Dtogcc1enR {
Dtogcc1enR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dtogcc2en(&self) -> Dtogcc2enR {
Dtogcc2enR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn dtogcdti0en(&self) -> Dtogcdti0enR {
Dtogcdti0enR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn dtogcdti1en(&self) -> Dtogcdti1enR {
Dtogcdti1enR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn dtogcdti2en(&self) -> Dtogcdti2enR {
Dtogcdti2enR::new(((self.bits >> 5) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DTOGEN")
.field("dtogcc0en", &self.dtogcc0en())
.field("dtogcc1en", &self.dtogcc1en())
.field("dtogcc2en", &self.dtogcc2en())
.field("dtogcdti0en", &self.dtogcdti0en())
.field("dtogcdti1en", &self.dtogcdti1en())
.field("dtogcdti2en", &self.dtogcdti2en())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dtogcc0en(&mut self) -> Dtogcc0enW<'_, DTOGENrs> {
Dtogcc0enW::new(self, 0)
}
#[inline(always)]
pub fn dtogcc1en(&mut self) -> Dtogcc1enW<'_, DTOGENrs> {
Dtogcc1enW::new(self, 1)
}
#[inline(always)]
pub fn dtogcc2en(&mut self) -> Dtogcc2enW<'_, DTOGENrs> {
Dtogcc2enW::new(self, 2)
}
#[inline(always)]
pub fn dtogcdti0en(&mut self) -> Dtogcdti0enW<'_, DTOGENrs> {
Dtogcdti0enW::new(self, 3)
}
#[inline(always)]
pub fn dtogcdti1en(&mut self) -> Dtogcdti1enW<'_, DTOGENrs> {
Dtogcdti1enW::new(self, 4)
}
#[inline(always)]
pub fn dtogcdti2en(&mut self) -> Dtogcdti2enW<'_, DTOGENrs> {
Dtogcdti2enW::new(self, 5)
}
}
pub struct DTOGENrs;
impl crate::RegisterSpec for DTOGENrs {
type Ux = u32;
}
impl crate::Readable for DTOGENrs {}
impl crate::Writable for DTOGENrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DTOGENrs {}