pub type R = crate::R<ROUTEPENrs>;
pub type W = crate::W<ROUTEPENrs>;
pub type Cc0penR = crate::BitReader;
pub type Cc0penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Cc1penR = crate::BitReader;
pub type Cc1penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Cc2penR = crate::BitReader;
pub type Cc2penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Cc3penR = crate::BitReader;
pub type Cc3penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Cdti0penR = crate::BitReader;
pub type Cdti0penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Cdti1penR = crate::BitReader;
pub type Cdti1penW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Cdti2penR = crate::BitReader;
pub type Cdti2penW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn cc0pen(&self) -> Cc0penR {
Cc0penR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn cc1pen(&self) -> Cc1penR {
Cc1penR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn cc2pen(&self) -> Cc2penR {
Cc2penR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn cc3pen(&self) -> Cc3penR {
Cc3penR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn cdti0pen(&self) -> Cdti0penR {
Cdti0penR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn cdti1pen(&self) -> Cdti1penR {
Cdti1penR::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn cdti2pen(&self) -> Cdti2penR {
Cdti2penR::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ROUTEPEN")
.field("cc0pen", &self.cc0pen())
.field("cc1pen", &self.cc1pen())
.field("cc2pen", &self.cc2pen())
.field("cc3pen", &self.cc3pen())
.field("cdti0pen", &self.cdti0pen())
.field("cdti1pen", &self.cdti1pen())
.field("cdti2pen", &self.cdti2pen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cc0pen(&mut self) -> Cc0penW<'_, ROUTEPENrs> {
Cc0penW::new(self, 0)
}
#[inline(always)]
pub fn cc1pen(&mut self) -> Cc1penW<'_, ROUTEPENrs> {
Cc1penW::new(self, 1)
}
#[inline(always)]
pub fn cc2pen(&mut self) -> Cc2penW<'_, ROUTEPENrs> {
Cc2penW::new(self, 2)
}
#[inline(always)]
pub fn cc3pen(&mut self) -> Cc3penW<'_, ROUTEPENrs> {
Cc3penW::new(self, 3)
}
#[inline(always)]
pub fn cdti0pen(&mut self) -> Cdti0penW<'_, ROUTEPENrs> {
Cdti0penW::new(self, 8)
}
#[inline(always)]
pub fn cdti1pen(&mut self) -> Cdti1penW<'_, ROUTEPENrs> {
Cdti1penW::new(self, 9)
}
#[inline(always)]
pub fn cdti2pen(&mut self) -> Cdti2penW<'_, ROUTEPENrs> {
Cdti2penW::new(self, 10)
}
}
pub struct ROUTEPENrs;
impl crate::RegisterSpec for ROUTEPENrs {
type Ux = u32;
}
impl crate::Readable for ROUTEPENrs {}
impl crate::Writable for ROUTEPENrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ROUTEPENrs {}